Script Works In Firefox/Netscape , Not In IE
Jan 11, 2005
I have a script which works just fine on Mozilla Firefox 1.0 and Netscape Navigator 7.2, but it doesn't work so well on IE 6.0...
Allow me to explain what the script is all about. A select element ("selTable") in a form ("myForm") is populated by values of table names in a database (this is done using PHP). The values are like this: k1, k2, k3, etc.
When a user clicks on a button ("btnQuery"), the values in the table are copied into a text box ("txtQueryStr")with the words "SELECT * FROM" appended to the front (e.g. when button is clicked, the text box (initially empty) will show "SELECT * FROM k1, k2, k3" Code:
View 4 Replies
ADVERTISEMENT
Feb 25, 2005
I have a calculator that works perfectly fine on IE with four js functions all working. I created it on FrontPage. But on Firefox or Netscape nothing happens when I hit the Calculate button (which calls doMath() and verify() onclick). I can't figure out what to look for and where to look.
I know it's not the browser cause I have a very very simple calculator that works on both IE and Firefox. There must be some wrong code or missing code that I just can't find.
View 6 Replies
View Related
Jul 14, 2006
I've got a fair amount of Javascript coding that works great in IE and
Opera, but is completely ignore in Firefox and Netscape. See:
View 3 Replies
View Related
Apr 14, 2003
What I have is a back page button as follows:
<input type="Button" name="Back" value="Back Page"
onClick="this.page=document.forms['chapage'].elements['pge'];
this.chapt=document.forms['chapage'].elements['chp'];
this.pgid='Pg'+eval(this.page.value);
this.page.loc='document.there.'+this.pgid;
this.page.locC=this.page.loc+'.valueC'
this.page.locD=this.page.loc+'.valueD'
this.newchapt=eval(this.page.locC);
this.newpage=eval(this.page.locD);
there.location.href=this.newchapt+'.html#Pg'+this.newpage;">
The frame name is "there", also, there are attributes that are taken out of an anchor on the page (valueC and valueD). it seems to fall apart because Netscape doesn't evaluate the "this.page.locC", which is in the "there" iframe How do I pull attributes from out of a frame?
View 10 Replies
View Related
Jul 23, 2005
I have a page with two frames, 'header' and 'main'. The following
code works in Netscape, but in Internet Explorer. The second bgColor
line produces an error:
function test(){
top.frames.header.document.bgColor='white' //works fine
top.frames.main.document.bgColor='white' //fails
}
View 1 Replies
View Related
Aug 17, 2005
I have an application that draws a selection rectangle over a map
image. I can get it to work fine in IE and Opera, but not
Firefox/Netscape.
I've thrown the following small example together to illustrate the
problem - the problem being that FF/NE initially draw my rectangle
before the icon changes immediately to the black no-entry icon. Then,
when I let go of the mouse, the rectangle continues drawing, but it
doesn't stop as the mouseup has already fired of course.
IE was doing the same, but I found the ondragstart/cancelDragDrop
solution to that. I can't find what appears to be a similar solution
for FF/NE.....
View 2 Replies
View Related
Nov 26, 2005
I have tried several things, using several Javascript books, but can't get
this to work in Netscape (latest version) and Firefox (latest v.). It works
in MIE and Opera fine. A box (defined by a css layer) is supposed to pop
out to the right when the corresponding box on the far left is moused over.
The first function defines a layer id to the next function which pops out
the box. After debugging in Venkman, it looks like the first function
cannot define the layer id properly to the second function, which actually
slides the box (layer) to the right.
I thought that the getElementById function was supposed to work for Firefox,
but I must be using it wrong(???)
To see how it's supposed to work, view the following page in MIE or Opera:
View 4 Replies
View Related
May 8, 2006
I am try to detect the mouse pointer by
var event = window.event;
var x = event.pageX;
var y = event.pageY;
This is working fine in IE, but in
Netscape/Firefox where event return undefined.
Can someone tel me how to detect mouse pointer
in Netscape/Firefox?
View 6 Replies
View Related
Apr 18, 2011
Whats wrong with this script. It works in IE, but not in Firefox. I get no error codes it just simply does not display the text in Firefox.
Code:
View 2 Replies
View Related
Oct 1, 2005
I use the code below to show the year on my sites e.g. this page.
However, instead of 2005 it shows 105 in Firefox.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var year=time.getYear();
document.write("" + year + "");
// End -->
</SCRIPT>
Works fine in Internet Explorer.
How can I show the correct year in Firefox as well please?
View 3 Replies
View Related
Feb 4, 2006
I am using the double combo script (see below) on my site so people can selet reports that open in a new window with no toolbars.
To date the script has been working flawlessly but today I've noticed the "Go" button has 'gone' when viewed in Netscape or Firefox.
I've gone over the script many times trying to work out what's wrong but can't see anything. Can someone please have a look at the script (with a fresh perspective) and tell me what's wrong :confused: :confused: :confused: ?
Also is it possible to add a blank line between "2006 Deferred Matches" and "2005 Tournament Standings" ? Code:
View 5 Replies
View Related
Jul 23, 2005
I'm trying to set the align property/attribute of an IFrame to center
but its not working (see below). Can anyone please tell me what's going
on, and if there's a work around for this?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>test</title>
</head>
<body>
<iframe src="sampleContent.htm" width="620" height="500"
align="center"></iframe>
</body>
</html>
View 2 Replies
View Related
Apr 7, 2009
I have encountered an issue with Javascript and my novice skill set has not allowed me to find a solution. On a page I have several images, when the user clicks on an image I pass some info about that image to my display html page. In the display page I want to display two images so I append Zoom.jpg and Medium.jpg to the string I passed. FireFox displays both images but IE does not seem to know what to do with it.
View 10 Replies
View Related
Nov 20, 2004
well as the title indicates I have a little bit of javascript code that works perfectly in IE but not at All in FireFox. the code checks the length of text in a textarea. the code for the textarea: Code:
View 1 Replies
View Related
Jan 19, 2010
I have the following javascript code, which works as expected on firefox, but not on ie8 (haven't tested other versions)code...
View 2 Replies
View Related
Jan 14, 2009
for some reason this works fine in firefox but not in IE6.here is my javascript tags:
Code:
<SCRIPT language='JavaScript'>
function callNext()
{[code].....
I have also been told that ondblclick isn't a valid option tag event but how can this be if it works in firefox?
View 2 Replies
View Related
Aug 7, 2011
I'm writing a SOAP type application that only works over ssl. Authentication works with Firefox but fails when I use a different browser. For some reason, chrome, opera, IE all omit the POST information and I don't understand why. Below is the requests sent to the server from Firefox and Opera. Following that is the javascript that sends the password. My js skills are pretty weak to say the least. Is "document" cross compatible or different for all browsers?
------------------Recieved-------------------
POST /authme.cgi HTTP/1.1
Host: localhost:6060
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Code].....
View 1 Replies
View Related
Jan 21, 2009
I made a scale animation that works on IE 7 but it does not work on Firefox 3.
The button toggles between scaling up and down.
In Firefox , it shows a weird behavior: it starts the loop for scaling up but it is quickly interrupted and return to its original scale.
What should I change in the below code to make it also functional on Firefox 3 ?[code]...
View 5 Replies
View Related
Jun 30, 2009
This program (the search function) works well with IE8 but it is a mess with Firefox. My knowledge of Javascript is very limited:o. I have been unable to find what is wrong.
View 7 Replies
View Related
Jul 3, 2009
I have created a very simple JavaScript code to display larger images of a thumbnail image on the main section of a website. It works fine in FF3 however in IE 7 is giving me an error code of Invalid argument on line 6 character 1. The funny thing is I have used this exact code in another site and it worked fine with IE 7.
View 2 Replies
View Related
Jan 22, 2011
Works in Firefox, chrome, even my phone, but not IE
<a onmouseover="document.getElementById('statusbox').innerHTML='<table width=100%><tr><th colspan=3>Carrot statuses</th></tr><tr><th>Status</th><th>Magnitude</th><th>Duration</th></tr><tr class=alt><td>DamageResistDebuff</td><td>5</td><td>2</td></tr><tr class=alt><td>DamageResistDebuff</td><td>5</td>
[code]....
View 3 Replies
View Related
Sep 21, 2009
I written a code to create a image viewer using javascript. But the script only works in IE but not in firefox.[code]...
View 9 Replies
View Related
Aug 15, 2010
with the equivalent code of this in firefox?
<html>
<head>
<title>Event Handling</title>
<script type="text/javascript">
<!--
//MOUSE COORDINATES
function updateMouseCoordinates(){
[Code]...
View 3 Replies
View Related
Mar 5, 2009
I have the following javascript code...
This code functions in IE, but not in Firefox.
View 2 Replies
View Related
Apr 15, 2009
I have the following code which works in IE but not in firefox.
<div id="map1" class="highslide">
<map name="photoMap1" id="photoMap1">
[code]...
I am getting the following error in firefox and nothing happens when I click on the image map.
The "coords" attribute of <area shape="rect"> tag is not in the "left,top,right,bottom" format. As you can see above, I am using shape="poly" and not shape="rect".
View 2 Replies
View Related
Nov 18, 2010
I have used the following to create zoom button which work fine within Chrome but not Firefox.
HTML Code:
<input type="button" value="A" ONCLICK="zoomin();" class="zoombutton" >
<input type="button" value="a" ONCLICK="zoomout();" class="zoombutton" >
[code]....
View 2 Replies
View Related