473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

Mar 29 '07 #1
1 2119
On Thu, 29 Mar 2007 20:11:40 +0200, --[zainy]-- <za****@gmail.comwrote:
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.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Mar 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pete | last post by:
I have a site which is using sessions to pass data from one page through to the next. The problem that I have is that there are only two places where the session could/should be destroyed. This...
6
by: -D- | last post by:
I'm trying to accomplish the following. I'm trying to get the values for the table rows that are dynamically created to persist through a redirect. Referring URL:...
1
by: Jenny | last post by:
Hi, Can I create an array of tags by assigning same name to these tags? For example, I have two <p> tags with the same name t1. But document.all.b.value=document.all.t.length does not...
3
by: Enoch Chan | last post by:
I would like to set a Session variable to a value. In Vbscript it should be Session("ZoomValue")=500 How can I set this session variable by using Javascript? Thanks
4
by: RA | last post by:
Session("ListBoxHold") = document.getElementById("lstCodes") The above statement gives an error "Object Expected" Any Clue?
1
by: bonnie.tangyn | last post by:
Hello all Would it be possible to store javascript document.forms.value to ASP session as global variable? If it is not possible, how can I pass the javascript document.forms.value to...
7
by: Rob | last post by:
Hi, I'm getting an error on my login page when using Javascript session object. It works on the development server so I'm wondering if there is a setting in IIS to allow using sessions on the...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
2
by: Palvids | last post by:
Hi, I want to assign some value to session variable in JavaScript written in c# code behind.I hv written like this: string map2 ="<script language='javascript'>"<%Session=varname;%>"; </script>";...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.