I.T. Discussion Community!
-Collapse +Expand
Search Design Group:

-Collapse +Expand Design Store

Prestwood eMagazine

January Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyWebsite Design & Hosting BoardWebsite Design HTML, XML, CSS, Graphics Topic   Print This     

changing window TARGET

changing window TARGET in Website Design HTML, XML, CSS, Graphics topic (part of our Website Design & Hosting group).

Quick Search: changing   changing window   changing window TARGET  
Hi Board,

I had an e-commerce website and the problem in question is this.

When users brose the products, they had and small thumnails with and INFO>> link and a BUY NOW button (like the major e-commerce sites)

When user click on INFO>> I had a Javascript that open a new browser window to sow detailed information of the product and with the corresponding BUY NOW button again. This work fine. What I need is that when user click on the button (BUY), close the active window and return to the previous calling an ASP procedure in other page.

How cat I achive this? Big Grin!
 Posted 17 years ago (Thread Starter)
Comment Quote
About ernestocs666 -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #10893, 1 replies
Thread Started 12/18/2004 3:31:00 AM
View Counter=6176
Last Reply Posted 6/26/2007 2:45:14 PM)
Joined=20 years ago   MB Posts=6  
Most Recent Post
Adam Lum
Prestwood IT
Citrus Heights, CA

In javascript, you can access a parent window via the window.opener property, i.e. window.opener.foo()  if you had a foo function in the parent window.  In this function you could handle any button push, etc. from the child window passing in any parameters you needed.


As for having an ASP subroutine or function called, I believe the only way you could achieve this is if you have some AJAX in there, with the (in our example) the foo function making an HTTP Request to another ASP script and updating a textbox or div block on the parent page.


Is this what you were attempting to do?

Adam Lum
Senior Programmer
Prestwood Software

 Posted 14 years ago
Comment Quote
About Adam Lum -Collapse +Expand
Visit Profile
Approved member.
Member does not subscribe to this thread.
About Adam Lum

Adam Lum is a part time developer for Prestwood Software and participates in this online community when time allows. His day-to-day work is C# coding but his current intrests (right now) are Ruby on Rails and iOS programming with Objective-C.  He has also coded several projects in Java, C++, ASP Classic, and PHP.  His personal website can be found at adamlum.com.

Post ID #11940 (Level 1.1)  Reply to 10893
Thread Started 6/26/2007 2:45:14 PM
View Counter=2
Location=Citrus Heights, CA 
Joined=15 years ago   MB Posts=31   KB Posts=23   KB Comments=4   BLOG, Topics=1  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.

Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1167A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #10893 Counter
Since 4/2/2008

Follow PrestwoodBoards on: 

©1995-2021 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech