Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Another Web Page Automatically

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
Hi!

I have a form, when the user selects "submit" i would like to have another web page open automatically and pass ome variables to it.

The code i have below is to open another web page and pass variables using a LINK. However, i do not know hgow to modify it so it opens automatically.

<a href="ProjectAccounts.Asp?FiscalYearChosen=<%=server.urlencode(Session("ComboYears"))%>&amp;FinAppropId=<%=server.urlencode(RS("FinAppropId"))%>&amp;FinProjectId=<%=server.urlencode(RS("FinProjectId"))%>&amp;FinContractAct=<%=server.urlencode(RS("FinContractAct"))%>&amp;%&gt;" target="_blank"> <font face="Tahoma" color="black" size="2">Detail</a></font>
 
I really don't know that what you're trying to do w/o using a little scripting. Here's some javascript to open up a window to a different page when the main page opens. However, it is subject to all the popup blockers that are out now-a-days.
Code:
<script type="text/javascript">

function theOtherPage() {
   var a = window.open("[URL unfurl="true"]http://www.google.com");[/URL]
}

window.onload = theOtherPage;

</script>

<body>
<p>Hi, I'm Mr. Page #1, google should be coming right up</p>
</body>

If that's not what you're looking for then you might wanna check out the ASP command Response.Redirect, but that won't open a new window.

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
I agree with this...use the javasrcipt and put your response.writes in there to modify the page that opens.
 
hmm..... after re-reading my last post my first sentence doesn't make any sense, what I meant to say was:

I really don't know that what you're trying to do [!]is possible[/!] w/o using a little scripting.

-kaht

Looking for a puppy?

[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top