Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Re: How to execute a script in web server from browser without changing a page?,


Message #1 by "Kyle M. Burns" <lists@c...> on Sat, 14 Sep 2002 18:16:24 -0500
If you are in an environment where Internet Explorer is the only browser
supported, you can use an XMLHTTP object to do this also.

-----Original Message-----
From: matthew.cochrane@d...
[mailto:matthew.cochrane@d...] 
Sent: Friday, August 23, 2002 3:11 PM
To: asp_discuss
Subject: [asp_discuss] Re: How to execute a script in web server from
browser without changing a page?,

2 ways I can think of (without going into nitty gritty detail):

1. Put the page in a frameset with a hidden frame (a frame with the
height 
or width set to zero). Use javascript to load the ASP script page into
the 
hidden frame when the checkbox is clicked.

2. Use javascript to open the ASP script page in a small popup window
when 
the checkbox is clicked. This will run the script and also display a 
confimation message, and if you wanted you could put a "Close Window" 
button on there so the user can close the pop-up.

Matt
---------------------------------------------
> When a client click a check box (for example) in his browser, I want a

s> cript located in web server executed, but the contents(the page) in
the 
b> rowser do not change, except that check box checked changes its
status. 
C> ertainly, I do not write something like:

> window.location(whatever.asp?item1="x"&item2="y");

> If you layout a check box in a form, you need to click a "submit" 
button, 
w> hich is also what I try to avoid.

> Another trick is to load the same page back, but it causes flush.
C> an anyone tell a better solution?

> Thanks so much.


  Return to Index