Passing value without calling Javascript funciton

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • franklinbruce

    Passing value without calling Javascript funciton

    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.queryst ring("val1")
    ca1= Request.queryst ring("val2")
    Session("book_b uy") = session("book_b uy") + ca + ","
    response.write( session("book_b uy"))%>

    <script language='javas cript'>
    window.opener.t op.document.loc ation.href="vie w_sub_category. asp?id=29";
    this.close();
    </script></body></html>

    Thanks in advance
    Regards,
    Franklin
  • Randy Webb

    #2
    Re: Passing value without calling Javascript funciton

    franklinbruce wrote:[color=blue]
    > 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.queryst ring("val1")
    > ca1= Request.queryst ring("val2")
    > Session("book_b uy") = session("book_b uy") + ca + ","
    > response.write( session("book_b uy"))%>
    >
    > <script language='javas cript'>
    > window.opener.t op.document.loc ation.href="vie w_sub_category. asp?id=29";[/color]

    window.opener.t op.document.loc ation.href="vie w_sub_category. asp?id="+val2;

    Or:

    window.opener.t op.document.loc ation.href="vie w_sub_category. asp?id="+<%resp onse.write(ca1) %>;

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    Working...