473,698 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NETSCAPE fails to run Body onLoad, WHY ?!?!

In IE, this runs fine, but in Netscape, it doesn't error, but just
doesn't run. WHY?!?!
(in the Page Code Behind)
BODY1.Attribute s.Add("onLoad", "DisplayData(); ")
(in the HTML of the Page)
function DisplayData(){
PanelDescriptio n.style.display = 'none';
PanelBuildingNa me.style.displa y = 'none';
PanelOperatorNa me.style.displa y = 'none';
PanelManagement Name.style.disp lay = 'none';
....(yada yada yada)

Thanks
BTHOMAS71CHEVY-at-EXCITE-dot-COM
Jul 23 '05 #1
2 1307
On 15 Nov 2004 08:45:55 -0800, BTHOMASinOHIO <bt************ @yahoo.com>
wrote:
In IE, this runs fine, but in Netscape, it doesn't error, but just
doesn't run. WHY?!?!

(in the Page Code Behind)
BODY1.Attribute s.Add("onLoad", "DisplayData(); ")


<URL:http://jibbering.com/faq/#FAQ4_41> may apply, but without being able
to see an actual demonstration, it's impossible to say. Please see
<URL:http://www.physci.org/codes/sscce.jsp>.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2


BTHOMASinOHIO wrote:
In IE, this runs fine, but in Netscape, it doesn't error, but just
doesn't run. WHY?!?!
(in the Page Code Behind)
BODY1.Attribute s.Add("onLoad", "DisplayData(); ")
So this is not JavaScript but some server-side ASP.NET code? You should
state that clearly or better yet show us the HTML that Netscape receives
as we usually don't care here what PHP or ASP or ASP.NET does on the
server, it matters only what the browser sees.

(in the HTML of the Page)
function DisplayData(){
PanelDescriptio n.style.display = 'none';
PanelBuildingNa me.style.displa y = 'none';
PanelOperatorNa me.style.displa y = 'none';
PanelManagement Name.style.disp lay = 'none';


Have you checked Netscape's JavaScript console? I am sure there is an
error displayed, unless somewhere the variables PanelDescriptio n etc.
are declared and initialized. If you have HTML elements with these ids e.g.
<div id="PanelDescri ption">...</div>
then you need to script e.g.
document.getEle mentById('Panel Description').s tyle.display = 'none';
in browsers following the W3C DOM (as Netscape/Mozilla do).
If you also care about older browsers not throwing error messages then
you also need to check whether document.getEle mentById and other
features are supported.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1589
by: Jeff Johnson | last post by:
Hi Everybody, I have a function that works great in IE but fails in NN. Would someone please give me some insight as to how to correct this: function init(){ var oFrame = parent.frames; if (typeof(oFrame.divSummary) != 'undefined'){***** fails here! updateContent(oFrame);
9
1913
by: Dom | last post by:
I have a frameset with a left right columns, called 'index' and 'content'. The left column of the frameset ('index') loads an index.htm file which have these hrefs (summarized the code a bit) for readability : <a href="studio/index.htm" target=content id="studio"> studio </a> <a href="bandw/index.htm" target=content id="bandw"> bandw </a> <a href="arch/index.htm" target=content id="arch"> arch </a> <a href="etc/index.htm" ...
2
1425
by: ALuPin | last post by:
Hi, when I try to see the effect of the following script I do not see anything when using Netscape Navigator whereas InternetExplorer ist ok. In Netscape Javascript is activated. What could be the problem? Thank you for your help.
2
4255
by: Robbie | last post by:
Hi, I want to programatically fire an event. I have it working in IE, but Netscape won't work. What is the Netscape equivalent to, or a workaround for: document.myForm.myField.onchange(); I've read many posts, but none seem to answer my question. Anyway, my example follows.
8
2083
by: Bob Bedford | last post by:
I've a code with redirect to a login page if nobody is registered. It works fine on IE6, but I'm trying with NS, and it doesn't work. Here is the code: <form name="RedirectLogin" method="POST" action="login.php"> <input type="hidden" name="LogType" value="ManageProfile"> </form><script language="javascript">document.forms.submit();</script>
5
2775
by: danny.myint | last post by:
I was under the assumption that javascript loads all the <head></head> elements before processing the <body> tag in Mozilla/Netscape/Firefox. It doesn't seem like it, with my problem. I have navigation that has onMouseOver and onMouseOut triggers, that use function calls in my external .js file. When I mouseOver a button in my navigation quickly enough to catch it before the rest of the body loads, it returns a function "not defined"...
4
1087
by: moondaddy | last post by:
I need to get some simple scirpt to run in netscape 4x. I tested it in 4.73 and mozilla 1.0 which should be nescape 5.0. My problem is how do I reference a textbox and set its value. function testclick() does run as I can see the msgbox, but it fails to set a value into the texbox. Any good ideas? Here's a simple test page:
20
11886
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for (i=0;i<obj.length;i++) { obj.attachEvent('ondrag', noDrag); }
0
8610
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7740
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4623
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.