DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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 03: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, 11:02 AM
  2. Replies: 3
    Last Post: 01-11-2008, 12:41 AM
  3. Load Content. How to create this? Thank You.
    By shapper in forum ASP.NET
    Replies: 0
    Last Post: 04-21-2005, 07:32 AM
  4. Replies: 2
    Last Post: 03-16-2001, 09:56 AM
  5. Replies: 0
    Last Post: 03-14-2001, 02:03 PM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links