473,474 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

load a page in div tag with preloading

4 New Member
Hi my friends
I have a dive tag in my page,what I want is that when user click a link a html or php page loads in this div and during loading of the html or php file in the div a preloading shows.

thanks to help me.
Oct 5 '11 #1
7 2597
gits
5,390 Recognized Expert Moderator Expert
what do you have done so far?
Oct 5 '11 #2
mirzaei1
4 New Member
I have made my preloader with css and javascript but because onload event dosnt support in div tag when the preloader shows with clicking the link it dosnt disapear after loading page into div,I have also used some codes but when the images are downloading(not after they downloaded) the preloading disapears.
Oct 5 '11 #3
gits
5,390 Recognized Expert Moderator Expert
things start to mix up - what exactly is to be loaded? basically you might use an AJAX-call to retrieve the html-code that should be placed in a div but if that html-code contains images then they are loaded through the src-attrib (new and own requests) so that you might need a n img-preloading mechanism too
Oct 5 '11 #4
mirzaei1
4 New Member
what should be loaded is a complet html file including images.
Oct 5 '11 #5
gits
5,390 Recognized Expert Moderator Expert
that invalidates your html? a div shouldn't contain a 'normal' html-file.

anyway ... in case you want to really controll all loading with such a mask you have to preload the images and the page and find a way to sync that so that you know when to rmove the mask. it is not a trivial thing to do so you should need to know if it's worth the efforts
Oct 5 '11 #6
mirzaei1
4 New Member
I need an ajax code in order to callback the complete load of all images in page?
Oct 5 '11 #7
gits
5,390 Recognized Expert Moderator Expert
no - you cannot load images via an XMLHttpRequest - to ensure you have all imgages loaded then you need an image-preloader like this
Oct 6 '11 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: CST | last post by:
Hi All, I have a "Digital Dashboard" that basically has 4 IFrame sections. The page flows in the following order: Messages, Stocks, Weather, User Links. Please note that this order needs to...
3
by: Francois | last post by:
Is it possible to automatically create an array on load page? I want my script to be external. (<script language="JavaScript" src="somescript.js"></script>) Several pages should use this...
4
by: Symphony | last post by:
Hi, All: I am using vb.net developing web application. I am new in web application. My issue is: I have a button "btnCalculateTotal" on a web page (form), click this button, the...
3
by: Paul | last post by:
HI! how do we load a page from the menu into an iframe when you are not on the iframe page? I want to be able to load pages (options in my menu ) into a iframe no matter if I am on the iframe...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
2
by: hgl1976 | last post by:
Hi! I have a web page that from a query that loads the search result into an iframe on the page. In the search result inside the iframe i would like to be able to load content into div tag that...
11
by: tdmailbox | last post by:
I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I...
6
by: rmurgia | last post by:
I set up a page which allows the user to add data to a table. I would like to then re-load the page to display all of the data in a list including the data the user entered. I currently have fields...
5
anfetienne
by: anfetienne | last post by:
hi, I am using ajax to load external pages into a div layer... my reason for this is when in a certain section of the site the transition is smooth with no white flash. my problem is that when...
4
oranoos3000
by: oranoos3000 | last post by:
hi can i change id attribute an element with below command in jquery $("#error").attr("id", "warning"); i know this code is not reasonable but i want to know change id's element after...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.