Javascript pop up window in ASP
I need to submit variables with an HTML form and have those variables passed via a query string to an asp page that takes the variables and constructs a url. I would like for the new window to pop up with no toolbars and smaller. I have code that I can do this with if you click on a hyperlink within an html doc. Here is the ASP code that puts the string together. and the popup window code. Any ideas on how tho make them work in unison?
Thank you!
<?php
'Request.querystring gets the value of a variable from the fields that were passed
'They are then inserted into the variables
company = Request.querystring("company")
user = Request.querystring("user")
?>
<?php
response.redirect "http://www.hiirs.com/hiirs/utilities/vipresenter.asp?companyid=100000&strrefer=100026&userid="&user&"&ucid="&company
?>
= 4) { win.window.focus(); }
}
// End -->
</script>
Mark Hensler posted this at 18:55 — 31st January 2001.
He has: 4,048 posts
Joined: Aug 2000
ouch....
I've tried so many times, but I don't think it's possible to have ASP between the <script> tags of a Javscript. At this moment, I can think of one way around it...
Use the ASP redirect to to send the user to another ASP page (I'll call mine tmp.asp). But put in the querystring the whole URL of the page that you want in the popup (tmp.asp?goto=disney.com).Then use JavaScript to parse the URL for the URL that you want to go to (disney.com). Then use the window.open() to open that URL.
Good Luck,
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.