Hey gang. THis may be asked somewhere before, but I couldn't find it.
I am trying to pass a variable that is defined in a sql statement, to a
window.open page. I am not having any luck in being able to do this. Here is
what I have.
Oh, using asp, not php.
varida is the variable I am trying to pass. Normally, with a regular
querystring, it passes as ?id=<%=varida%>
but that doesn't give me the results.
so i have tried
andCode:function newwindow() { window.open('http://mysite/edit_email.asp?id=" + varida + "','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no'); }
andCode:function newwindow() { window.open('http://mysite/edit_email.asp?id=" + <%=varida%> + "','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no'); }
none of the above will pass the variable.Code:function newwindow() { window.open('http://mysite/edit_email.asp?id="<%=varida%>"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no'); }
can someone help me out here please??
much thanks
i also have this in the link part
now when I hover the mouse, it does show the id in the status bar. so thatCode:<a HREF="javascript:newwindow('<%=varida%>')">
part is working.
is there a different way of retrieving a querystring other than
userid = request.querystring("id")
maybe that's the problem


Reply With Quote


Bookmarks