Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / March 2007



Tip: Looking for answers? Try searching our database.

assigning session a javascript value in javascript function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
--[zainy]-- - 29 Mar 2007 19:11 GMT
Hello Guyz..

I want to assign a varascript value to a session object in javascript
function...

like i have an image and onClick i am calling a function sort_(str)..
Now i want to assign this value str to a session object in the same
function...

I know javascript code is client side and session is on server side..
but is there any way doing that??

function sort_(str)
{
document.ins_form.elements["Qry"].value = str;
//alert(str);
document.form1.submit();
}

when i click on that image and that function calls everything works
fine. but when i click on next to bring more records i couldn't get
Qry value by request.form("Qry").....

I am working in Dreamweaver an coding in asp VBScript language...
OmegaJunior - 31 Mar 2007 18:11 GMT
> Hello Guyz..
>
[quoted text clipped - 20 lines]
>
> I am working in Dreamweaver an coding in asp VBScript language...

This is more an ASP question than a Javascript question.

From javascript to VBScript using an HTML form is pretty easy:
Dim myVar
myVar = Request.Form("Qry") 'or Request.Query("Qry"), depending on the  
form method.

Then from VBScript back to the HTML form is similarly easy:
Response.Write("<textarea height=""4"" width=""60"" name=""Qry""  
id=""Qry"">" & myVar & "</textarea>")

Once it's back in the form, your javascript functions can pick it up and  
handle it.

Signature

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.