HighDots Forums  

need help.. sending jscript client side variable to asp file

Javascript JavaScript language (comp.lang.javascript)


Discuss need help.. sending jscript client side variable to asp file in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yaron
 
Posts: n/a

Default need help.. sending jscript client side variable to asp file - 09-06-2005 , 07:56 AM






hi all!

i have an html page, with jscript inside. some variables, some of them
multidimensional arrays. i need to send this information, which can be
changed by the user, to an asp file. the only way i could think of, is
putting it inside hidden box and sending the form. is there any more
elegant way ?

thanks in advance,
yaron.


Reply With Quote
  #2  
Old   
Xandax
 
Posts: n/a

Default Re: need help.. sending jscript client side variable to asp file - 09-06-2005 , 09:56 AM






using forms is as "elegant" as any in my view.


Reply With Quote
  #3  
Old   
Jambalaya
 
Posts: n/a

Default Re: need help.. sending jscript client side variable to asp file - 09-06-2005 , 10:26 AM



If you want to send the information without causing a page reload, you
could use the XMLHttpRequest() object (and it's Win IE equivalent
ActiveXObject("Msxml2.XMLHTTP").)


Reply With Quote
  #4  
Old   
yaron
 
Posts: n/a

Default Re: need help.. sending jscript client side variable to asp file - 09-08-2005 , 06:20 PM



thanks for the fast reply : ) do you happen to know if there is some
size limit on information sent with forms ?


Reply With Quote
  #5  
Old   
Dag Sunde
 
Posts: n/a

Default Re: need help.. sending jscript client side variable to asp file - 09-08-2005 , 07:26 PM



"yaron" <yaron3715 (AT) hotmail (DOT) com> wrote

Quote:
thanks for the fast reply : ) do you happen to know if there is some
size limit on information sent with forms ?
Yes, as long as the forms method = GET, most browsers introduce
a limit.

It varies from browser to browser, and is in the range of
approx. 1 to 4 Kilobytes.

To avoid it, POST your forms instead.

--
Dag.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.