PDA

View Full Version : now im not sure this is even possible


steveg
10-22-2002, 08:15 AM
OK now im not sure this is even possible what I need to do is this.

I have a form wrapping round a table, within this table I need to place links that will open a seperate smalll browser window, however I need to pass a value to this second window from within the link.

Here's what ive got so far


<A HREF VALUE="parameter" onClick="' msgWindow=window.open('error1.htm','memo_wind','resizable=no,width=200,height=130')" >text here</A>

If anybody has the faintest idea what i am going on about and could possibly help me I would be greatful.

Thanks

Steve

glenngv
10-22-2002, 08:31 AM
<A HREF="#" onClick="msgWindow=window.open('error1. htm?p1=blah&p2=blah','memo_wind','resizable=no,width=200,height=130');return false;" >text here</A>

then you could retrieve the parameters in the URL by doing location.search. see the link http://www.nullinteractive.com/queryargs.shtml

steveg
10-22-2002, 09:01 AM
Right ive got it opening up a smaller window when the text is clicked on the only problem is that I need to pass a parameter to the second window the code i am using is as follows

onClick='msgWindow=window.open("error1.htm","memo_wind","resizable=no,width=200,height=130")'

the error1.htm will be an asp page when its finished and dont worry about the quotes as the code is being generated from a com component on the server and ive just cut and pasted it.

it needs to be something like error1.asp("ABCDEFG").

I can't use a form here either as the thing as a whole is wrapped in a form.

Thanks again

Steve.

glenngv
10-22-2002, 10:00 AM
my previous post was screwed up, it supposed to make some text bold to make it clearer.
I removed the formatting, here it is:

<A HREF="#" onClick="msgWindow=window.open('error1.asp?p1=blah&p2=blah','memo_wind','resizable=no,width=200,height=130');return false;" >text here</A>

since you are opening an asp page, you can retrieve the parameters by doing request.querystring.

steveg
10-22-2002, 10:03 AM
thanks alot mate, thats just what I was looking for.

Steve.