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

Pop Up Question

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
I have an intranet page which onload uses window.open to open an ASP page on a different server - both servers are in-house. However, when it tries to open the second page, it warns the user that it is opening another page and they have to click yes to proceed.

The problem is that I need to be certain that second page is opened as important tasks are being performed so I don't want the user to be prompted. How do I get the window to open without prompting the user. I have tried adding the second page to the list of trusted sites but it stills prompts.

Mighty
 
I have tried adding the second page to the list of trusted sites but it stills prompts

Trusted sites are not to do with the pop-up blocker, you need to put it under 'allowed sites' in the pop-up blocker settings.

Also if you need to fire of a process when one page is opened, why open a pop-up , simply use AJAX to call the other server script which needs running without annoying your staff members with pop-ups.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
AJAX - what is that and how do I use to to run an ASP page on another server?

Mighty
 
AJAX = Active Javascript And XML

There is a dedicated area ... forum1600

Basically you use Javascript to call the required ASP page passing in any query string variables required.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
AJAX = Active Javascript And XML

Asynchronous Javascript And XML

As in, the data goes both ways twixt browser/page and server/script

Why even use AJAX though. Can the page script not run in the same browser window (then perhaps redirect back to the original page if necessary)?

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
ok foamy, I consider myself corrected, though I took the defenition from another site!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Unfortunately I can't run the ASP code on the same page. I need to use ASP to call a module which is on my ERP server. This module needs to be installed on my ERP server and I can't install it on my webserver. So 3/4 of the code runs on the webserver and then I need to call another page on my ERP server to update the database.

Mighty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top