assigning session a javascript value in javascript function

Z

--[zainy]--

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...
 
O

OmegaJunior

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...

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top