By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

Passing value without calling Javascript funciton

P: n/a
Hi all,
I have a ASP script which will get 2 query string value. i put val1
Value in a session and pass val2 value to javascript for parent page
reload with the specified value.
Problem i face is i dont invoke any function to pass the val2 as
paremeter.
this is the code i wrote which works fine when i give id=29. Instead
of 29 i want the id=val2.

<%ca = Request.querystring("val1")
ca1= Request.querystring("val2")
Session("book_buy") = session("book_buy") + ca + ","
response.write(session("book_buy"))%>

<script language='javascript'>
window.opener.top.document.location.href="view_sub _category.asp?id=29";
this.close();
</script></body></html>

Thanks in advance
Regards,
Franklin
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
franklinbruce wrote:
Hi all,
I have a ASP script which will get 2 query string value. i put val1
Value in a session and pass val2 value to javascript for parent page
reload with the specified value.
Problem i face is i dont invoke any function to pass the val2 as
paremeter.
this is the code i wrote which works fine when i give id=29. Instead
of 29 i want the id=val2.

<%ca = Request.querystring("val1")
ca1= Request.querystring("val2")
Session("book_buy") = session("book_buy") + ca + ","
response.write(session("book_buy"))%>

<script language='javascript'>
window.opener.top.document.location.href="view_sub _category.asp?id=29";


window.opener.top.document.location.href="view_sub _category.asp?id="+val2;

Or:

window.opener.top.document.location.href="view_sub _category.asp?id="+<%response.write(ca1)%>;

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.