Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-11-2008, 08:17 PM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default Dont Reload external content in Tab

1) Script Title: FF1+ IE5+ Opr7+Tab Content Script (v 2.2)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

3) Describe problem:
How can i make it so external content shown in the tabs does not reload everytime i reclick on it?

Thanks
Reply With Quote
  #2  
Old 07-11-2008, 10:31 PM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

Well, Tab Content Script doesn't support IFRAME content by default. Or do you mean Ajax Tabs Content script instead?
Reply With Quote
  #3  
Old 07-11-2008, 10:39 PM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

yeh sorry
Reply With Quote
  #4  
Old 07-12-2008, 09:15 PM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

Well, whether or not the IFRAME page is cached when you click on the same tab repeatedly depends partially on how your server caches web pages. But as far as the script is concerned, the following line is what loads the page into the IFRAME:

Code:
window.frames["_ddajaxtabsiframe-"+contentdivid].location.replace(pageurl) //load desired page into iframe
You can try modifying that to:

Code:
window.frames["_ddajaxtabsiframe-"+contentdivid].location=pageurl //load desired page into iframe
to see if it helps cache the requested page on subsequent requests.
Reply With Quote
  #5  
Old 07-12-2008, 11:50 PM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

what i mean more is that if you show google with search results on one tab and then click on one of the links, then click another tab when you click on the first tab again you would be on the liked site.

Thanks
Reply With Quote
  #6  
Old 07-19-2008, 11:01 AM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Do you have any ideas? what i want is say i was on tab 4 which is google, i search for nokia, then i click on tab 3. How would i make it so that if i click on tab 4 again i will still be on the nokia search results page instead of googles homepage?

Thanks

Last edited by ojsimon; 07-19-2008 at 11:11 AM.
Reply With Quote
  #7  
Old 07-19-2008, 11:36 AM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

also, how do you make the size of the iframe bigger? ive made the div bigger by putting a height into the div.

Thanks
Reply With Quote
  #8  
Old 07-20-2008, 08:05 AM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

Ah, so you're actually asking how to persist the page loaded in the IFRAME for the various tabs that use IFRAME mode. There's no easy way with Ajax Tabs Content script unfortunately, as the script actually destroys and recreates a new IFRAME instance whenever the tabs are clicked on to ensure the page shown in the IFRAME isn't cached moving from tab to tab.

Regarding adjusting the IFRAME's height, check out this thread for a mod that does that: http://www.dynamicdrive.com/forums/s...d.php?p=132566
Reply With Quote
  #9  
Old 07-20-2008, 08:47 AM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

so there is no way to stop the frame reloading?
Reply With Quote
  #10  
Old 07-20-2008, 03:17 PM
ojsimon ojsimon is offline
Junior Coders
 
Join Date: Jan 2008
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for the resize that worked well but is there no way to stop the content being destroyed after you click on a different tag and reload it? also with my site the css seeps through onto one of the sites on the iframe, how can you fix this?

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:02 PM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.