Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-28-2006, 11:27 AM   PM User | #1
jacob999
New to the CF scene

 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
jacob999 is an unknown quantity at this point
Table display issue in Netscape 7.1

Code:
<table width="100%" id="infoPage" cellspacing="0" cellpadding="0">
//has a progress bar image
</table>

<table width="100%" id="realPage">
<tr>
<td><jsp:include page="/submitHandler.do" flush="true">
     <jsp:param name="buttonClicked" value="<%=submitBtn%>" />
</jsp:include></td>
</tr>
</table>
On load of the above jsp, i am calling the following js function -

Code:
function initWait(){

   if(document.getElementById){
     document.getElementById('infoPage').style.visibility = 'hidden';
     document.getElementById('realPage').style.visibility = 'visible';
        }
As you can see, i want to display the progress bar as long as the included jsp (in the second table tag)is not completely displayed.
i also have the following <style> tag within the <head> tag of my jsp -

Code:
<style>
#infoPage {
	position: absolute;
}

#realPage {
	position: absolute;
	visibility: hidden;
}
</style>
for all browsers, this code works fine i.e. the progress bar is displayed for some time and then the included jsp is displayed, but in case of NS 7.1, it is not working properly. Instead of displaying the progress bar image, it displays a blank page for some time, then just before the included jsp is about to be displayed, the progress bar is displayed for a split second.

Also this doesnt happen all the time. Sometimes it works as intended.
Can anyone help me out with this?
jacob999 is offline   Reply With Quote
Old 09-28-2006, 01:14 PM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Internal

I don't know if your JavaScript function is internal or external, but it might have to do with the way, or order, NS7.1 loads the various components.
You could try to place the JS function internally in the page as well to make sure it is available once the page has loaded. The style rules are internal already, so they should be applied no matter what.
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 09-29-2006, 08:35 AM   PM User | #3
jacob999
New to the CF scene

 
Join Date: Aug 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
jacob999 is an unknown quantity at this point
Quote:
Originally Posted by ronaldb66 View Post
I don't know if your JavaScript function is internal or external, but it might have to do with the way, or order, NS7.1 loads the various components.
You could try to place the JS function internally in the page as well to make sure it is available once the page has loaded. The style rules are internal already, so they should be applied no matter what.
Thanks Ronald for your reply.

Yes, i was initially using an external function (i had it in a .js file). i tried adding this function internally in the jsp as well but still got the same issue.
This functinality is working properly for NS 7.2.

regards,
Jacob
jacob999 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:35 PM.


Advertisement
Log in to turn off these ads.