f



assigning session a javascript value in javascript function

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

0
zainys (4)
3/29/2007 6:11:40 PM
comp.lang.javascript 38370 articles. 2 followers. javascript4 (1315) is leader. Post Follow

1 Replies
912 Views

Similar Articles

[PageSpeed] 33

On Thu, 29 Mar 2007 20:11:40 +0200, --[zainy]-- <zainys@gmail.com> wrote=
:

> 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 =3D 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 =3D 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=3D""4"" width=3D""60"" name=3D""Qry""  =

id=3D""Qry"">" & myVar & "</textarea>")

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

handle it.

-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
0
OmegaJunior
3/31/2007 5:11:25 PM
Reply: