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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not exactly response.redirect

Status
Not open for further replies.

avivit

Technical User
Jul 5, 2000
456
IL
I am having a trouble.
I am writing ststistics code, in order to count number of hits to a list of links in our site.
All pages r asp.

The list of links is in asp page which is displayed in one of the frames.
I'd like that when a user presses a link, the statistics database will be updated, and then I'd like the target of that link (a site) to be opened in a NEW WINDOW.

I tried calling the counting page in the new window and then opening the site, but then the user sees a blank page (with the counting page file name in the title bar), and then it is replaced with the linked site.

Basically what I need is that once link is clicked, the database of statistics will be updated and that the user will only see the site in a new window, and not a blank page.
I have the couting page working great, it can also be just a sub in another asp page.

I have some q that may help me solve it:

1. Is it possible to response.redirect to a site in a new window, and also defining windows properties?This way I can redirect from the counting page. Will the counting page will replace the curent frame?

2.Is it possible to call a function written in vbscript inside asp tags, from javascript or href? (< href=&quot;vb function name&quot;>kjkj) ?
This way I can call the counting part (in a sub), using href.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top