Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 02-03-2007, 10:09 PM   #1 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 68
complete is on a distinguished road
Designing websites for staged loading

What I would really like to learn is how to load a page so that it display in parts. In other words, if a website is graphic intensive, it shows one gif at a time as if the page is building infront of the users eyes. This is in contrast to that blank page that users see while the website is being loaded.
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Old 02-04-2007, 11:25 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
hi complete,

it's not possible to have that level of control in regards to loading with plain html. you could however do it with AJAX. it would be a pretty complicated solution for the sole purpose of having your page load nicely, but it would work.

on a high level... you would lay out your page with bare bones minimum HTML/CSS, and then use AJAX to perhaps make server requests for the content of the specific areas.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 02-04-2007, 05:16 PM   #3 (permalink)
complete
Code Monkey
 
complete's Avatar
 
Join Date: Jul 2005
Location: St. Louis
Posts: 68
complete is on a distinguished road
Quote:
Originally Posted by sde View Post
hi complete,

it's not possible to have that level of control in regards to loading with plain html. you could however do it with AJAX. it would be a pretty complicated solution for the sole purpose of having your page load nicely, but it would work.

on a high level... you would lay out your page with bare bones minimum HTML/CSS, and then use AJAX to perhaps make server requests for the content of the specific areas.
I have not jumped into AJAX yet. I guess now would be a good time to start. I have heard buzz about it from here and there. So, where do you recomend I go to start?
__________________
46 45 52 4D 49 20 57 41 53 20 4A 45 44 49 2E 10
20 53 41 47 41 4E 20 57 41 53 20 53 49 54 48 2E
complete is offline   Reply With Quote
Old 02-05-2007, 05:45 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
what server-side language does your web server support? do you have any server-side scripting experience?

php is always my tool of choice. there are AJAX frameworks out there which make your life easier and handle a lot of the repetative tasks as well as optimization for you. a nice light-weight framework for PHP is MyBIC.

if you are the type that likes to know how things work at the lowest level, then i would read up on the XMLHttpRequest object to understand what is really going on behind the scenes in the AJAX frameworks out there.

in short, AJAX is just using JavaScript to get text from another web page. the web page isn't necessarily a traditional web page, but rather XML or text formatted in a format that you can evaluate into a JavaScript object.
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 02-05-2007, 09:17 AM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Ehm, why not look into Comet? It is superior to AJAX.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 02-05-2007, 09:23 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
sde is on a distinguished road
from what i've read, i would argue that comet is a form of AJAX.. no? .. got any good resources for it?
__________________
testing 1 2 3
sde is offline   Reply With Quote
Reply


Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Factories with Lazy Loading in C# cyberjoe All Other Coding Languages 0 12-13-2006 12:10 PM


All times are GMT -8. The time now is 06:46 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle