Results 1 to 9 of 9

Thread: How to: Partial Page Load

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    How to: Partial Page Load

    Hi Guys,
    I'm trying to build an igoogle like interface and I can get it to work, but my data for the panels loads to slow which makes the complete page load way to slow. So I need a way to load the page and then start loading panels individually. I looked at update panels but they seem to only work when post back occurs. I need a way to load the page by piece from the first time the person comes to the site.

    Any ideas? Anyone know the technical term for that? Probably help when I'm searching for information on it. Thanks.
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  2. #2
    Member
    Join Date
    Jan 2012
    Posts
    46

    Re: How to: Partial Page Load

    Have you looked into storing the data in a Session or Application variable? Not sure if that would help, since it would be the users first time on the page. It may help on subsequent visits, but not really sure. I have only used Session/Application for holding data like user name or password, stuff like that. So I am not sure if it can be used for what you looking for

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to: Partial Page Load

    I've done this before using JQuery... firing off a javascript segment that waits for the page to load, then executes additional calls to retrieve the information and uses it to update the display... So that's probably what you should be looking for. ASP.NET may have something that you can drop in that does the samething.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: How to: Partial Page Load

    What do you call that? Do you have any examples? I've heard of using JSON, but can't find any good examples of it. Also heard about using web services but still not any good examples.

    This seems like something like what I'm looking for but need a better example:
    http://encosia.com/using-jquery-to-d...-page-methods/
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: How to: Partial Page Load

    Sorry, AJAX is what you should be looking for... JQuery is a specific library that's available (and seems to be the most common one in use)... JSON is used with AJAX to transfer data back and forth... when I was workign with JQuery, I used simple XML to send data back from the server.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: How to: Partial Page Load

    Still can't seem to find what I'm looking for. What I'm trying to do is dynamically build tables when the user comes to the site and then display them as they build. From what I've seen it looks like what I want but can't figure out how it helps me. Any ideas? Does anyone know of any examples?
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How to: Partial Page Load

    Hello,

    Do you have a reference website that you could point us at which shows what you are trying to implement?

    Based on what you have said, jQuery is definitely a library that you are going to want to look into. You might not find an exact example of what you are trying to do, but you should be able to build on other examples that are out there.

    Gary

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    407

    Re: How to: Partial Page Load

    Here's a better description of what I'm trying to do:

    I have a web site that has multiple tables on it. Kinda like an iGoogle interface. These tables get built dynamically at load time and because each table needs to make some http requests. They take a little while to build. Right now it basically builds all the tables and then displays all the tables after all the tables are done loading.

    What I want to do is use AJAX to display the web page in parts so that the each table becomes visible as soon as its done being rendered. I thought of using update panels but the user is stuck staring at a blank screen till all the tables are loaded when they first come to the site.

    I thought of using javascript but the jquery stuff doesn't look like it really works with asp tables so I don't see how that would work.

    It's basically an iGoogle interface, which I have working, but the problem is that the user is starting at a blank screen till all the tables get loaded when they first come to the site.

    I'm wondering if a web service that uses JSON or something like that would help me? That's what I've started to look at. Could you have panels then when the website gets visited fire off a request to the server for the tables and then have each panel load their own tables?
    My Websites
    SharpMP3 - MP3 Design Articles www.sharpmp3.com
    Yobbers - Job Search www.yobbers.com
    Lets Trend - Methods For Riding Stock Trends www.letstrend.com

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: How to: Partial Page Load

    You can definitely use jQuery to create a dynamic table:

    http://ajondeck.net/post/2010/06/24/...ate-Table.aspx

    What I suspect is "missing" from this sample is the time it takes to make the web service call from the client, and render to the result to the page.

    You can handle this in a number of ways, but normally you would have some form of waiting indicator:

    http://api.jquery.com/ajaxStart/
    http://www.sitekiwis.com/2010/11/cre...n-with-jquery/

    Which you could easily add in, while you are waiting for the response from the web service call.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width