Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Re: asp_discuss digest: August 23, 2002


Message #1 by nagendran <Nagendran@s...> on Tue, 27 Aug 2002 15:54:46 +0530
Without refreshing the page, we can get the result through xmlhttp object.
Through javascript or Jscript or VBScript, you can invoke this object.
At 12:00 AM 8/24/02 +0100, you wrote:
>Subject: asp_discuss digest: August 23, 2002
>From: "asp_discuss digest" <asp_discuss@p...>
>Reply-To: "asp_discuss" <asp_discuss@p...>
>Date: Sat, 24 Aug 2002 00:00:15 +0100
>
>-----------------------------------------------
>When replying to the digest, please quote only
>relevant material, and edit the subject line to
>reflect the message you are replying to.
>-----------------------------------------------
>
>The URL for this list is:
>http://p2p.wrox.com/list.asp?list=asp_discuss
>ASP_DISCUSS Digest for Friday, August 23, 2002.
>
>1. How to execute a script in web server from browser without changing a 
>page?,
>2. Database images
>3. Re: How to execute a script in web server from browser without changing 
>a page?,
>4. Save asp as Word doc?
>
>Subject: How to execute a script in web server from browser without 
>changing a page?,
>From: "Tom Ho" <homer777@h...>
>Date: Fri, 23 Aug 2002 12:24:03
>Reply-To: "asp_discuss" <asp_discuss@p...>
>
>When a client click a check box (for example) in his browser, I want a
>script located in web server executed, but the contents(the page) in the
>browser do not change, except that check box checked changes its status.
>Certainly, 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,
>which is also what I try to avoid.
>
>Another trick is to load the same page back, but it causes flush.
>Can anyone tell a better solution?
>
>Thanks so 
>much.--+------+-----------+------+---+-------+-+-------+---+--+-----------+--
>
>Subject: Database images
>From: matthew.cochrane@d...
>Date: Fri, 23 Aug 2002 14:44:37
>Reply-To: "asp_discuss" <asp_discuss@p...>
>
>I'm sure there's a way of reading an image stored in Access and outputting
>the image as a file. However my ASP (below) doesn't work, it is supposed
>to generate the image as if it was a GIF itself.
>
>The Include file contains the path to the database and the necessary
>constants used by the recordset.
>
>The database contains a table called "Images" which has a field
>called "Image" which is of type "OLE Object" and this is where the GIF
>image is stored.
>
>Any help would be very much appreciated.
>
>----------------------- ASP code ---------------------
>
><!-- #INCLUDE FILE="inc_datastore.asp" -->
><%
>Response.ContentType="image/GIF"
>Dim rs, image
>Set rs = Server.CreateObject ("ADODB.Recordset")
>rs.Open "Images", strConnect, adOpenForwardOnly, adLockReadOnly, adCmdTable
>
>image = rs("image")
>
>rs.Close
>Set rs = Nothing
>
>Response.BinaryWrite image
>%>--+------+-----------+------+---+-------+-+-------+---+--+-----------+--
>
>Subject: Re: How to execute a script in web server from browser without 
>changing a page?,
>From: matthew.cochrane@d...
>Date: Fri, 23 Aug 2002 15:10:47
>Reply-To: "asp_discuss" <asp_discuss@p...>
>
>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.--+------+-----------+------+---+-------+-+-------+---+--+-----------+--
>
>Subject: Save asp as Word doc?
>From: "Dave Landolin" <dave.landolin@o...>
>Date: Fri, 23 Aug 2002 18:48:22
>Reply-To: "asp_discuss" <asp_discuss@p...>
>
>I would like to include a button in my asp which when clicked will save
>the asp as a Word document. Does anyone know how I can accomplish this?
>Thanks in advance,
>DL--+------+-----------+------+---+-------+-+-------+---+--+-----------+----


  Return to Index