Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Re: Passing str...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 35543 of 37156
Post > Topic >>

Re: Passing strings between functions XMLHTTP.open

by jerm <jerm.hannley@[EMAIL PROTECTED] > May 9, 2008 at 01:00 PM

On May 9, 10:30=A0am, Thomas 'PointedEars' Lahn <PointedE...@[EMAIL PROTECTED]
>
wrote:
> jerm wrote:
> > I am using ajax to update a form. =A0I call xmlHttp.open("GET",
strURL,
> > false).
>
> > The problem is that strURL is a really long string and it seems that
> > javascript craps out on this long string giving me an unspecified
> > error.
>
> Chances are that your crappy user agent and its API are the problem, not
> "javascript". =A0For example, MSIE is known to sup****t only 2083
character=
s
> per URI:http://sup****t.microsoft.com/kb/208427
>
> > I decided to test my theory and created a generic function to
> > pass over my url string and sure enough javascript dies with the same
> > error.
>
> Which error?
>
> > I figured one way around it was to split my string into an
> > array and then join it up again but xmlHttp.open is not a method or
> > object I wrote, so I cant easily manipulate it.
>
> It would not help you anyway. =A0The URI needs to be complete in an HTTP
> request. =A0Read RFCs 1945 and 2616.
>
> > Any thoughts on a way around this?
>
> As you cannot prevent people from using crappy UAs, and you cannot
expect
> the vendor of this particular crappy UA to get reasonable in no time, if
> that, make a POST request instead.
>
> PointedEars
> --
> Anyone who slaps a 'this page is best viewed with Browser X' label on
> a Web page appears to be yearning for the bad old days, before the Web,
> when you had very little chance of reading a do***ent written on another
> computer, another word processor, or another network. -- Tim Berners-Lee

You are correct thomas, I ended up just breaking down my url and
sending it in pieces.  Thanks for your help!!!
jerm
 




 4 Posts in Topic:
Passing strings between functions XMLHTTP.open
jerm <jerm.hannley@[EM  2008-05-09 06:59:45 
Re: Passing strings between functions XMLHTTP.open
Tom Cole <tcole6@[EMAI  2008-05-09 07:22:59 
Re: Passing strings between functions XMLHTTP.open
Thomas 'PointedEars' Lahn  2008-05-09 18:30:03 
Re: Passing strings between functions XMLHTTP.open
jerm <jerm.hannley@[EM  2008-05-09 13:00:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 20:57:36 CDT 2008.