Please may you help me in the following problem?
Moderator: General Moderators
-
fastfingertips
- Forum Contributor
- Posts: 242
- Joined: Sun Dec 28, 2003 1:40 am
- Contact:
Please may you help me in the following problem?
Please may you help me in the following problem?
I have a frameset with 2 frames, in the first one is loading a page from my site, in the second it would be loaded different other pages from different websites (I will not have any control on their content).
I would like to know if is there any possibility to test if the page from the second frame has been loaded.
Thank you
I have a frameset with 2 frames, in the first one is loading a page from my site, in the second it would be loaded different other pages from different websites (I will not have any control on their content).
I would like to know if is there any possibility to test if the page from the second frame has been loaded.
Thank you
-
fastfingertips
- Forum Contributor
- Posts: 242
- Joined: Sun Dec 28, 2003 1:40 am
- Contact:
-
fastfingertips
- Forum Contributor
- Posts: 242
- Joined: Sun Dec 28, 2003 1:40 am
- Contact:
Sorry for that, but as you see i'm new to this forum, also in general i'm not a member to many forums, with this i'm member at three forums so i'm a rookie.
Now because i find out how i must do i will not repeat the mistake but also i know that i did not deserve this:
Now because i find out how i must do i will not repeat the mistake but also i know that i did not deserve this:
Where is your patience for rookies?Don't double post man, if nobody answers, nobody knows.
he wasn't having a go at you.
As a noob, you are encouraged to read the posting guidelines (viewtopic.php?t=8815), which you must not have done if you made this mistake.
We all make mistakes, just learn from them and progress and we can all be one happy family *Group Hug*
As to your problem, i am not sure.
Mark
As a noob, you are encouraged to read the posting guidelines (viewtopic.php?t=8815), which you must not have done if you made this mistake.
We all make mistakes, just learn from them and progress and we can all be one happy family *Group Hug*
As to your problem, i am not sure.
Mark
I guess you could try putting an onload handler on the frame... but to be honest I'm not sure if this would work.
I can't think of anything else at the moment. If you have no control over the page you are loading (ie it's not yours) then there's not much you can do.
On other note if the pages are not your own (or your friends) then be careful of any copyright on the pages you are loading
Code: Select all
<head>
<script type="text/javascript">
function FireFunction()
{
alert("page loaded");
}
</script>
</head>
<frameset cols="100,*" blabalbalba>
<frame href="pageOne.htm" />
<frame href="pageTwo.htm" onload="FireFunction()" />
</frameset>On other note if the pages are not your own (or your friends) then be careful of any copyright on the pages you are loading
-
fastfingertips
- Forum Contributor
- Posts: 242
- Joined: Sun Dec 28, 2003 1:40 am
- Contact:
The onload() event is fired when the page has loaded with the exception of any images/flash movies etc.fastfingertips wrote:Sir the onload() isn't when the page starts to load?
I woud like to test if the page has been loaded 100%. Also i do not have any control on that page (it has been loaded from another source then my site)
If you want to test for when the page has finished downloading everything it needs to then you are going to need to use some heavy JavaScript code. For example you will need to run a loop to check if the <body> of the page is available for JS to access, you will need to build a list of all images on that page, attach an onload event to each of the images, and then run another loop/check to test for when all of the images have loaded up. I would do it for you but it's not something I would do for free.
It's not impossible to do it yourself but you will need to have good knowledge of JavaScript, and you also need to use different versions of the code depending on which browser is being used.
Why do you need to check if the page has loaded anyway?
-
fastfingertips
- Forum Contributor
- Posts: 242
- Joined: Sun Dec 28, 2003 1:40 am
- Contact:
Once the page has been loaded user must perform an action into that page, after that I must check again if the page has been loaded again (after the action).
Because is loading an external page I cannot check the URL, nothing so my only way is to take completed action and as I see only the onload() allows me to do that.
I’m not interested by images.
Because is loading an external page I cannot check the URL, nothing so my only way is to take completed action and as I see only the onload() allows me to do that.
I’m not interested by images.