*Groan*- Netscape Woes And JS

Oct 3, 2003

I have done something that works perfectly in IE, but doesn't work at all in Netscape.

I have a page of thumbnail images (Page A). When each thumbnail is clicked on, a small 300x 300 pop up (Page B) appears with a larger "preview." The preview image that appears in the small pop-up is dynamically created with the onClick/ image swapping method. (In other words, when a user clicks on a thumbnail on Page A, it swaps a transparent gif I have placed on Page B with the preview image).

Now I've tested this on IE and it works perfectly. But in Netscape, not only does the image swap not occur (no preview image appears), but the height and width attributes I've designated for the pop up are ignored (the pop up is full screen instead of 300x300).

View 8 Replies


ADVERTISEMENT

Mark Of The Web Woes

Jul 23, 2005

I've started testing on Win XP SP2 and it now has something called local machine lockdown activated by default. It means that active content,
such as JavaScript, is prevented from running.

I thought that the solution was simply - to enable the testing of files locally - to just add what M$ calls the "mark of the web". So I added
this line to the tops of my HTML pages:
<!-- saved from url=(0013)about:internet -->

However, the local links in the files, such as to external JavaScript files, do not work because (I believe) the HTML files are now treated as an internet zone and not a local zone file.

Without deactivating the lockdown is there a way to get a bunch of inter-linked files to work locally, or is it just my lack of understanding of what's going on that's at fault?

View 16 Replies View Related

More SetTimeout Woes

Oct 23, 2007

Just another quick question:

Code:

function calc(value, rate)
{
setTimeout("calc(value, rate)", 1000);
}
In FireFox error console it says that "value" and "rate" are not defined. But they are?

View 3 Replies View Related

Matrix Woes - Summing Up A Multi-dimensional Array

Sep 27, 2011

I have a Javascript array object like this:

[0][0] - 32[1] - 13[2] - 26[1][0] - 8[1] - 17[2] - 4[2][0] - 10[1] - 30[2] - 22...etc

and what I want to end up is with an array with the sum of the [0], [1] and [2] values, so for instance with this example, I want an array returned like this:

[50, 60, 52] i.e. this is [(32+8+10), (13+17+30), (26+4+22)]

My real problem with this is that the "inner array" can be any number of (its dynamic), so in my example its just 3 values but it could be for example 5 values e.g.:

[0][0] - 32[1] - 13[2] - 26[3] - 16[4] - 6etc

View 10 Replies View Related

AJAX And Refresh/location Bar/backbutton Woes (adding To History)

Jul 7, 2006

If I type http://domain.com/product/5 into my browser I will see the
product details in the main div plus a side bar div containing links to
other products. This side bar is common to all product views. I click a
sidebar link to product 6 and an ajax request updates the main cell
with the product 6 information. My location bar will still say
/product/5. If I refresh the browser I will see product 5. If I
bookmark the page it will be for product 5. If I click the back button
I will go to the page I saw before product 5. I know none of these
problems with AJAX are new. Why is it that JavaScript can't tell the
browser "Now you are looking at http://domain.com/product/6"? Is there
a security risk? Is this just something not yet implemented?

View 4 Replies View Related

New Tab In Netscape 7

Jul 23, 2005

Is there a way to get a page to appear in a new tab in the same window in
Netscape 7?

View 4 Replies View Related

Netscape 4.x And CSI

Aug 25, 2004

I am creating a site that will use a Client-Side Include (CSI) to dynamically generate an ad banner to be placed on the right hand side of the page. It loads great in IE5 and above and Netscape 7 and even loads fine in Netscape 4.7. The problem is when the user resizes the window, the ad banner that was generated is then placed at the bottom of the page. I even look at the HTML of that particular page and the CSI is thrown into the bottom portion of the site. I am perplexed as to how it just throws it down AND knows where in the HTML code to insert itself.

If anyone has any ideas on how to stop this snippet of code placing itself anywhere in the site, I would appreciate any help. Again, it LOADs fine but when the user decides to re-size the window, it just moves it down to the bottom of the site.

View 18 Replies View Related

Show A Div On Netscape

Jul 23, 2005

I've got a trouble with my script, i want to show a <div> on Netscape
and it doesn't work: Here is the script

//navigators identification

var ie4=(document.all && !document.getElementById)? true:false
var ie5=(document.all && document.getElementById)? true:false
var n4=(document.layers)? true:false
var n6=(!document.all && document.getElementById)? true:false

// creation of three div Code:

View 6 Replies View Related

Problem With Pop Up And Netscape 7.0

Jul 23, 2005

My Website (Template) uses JavaScript to create a pop-up window in the
gallery.With IE it works fine, but not with my Netscape 7.0. No Pop up apears.

In the script I found the line:

if (browser_type == "Microsoft Internet Explorer" && (browser_version >=
4) && (navigator.userAgent.indexOf("Windows") != -1)) {

has it something to do with not working?

View 5 Replies View Related

Netscape With Javascript

Jul 20, 2005

I created a menu bar for my page using Sothink DHTML Menu 4.1 which created javascript file. I also add a small slide show on the page using javascript and the javascript is embedded in this page's HTML.

Everything works perfectly with IE. However, Netscape (4, 6, 7) can't see the menu bar created in DHTML when the slideshow javascript is present.

If I just have the menu bar or slideshow alone on the page, Netscape can see it, but it seems that Netscape always ignores the DHTML script when both javascripts are present. Not sure what is going.

I have tried to put the slideshow javascript in the .js file that has the DHTML code for menu bar, but it didn't work either.

View 6 Replies View Related

How To Use Applet In IE Or Netscape

Jul 20, 2005

I just installed the LoveSan security patch from MSFT and turned on
Auto-Update. Now applets do not load. I tried getting Netscape 7.1 but
it directs me to the Sun page to install JRE. I do this but still
neither IE or NS will load applets. Tried downloading some from
various websites with free applets but these do not work either. Any
ideas?

View 1 Replies View Related

Javascript And Netscape 4.7

Jul 20, 2005

I have a problem with NS 4.7 (I know, it is old, but I have no
choice...) :

So, I have a page with a link to open a new window:

var strHtml = '<html><head><title>title_of_window</title>' +
'<LINK rel=stylesheet href=theme.css>'+
'<SCRIPT LANGUAGE="JavaScript" SRC="my_script.js"></SCRIPT>' +
'</HEAD><BODY onLoad="fonc_onLoad();" class=Body topmargin=0
leftmargin=0 MARGINWIDTH=0 MARGINHEIGHT=0>' +
'blablabla' +
'</body></html>'

var win = window.open('', 'window_name', 'parameters');
win.document.write(strHtml);
win.document.close();
win.focus();

My problem concerns the tag "onLoad " of the "BODY" tag: with IE, the
"fonc_onLoad()" starts normally (this function is in "my_script.js"),
but with NS 4.7 (ou 4.51), the <SCRIPT> tag is ignored (you can view the
window's source code), so the "fonc_onLoad()" function cannot not start.

View 3 Replies View Related

Netscape And IE Incompatibility

Jul 20, 2005

i have a netscape and IE incompatibility problem. when i change the text size in netscape everything looks fine and all frames text size change. but when i change the text size in IE just one frame change!

View 1 Replies View Related

Netscape Function

Dec 9, 2005

I'm making a website in both english and italian languages. I thought to make a javascript function that automates the switch from one lang to the other, reloading the same page. It works fine with IE, but when I tried to view it on a Netscape7 browser, nothing happen when I click on the link. Code:

View 1 Replies View Related

Navigating The IE Vs Netscape DOM

Nov 9, 2001

I guess because IE once again has its own variations this works or Netscape isn't following the dom I don't know which but I was hoping this type of navigation was going to be dom compliant with the newest versions of Netscape

If you have a table with the id "bob" (I like dumb names sometimes) you should be able to navigate down the table via bob.firstChild.childNodes[1].innerHTML. This does not work in netscape but does work in IE. I find this troubling because of how much easier things would have been if it worked in both. I really just wish the browsers would become equal.

The dom specification is here (outdated I believe)
http://www.w3.org/TR/1999/CR-DOM-Lev...roduction.html

Thats the specification and how it supposedly works. I am going to keep playing and figure out if maybe Netscape 'changed' it. for an example try this Code:

View 8 Replies View Related

Netscape New Window

Dec 14, 2006

i tried everything to open a new window of smaller size in Netscape, just couldn't do it. Is it my own Netscape browser setting or Netscape itself's problem?

here's one of the code im using:

<A HREF="javascript:void(0)"

'welcome','width=300,height=200')">
Open a new window</A>

View 3 Replies View Related

Netscape 7.1 GetElementById Error

Jul 23, 2005

I have a javascript function which uses the method
document.getElementById.

I'm using it to decide whether a checkbox has been ticked or not. This
decision is encoded in an if statement with the condtion being
if (document.getElementById(checkboxtoupdate).value ==1)

/* The Code */

function set(object)
{
var checkboxtoupdate = object.value;

if (document.getElementById(checkboxtoupdate).value ==1)
document.getElementById(checkboxtoupdate).value = 0;
else
document.getElementById(checkboxtoupdate).value = 1;
}

The "object" accesses a html tag which has an value attribute e.g
value="7400"

However Netscape Navigator 7.1 does not seem to recognise
"document.getElementById(checkboxtoupdate).value"
and reports an error that
document.getElementById(checkboxtoupdate).value has no properties.

But Internet Explorer has no problem with this at all.

Is there another way to do this so as to be recognised by Netscape 7.1?

View 7 Replies View Related

OnClick-problem With Netscape

Jul 23, 2005

I noticed that the following line of code works in IE 6 but not in Netscape
7.1:

<INPUT TYPE="radio" NAME="selComb" VALUE="0"

Nothing happens when I click on the radio button. There is not even an error
message.

This is a simplified version of the actual code, which is used to pass among
other things the value of a selected radio button to a JavaScript-function.
Does anybody know how this code can be made to work in Netscape?

View 5 Replies View Related

Padding Sets To 0 In Netscape 7.1 But Not In IE

Jul 23, 2005

I'm not sure if this is a style sheet issue or a Javascript issue.

I'm trying to work out a new design for my software's control panel.
The idea is that there are images on the left that you click and that
as you do, DIVs with option links appear and disappear on the right.
Because I want each of the DIVS to appear in the same place, I use
Javascript to set their padding and their height to 0px when they are
invisible. This is working the way I wish in Netscape 7.1 but it is
not working the way I want in IE. Can anyone give me a hint about why?

View 7 Replies View Related

Testing On Different Netscape Versions

Jul 23, 2005

If I have to test my code on different Netscape versions, can I download and run those versions on the same computer or will it create conflicts? And if I had to test only one version which one should it be - which one has the most common elements to all the versions?

View 3 Replies View Related

Why This Script Does Not Work With Netscape 7.2?

Jul 23, 2005

I am working on implementing this script to shopping cart.
Basically, it copies fill the shipping address from billing
automatically. I believe one or more syntax is not netscape
compatible. Can anyone point out which one it is and how to make it
both netscape and MS browser compatible?

I hope if I can make the script compatible for those two at extreme, it will probably work with most browser out there. As you would notice, this form also calls
another fundtion already implemented in the shopping cart. But that
function itself works on both browser. Code:

View 5 Replies View Related

'disabled' Property In Netscape

Jul 23, 2005

i am developing an application , we have to run it for Netscape
V4.76(!!) , the problem is it seems that Netscape V4.76 does not
support 'disabled' for form elements for example something like

<INPUT class=f2 type=checkbox value="C" name="chkAttr" DISABLED />

is not working for netscape whereas its working fine for IE.

View 3 Replies View Related

Netscape GetElementById Issue

Jul 23, 2005

I am sure this is a simple issue, but being a beginner I am struggling.
In the following js function I am attempting to make sure no numbers are
within "name" controls. I want to pass the text value of the HTML
control and the control name into the function:

function CheckForNumbers (strString, strField) {
var result = true;
var validNums = "0123456789";
var alertHeader = "The following error(s) occured:";
var alertErr = "";
for (x=0; x < strString.length; x++) {
if (validNums.indexOf(strString.charAt(x)) != -1) {
alertErr += "->This Field Cannot Contain Numbers
";
break;
}
}
if (alertErr) {
result = false;
document.getElementById(strField).focus();
alert (alertHeader + alertErr);
}
return result;
}

I don't know if this is the smartest way to do this, just the way I
thought of. The bottom line is I would like the code to check the value
to see if there is a number, and set focus back to the offending control
for the user to correct the problem. This works without a problem in
Internet Explorer, version 6 (latest Service packs, hot fixes, etc), but
in Netscape, version 7.2, I am getting the following error in the
JavaScript console:

Error: document.getElementById(strField) has no properties
Source File: http://127.0.0.1:8100/TestJscript.jsp
Line: 104

View 3 Replies View Related

Unescape Problem In Netscape 7

Jul 23, 2005

Does anyone know why unescape would throw an error on certain special characters?

I'm trying to unescape the string:

Espa%F1ol

It shou8ld display like this after it is unescaped:

Español

This works fine on IE but not in Netscape 7.

View 6 Replies View Related

Disable Javascript In Netscape 8?

Dec 20, 2005

Does anyone know how to disable javascript in the new Netscape 8 -- for
off line testing (like can be done readily with the current MSIE,
Firefox or Opera browsers) ?

When I try tools -> options -> site controls -> web features and check
or uncheck the 'enable javascript' box, nothing changes -- it stays
enabled.

I've searched FAQs, archives and google about the issue, with no luck.

The odd thing is I swear last summer I managed past the problem
intermittently by clearing the cache, restarting the program, rebooting
the system, or something like that . . . but then got busy with other
things and now I don't recall what I did -- or if I was dreaming.

If no-one else can disable javascript on NN8, then why worry? I don't
know -- to be thorough, I guess. Would a third party security program
'disable javascript' feature be a way to test NN8 under these
circumstances? Or maybe it's the case that the 'disable javascript'
controls in NN8 work only for online content (the reverse of the MSIE
controls). I'll check it out and report back.

View 1 Replies View Related

How Do I Detect Opera/Netscape/IE?

Jan 2, 2007

The « navigator » object contains strings which
specify the browser and version; however, this is in general not
very genuine. Mozilla (and therefore Netscape 6+) allows this to
be freely set, and Opera and IE allow it to be modified. There
are also at least 25 other javascript capable browsers with
their own strings here.

Generally though, you don't need to identify which browser is
being used. There are alternative techniques, but which one you
choose depends on why you want to redirect browsers. If it's to
offer different CSS stylesheets, then....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved