This should work:
var x = document.all.hid1.value;
window.open('http://abc?nam='+x, 'win1', 'other parameters');
>Hello all,
> I call a javascript function funct1() in that function I get a
> value of a variable x as :
>
><script language="javascript">
>function funct1()
>{
> var x = document.all.hid1.value // gets value of the hidden field from
> a form
>window.open('http://abc?nam=<%= val %>, 'win1', 'other parameters');
></script>
>}
>
> I need to pass the value of variable x into the URL in place of val.
> I am not able to access this javascript variable x in there.
>
>Can anyone lead me to the solution ??
>
> thanks,
> Koustubh
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
-----------
Gopi Mandava (703) 267-1735 x307
CoManage Inc.
"I thought of that while riding my bike."
-Albert Einstein, on the theory of Relativity
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets