Google Groups Home
Help | Sign in
Message from discussion Passing strings between functions XMLHTTP.open
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
jerm  
View profile
 More options May 9, 4:00 pm
Newsgroups: comp.lang.javascript
From: jerm <jerm.hann...@gmail.com>
Date: Fri, 9 May 2008 13:00:34 -0700 (PDT)
Local: Fri, May 9 2008 4:00 pm
Subject: Re: Passing strings between functions XMLHTTP.open
On May 9, 10:30 am, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:

> jerm wrote:
> > I am using ajax to update a form.  I 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".  For example, MSIE is known to support only 2083 characters
> per URI:http://support.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.  The URI needs to be complete in an HTTP
> request.  Read 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 document 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

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google