help with load content with setTimeout


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: help with load content with setTimeout

  1. #1
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40

    help with load content with setTimeout (Resolved)

    i try to replicate a js-Ajax exemple from the site http://www.yensdesign.com/tutorials/contentajax/
    Is to load a web page into another webpage (external) with a hiding-showing bar - up and down. BUT the new page i'v load is showing BEFORE the bar is hiding the first. So i try to find a way to clear the page before the sliding bar and put a delay to let the bar return back down and show the new page.
    At this time i just try to understand SetTimeout func, but wont work. Can you guide me on my SetTimeout fonc and i appreciate some advice to fix the refresh of the new page.
    Code:
    case "external2":
    		content.slideUp("slow");	
    		setTimeout (content.load("external2.html", hideLoading),5000);
    		content.slideDown("slow");
    		break;
    I work with dreamweaver CS3 to open the .JS file
    Thanks
    Last edited by Dralion; 04-19-2009 at 04:25 PM.

  2. #2
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40
    thank to Donk (from other web forum) to find and fix the glitch passing by jquery ressource
    Code:
                case "home":
                    content.slideUp("slow",function(){
                        $.ajax({
                            url :"home.html",
                            success:function(html){
                                content.html(html).slideDown("slow");
                                hideLoading();
                                }
                            })
                        })
                    break;
    and bypassing the setTimeout fonction

Similar Threads

  1. Frustrating CSS differences Firefox and IE
    By smallzoo in forum ASP.NET
    Replies: 1
    Last Post: 03-20-2008, 12:02 PM
  2. Replies: 3
    Last Post: 01-11-2008, 01:41 AM
  3. Load Content. How to create this? Thank You.
    By shapper in forum ASP.NET
    Replies: 0
    Last Post: 04-21-2005, 08:32 AM
  4. Replies: 2
    Last Post: 03-16-2001, 10:56 AM
  5. Replies: 0
    Last Post: 03-14-2001, 03:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center