473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ 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 2604
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
1843
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 stay that way. Everything but the Stocks section is pulled from our dB. I am using the server control InetCtls.Inet to obtain the stock data from...
3
6873
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 script. I have an unknown number of <DIV> elements in each page, all with a unique id (ID="name"). I need an array with all the names of these...
4
1781
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 "btnCalculateTotal_Click" event will calculate the total and beside the button there is text field will show the result. but each time when I click the button, the...
3
9502
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 page or not. how do we do this. Right I have two menu's because I dont know how to do this. one for other pages that dont have the iframe in...
3
2104
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: Sub loadPage(sender As Object, e As System.EventArgs, pageURL as String)
2
5680
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 is in the main page. Is that possible? The code i have tried goes like much like this
11
2893
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 get logged out. I need to need to reload that sign in url every few hours If I load this url it logs me and resets my session variable and...
6
4134
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 which are able to re-load the page by using the OnChange event and firing the following java script: function OnChangeField() { ...
5
3575
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 a page has been loaded into the div layer I have a custom scroll which i use for div box overflow... the scroller is not being included, my div...
4
9308
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 load page is incorrect and hos is state of validate code after change id an element?
0
7484
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7675
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7440
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5997
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5344
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3470
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
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 we have to send another system

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.