Please Wait message while PHP loops
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Please Wait message while PHP loops
Typo:
windows.onload
Should be:
window.onload
windows.onload
Should be:
window.onload
Re: Please Wait message while PHP loops
thanks chris.
Re: Please Wait message while PHP loops
Okay. I changed the typo. At first I was getting a "Not Implemented" error (yellow triangle kept coming up) but now when I refresh there are no errors.
But the loading message still isn't disappearing!
Hmm. I'm stumped. Mainly because I know nothing about Javascript!!
KD.
But the loading message still isn't disappearing!
Hmm. I'm stumped. Mainly because I know nothing about Javascript!!
KD.
Re: Please Wait message while PHP loops
Just realised that the Javascript makes a call to "myclass" but I don't know what "myclass" should be defined as in my CSS. Have tried defining it as:
myclass {display: none;}
but this isn't working.
KD.
myclass {display: none;}
but this isn't working.
KD.
Re: Please Wait message while PHP loops
have no clue what you are on about. it works from my end ! ? 
Re: Please Wait message while PHP loops
no, myclass should be whatever style you want for the div, but don't assign any value to the display attribute, as that is handled by the javascript.kdidymus wrote:Just realised that the Javascript makes a call to "myclass" but I don't know what "myclass" should be defined as in my CSS. Have tried defining it as:
myclass {display: none;}
but this isn't working.
KD.
Last edited by php_east on Sat Mar 21, 2009 10:50 am, edited 1 time in total.
Re: Please Wait message while PHP loops
i see the problem.
there seems to be a redirect to another page, and that page has not the javascript you entered.
the redirected page is
http://www.didymus.org.uk/tree/a-zfn.php
so this is where you will need the javascript, and the div, not on the page where the user clicks the links.
there seems to be a redirect to another page, and that page has not the javascript you entered.
the redirected page is
http://www.didymus.org.uk/tree/a-zfn.php
so this is where you will need the javascript, and the div, not on the page where the user clicks the links.
Code: Select all
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'/>
<title>A-Z by Forename | Didymus.org.uk | Family Tree</title>
<meta name='author' content='Kris Didymus'/>
<meta name='keywords' content='family,tree,genealogy,didymus,oliver,bending,nettleton'/>
<meta name='description' content='On-line family tree of the Didymus and Oliver families...'/>
<link rel='stylesheet' href='../css/lytebox.css' type='text/css' media='screen' />
</head>
Re: Please Wait message while PHP loops
Ah. No. I THINK I can see where this confusion came in.
On the actual site, if you click A-Z by Forename or A-Z by Surname it loads a page which meta-refreshes.
The link you should be clicking on to test your code is: http://www.didymus.org.uk/tree/a-zfn2.php
Once I get it working I'll rename this page a-zfn.php and remove the link to the meta-refreshing page.
Hope that's clear!
KD.
On the actual site, if you click A-Z by Forename or A-Z by Surname it loads a page which meta-refreshes.
The link you should be clicking on to test your code is: http://www.didymus.org.uk/tree/a-zfn2.php
Once I get it working I'll rename this page a-zfn.php and remove the link to the meta-refreshing page.
Hope that's clear!
KD.
Re: Please Wait message while PHP loops
ah, i see.
ok, nice.
Re: Please Wait message while PHP loops
could you please change this line
window.onload=remove_loading_div();
to this...
window.onload=remove_loading_div;
as that is what java wants to see. i have tested it a moment ago.
window.onload=remove_loading_div();
to this...
window.onload=remove_loading_div;
as that is what java wants to see. i have tested it a moment ago.
Re: Please Wait message while PHP loops
PHP_East
Some might say you're good. Some might say you're the best.
I'd go one stage further. Yes, it works fine now. Absolutely superb. I will work on the <div> element over the weekend and hope to have the whole thing up and running next week.
Thank you so, so much again for your help.
KD.
Some might say you're good. Some might say you're the best.
I'd go one stage further. Yes, it works fine now. Absolutely superb. I will work on the <div> element over the weekend and hope to have the whole thing up and running next week.
Thank you so, so much again for your help.
KD.
Re: Please Wait message while PHP loops
thanks for the compliments. this is only a little help.
if it works fine, then good for you, hope you find this method useful for many other things.
cheers.
if it works fine, then good for you, hope you find this method useful for many other things.
cheers.