Pass a variable
4 Message(s) by 2 Author(s) originally posted in javascript
| From: Bam |
Date: Tuesday, April 24, 2007
|
Hey gang. THis may be asked somewhere before, but I could not 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 does not give me the results.
so I have tried
function newwindow()
{
window.open('
http://mysite/edit_email.asp?id=" + varida +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
function newwindow()
{
window.open('
http://mysite/edit_email.asp?id=" +
<%=varida%> +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
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.
can someone help me out here please??much thanks
| From: Bam |
Date: Tuesday, April 24, 2007
|
Hey gang. THis may be asked somewhere before, but I could not 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 does not give me the results.
so I have tried
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + varida +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + <%=varida%> +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
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.
can someone help me out here please??
much thanks
i also have this in the
link part
<a HREF="JAVAscript:newwindow('<%=varida%>')">now when I hover the mouse, it does show the id in the status bar. so that
part is working.
is there a different way of retrieving a querystring other than
userid = request.querystring("id")
maybe that's the problem
| From: Bam |
Date: Saturday, April 28, 2007
|
lol.. gotta
love the response time here.
$4c368faf@xxxxxxxxxxx
Hey gang. THis may be asked somewhere before, but I could not 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 does not give me the results.
so I have tried
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + varida +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=" + <%=varida%> +
"','jav','width=300,height=300,resizable=yes,titlebar=no,toolbar=no');
}
and
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.
can someone help me out here please??
much thanks
>
| From: Kristin Bruun |
Date: Thursday, May 24, 2007
|
wrote in
message :
lol.. gotta love the response time here.
$4c368faf@xxxxxxxxxxx
Hey gang. THis may be asked somewhere before, but I could not 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=3D<%=3Dvarida%>
but that does not give me the results.
so I have tried
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=3D" + varida +
"','jav','width=3D300,height=3D300,resizable=3Dyes,titlebar=3Dno,tool=
bar=3Dno');
}
and
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=3D" + <%=3Dvarida%> +
"','jav','width=3D300,height=3D300,resizable=3Dyes,titlebar=3Dno,tool=
bar=3Dno');
}
and
function newwindow()
{
window.open('http://mysite/edit_email.asp?id=3D"<%=3Dvarida%>"','jav'=
,'width=3D300,height=3D300,resizable=3Dyes,titlebar=3Dno,toolbar=3Dno');=
}
none of the above will pass the variable.
can someone help me out here please??
much thanks
Is this
ASP ? I can not see that you assign the variable varida to anything=
, =
wrote in message ASP ...
:)
Does the
<%=3Dvarida%> print out anywhere else on the page, when written=
=
this way?
I think the
solution for you is to assign a JAVAscript variable to =
<%=3Dvarida%>.
In php I'd
write myjscrptvariable =3D
<?php echo phpvariable ?>
I do not write ASP any longer, and that's what this looks like to me.
Hope the answer came before you timed out, and that it can be of some us=
e!
;)-- =
There are 10 kinds of people:
those who know
binary - and the others ...
Next Message: Question this
Blogs related to Pass a variable
Re: HowTo forward user name from apache via mod_jk to tomcat
:o( >> >> Until recently that was all but now I need to
pass the user name to the >> tomcat server as well. Is there any way to do this? > > You'
re looking for JkEnvVar. Check out the "
Java/Tomcat/mod_jk > Integration" section on this
...
Adding Concurrency to Our Erlang Program
Because we'
re handling all the details ourselves, we have to tell the process running the double function where to send its result. To do that, we
pass it two parameters: the first is the process ID of the process to receive the result,
...
Weekly Perl 6 mailing list summary for 01-07 April, 2007
Leon Brocard announced that the second Perl 6 microgrant had been awarded to Phil Crow for his proposal to convert
Java declarations to Perl 6. More information about his proposal can be found in the grant application text.
...
Re: Cannot save file to Apache Tomcat server
Maybe there is logic error in
passing variables from applet to servlet? Please help me! Thank you so much. > > Yours Sincerely, > TEH NORANIS > > > --------------------------------- > Need Mail bonding? > Go to the Yahoo!
...
Re: Unable to run it
Good day, It's got something to do with running the
java command :) I think it's having difficulties when you'
re passing file paths something like D:\my\path\to\maven\\lib and the likes :) That's why it's showing the help for
java ...
Sharp and Objective
The Objective-C code for storing, say, a string in an array, makes it impossible to know when you’
re passing in non-strings without doing type checks manually beforehand, or creating tuned methods that only accept the given type in
...