Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 6th, 2008, 11:22 AM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default VBScript to change target of Iframe

I'm using multiple Iframes on a website.
I would like to set a timer for changing the source html for 1 of the iframes.

I've put the code in to set the timer and I have the process it kicks off.

Problem is setting the iframe source to the variable.

Please Help!


Thanks in advance.

dartcoach
__________________
dartcoach
  #2 (permalink)  
Old May 9th, 2008, 11:36 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Dartcoach,

Personally I would advise against using iframes as they are going against many of the principles outlined in the book (and are generally old hat).

If you are using frames as a way to display common content accross all your pages such as menus/headers/footers you should look into using Master Pages (good explanation in the book).

If however you need some way of updating various content of your page asyncronously without fully posting the page back to the server I would suggest looking into AJAX (http://asp.net/learn/ajax/)

You can achieve what you wish to do quite easily with partial page updates using an UpdatePanel. You can dynamically change the source for your panel at runtime.

Hope this helps.

Retro

  #3 (permalink)  
Old May 9th, 2008, 11:45 AM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Retro,
Thanks for the reply. The reason I don't like CSS and others is that the whole page refreshes and I don't like the bounce.
Using Iframes, I've created a site with a menu Iframe, a main iframe, and and advertisement iframe. When a menu item is chosen, the main iframe's source changes and it looks and acts seamless. Since I'm building this completely with html and vbscript, it makes maintenance and enhancements to the site pretty easy.

Sometimes old hat does just what you want it to do - easily.

I did get the advertisement to work finally.

Thanks again.

dartcoach
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change ASP variable in VBScript jimusa Classic ASP Basics 1 August 13th, 2008 07:08 PM
Change MsgBox title from VBScript to custom crmpicco VBScript 3 May 15th, 2008 07:56 PM
values from one iframe to another iframe URGENT raaj Beginning PHP 2 February 27th, 2007 12:19 PM
xsl links to target iframe dragonkeeper XSLT 1 August 10th, 2006 12:28 PM
Change Page in iframe qazi_nomi Javascript How-To 10 February 21st, 2005 07:45 AM



All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.