JS Works In IE9 But Not In IE8 - Chrome / Resolve This?
Aug 24, 2011
I am trying to do a setInterval to switch the background-image of a div. The switch will happen every second.
Here is the html code...
On firefox 6 and IE9, it switches just fine. On IE8 and Chrome it switches once and then stops.
Not sure why it is working in the newer browsers and not the older ones. I know there were some new javascript features added to the newer browsers, but i cant figure out where the error is occurring.
View 3 Replies
ADVERTISEMENT
Feb 27, 2011
I have a small script that tries to open a child window. if successful, it then closes the child window and redirects the parent window. If this process fails, there is no child window, no redirection.
the script below works fine in FireFox but in Chrome, if the process fails, the redirection still happens. code...
View 4 Replies
View Related
Sep 28, 2009
I am using googles O3D software and it uses a javascript base, one of there plugins works in Firefox only and not Internet Explorer why it isnt working in IE and even how to fix it, here is the page that works in firefox but not IE
View 7 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 2 Replies
View Related
May 22, 2011
I have a joomla site, for which I have created a calendar, it is built with javascript and php, there is also an ajax request to update the calendar.
The calendar works fine in the main page, but when I go to any other link the calendar stops working.
View 2 Replies
View Related
Mar 19, 2010
I'm having trouble with my XML news feed being displayed in IE. The JS calls the XML, and displays the relevent data on the homepage. This works beautifully in firefox, but fails completely in IE, what am I doing wrong?
The Code for the script follows, and is contained within the <head> of the the HTML;[code]...
In FF, the XML is read, and the corresponding data is entered automatically into the HTML document. Everything works perfectly. In IE, nothing seems to happen, no text is displayed and the image is just the broken link icon.
I assume I need to modify my ELSE statement somehow, but have no idea what to do! Unfortunately I cannot provide a link to the webpage, it has not been uploaded as it doesn't work yet.
View 2 Replies
View Related
Nov 15, 2011
I am very new to javascript so I'm sorry if this is a stupid question. I made this page by pecing scripts together that I found online. I don't even know if this is the best way to get my desired results. I want the background to fill up the entire window, as well as the text and link to remain on the bottom in their respective corners and also re-size with the window. The code doesn't work the first time the page is loaded, but it works fine after it is refreshed. Do y'all have any suggestions on how to fix this.
View 1 Replies
View Related
May 13, 2010
I have a script a co-worker wrote and it works in FF and Chrome but IE will not work. Get's a 'activeTab' is null or not an object error, I checked for commas and fixed a semi-colon that was missing in two spots but not change in IE.
code below:
<table class="tan-header rounded-box" style="padding:0px;border:0px;width:560px" cellspacing=0 cellpadding=0>
<tr class="headerrow">
<td class="main">
[Code]....
View 6 Replies
View Related
Jul 1, 2010
Objective is to read from ticker.xml, parse, and set the html of headline1, headline2, headline3, etc. divs to the values of ticker.xml. This works great in IE 8 and FF but not in Chrome.
<script type="text/javascript">
$(document).ready(function()
{
$.ajax({
[Code]...
View 1 Replies
View Related
Mar 19, 2009
The following script works perfectly under FF and even IE, but doesn't do anything under ChromeIt's a simple chronometer (I'm a beginner) to calculate gold gained, at the rate of 7 per second.In the HEAD section
<script language="JavaScript">
<!--
var startTime = 0;
[code]....
View 4 Replies
View Related
Jun 21, 2010
I'm just starting JavaScript and wrote a quick script for Next/Back buttons for a page showing a family outing on our boat. I proudly uploaded the webpage and emailed it out, but people running IE are unable to use the buttons, they simply do nothing.Here is the .js file, I don't think anything in the HTML or CSS is causing the issue but could post those as well if necessary.
var step = 1;
//preload images
var numImages = 13;
[code]....
View 2 Replies
View Related
Jun 30, 2011
i got this javascript function which run perfectly in IE but does not work in Mozilla.
function Changed() {
var theGridView = document.getElementById('MainContent_GridViewRDR1_Hidden');
var sum = 0;
var total = 0;
[Code]....
View 3 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
Jul 5, 2010
I'm using this code:
javascript:
Code:
function showImg(img, width, height) {
gal = document.getElementById("galpic");
newl = Math.round((window.innerWidth - width) / 2);
[Code]....
View 2 Replies
View Related
Feb 18, 2010
My Javascript navigation bar works perfectly in IE and google Crome, but not in Firefox.
<HTML>
<HEAD>
<SCRIPT type="text/javascript">
function formHandler(strForm, strElement){
var URL =
[Code]...
View 2 Replies
View Related
Aug 28, 2011
I have an issue with the append function. It works on chrome and firefox but not ie.This is my code:
$('a#ajouterTarification').click(function() {
$("#append_tarification").append($("<div>").load("./server/hotels-ajouter-tarifications.php?i="+i).fadeIn(700));
[code]....
View 3 Replies
View Related
Mar 21, 2011
I love the custom datepicker. It works and does not inhibit Spry in Firefox(3.6) and Chrome(10). However, it is notworking in IE (9,8.7), Safari (5) or Opera(11) with Spry Validate also inoperative - unless I remove the scripts calling the datepicker...then validate works, but the datepicker does not, of course. I do not use Spry Validate on date/datepicker field.This is way over my thick head.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
[code]....
View 9 Replies
View Related
Apr 27, 2010
I've been trying to load some tags using .load. I was testing with Chrome and never got any results back - I just tried the same code with Firefox and it works - where's the problem ? Am I doing something "almost" correct, that firefox allows and chrome doesn't? I cannot see any errors in the console either
Here's the line:
$("#somediv").load("somepage.html #someotherdiv");
View 2 Replies
View Related
Aug 27, 2011
<input type="hidden" id="rthread" value="1734">
<input type="hidden" id="disc" value="1">
<input type="hidden" id="numOfPages" value="2">
<input type="hidden" id="perPage" value="15">
<textarea id="rbody" rows="10" cols="70" placeholder="Your spin on things">
View 1 Replies
View Related
Dec 24, 2009
I've placed this on pages where a ^ top of page link at the bottom is present which animates a scroll back to the top of page, however it only seems to work in IE...
Code:
<script language="JavaScript" type="text/javascript" src="_include/_scripts/jquery.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^//,'') == this.pathname.replace(/^//,'')
&& location.hostname == this.hostname) {
[Code]...
View 1 Replies
View Related
Apr 27, 2011
The following script grabs a string (*.abc.org, e.g. from &sid=xyz.abc.org) from the current URL and changes it (to ABC:abc.org). Everything works perfectly in IE, but Firefox and Chrome appear to get themselves into an endless loop. When I check the URL, xyz.abc.org has successfully been changed to ABC:abc.org, but the page just seems to keep refreshing over and over.
var tomatch = /abc.org/i;
var usrString = document.referrer;
var is_a_match = tomatch.test(usrString);
var newString = document.URL.replace(/[a-z]*.abc.org/, "ABC:abc.org"); if (is_a_match) {
window.location.replace(newString);
}
View 5 Replies
View Related
Jun 2, 2011
why the following works in IE but not the other browsers?
It's the "Select category..." jump menu at this URL: www.savasbeatie.com/books.htm
<TD>
<form name="whichCat" style="margin-bottom:0" method="get">
<select name="catChoice" onChange="sendValue(this);">
<option class="news4" value="javascript:location.reload(true)" selected>Select Category...</option>
[Code]....
I think it has something to do with the ID of the frame, (from Googling the error and reading some other posts,) but can't figure out where to put the tag.
View 2 Replies
View Related
Jan 27, 2011
I've written some Javascript to do a few small things on a page, and was excited that it actually worked, even in IE! until I tested in Safari-for-Windows and Chrome on Windows and Linux. I'm going to assume Safari on a Mac also won't run then.
I have a page with some forms. I need to grab the ones with an id starting with "formMaat" (may have a number after it), hide the submit button, and add an onchange event to the lone dropdown select in the form.
Safari and Chrome are removing the submit fine, so they are finding the forms ok.
The onchange event is just supposed to submit the form... I had to imitate the behaviour of the old site but make it accessible to those without JS.
I ended up using a closure to get the "form" passed to the select element because otherwise "form" was unknown... and I can't tell if that's maybe what's tripping up Saffy-Chrome or not. I set a breakpoint in Chrome's developer thingie but I can't figure out how to see the script run when I click on the select.
One of the pages currently: [URL]
The forms in question are on the right/main part of the page, where it says "maat:".
Code:
<form action="http://ishtml5readyyet.com/" method="get" id="formMaat">
<fieldset>
<legend><span>Kies een maat en krijg de juiste prijs en voorraadstatus</span></legend>
[Code]....
Do I really need that closure? When I didn't have it, optie.form.submit() or this.form.submit() did not run and I thought it should have, since "optie" was known... I thought ".form" would have just looked for that element's form anyway, but it didn't. *edit tried a simpler way, but still no love from Saffy-Chrome.
I know I don't need to really separate that function over to outside init, except who knows if later more events will need to trigger more weird stuff... so I'm trying to write safely.
I thought Safari and Chrome now have different Javascript engines?
View 3 Replies
View Related
Mar 3, 2011
[Code],,,,
It freezes in Internet Explorer; but works fine in Chrome.
View 49 Replies
View Related
Jul 28, 2009
I created a drop down menu (i think i followed a tutorial but it was so long ago i can't remember) which works 100% perfectly in firefox and internet explorer but not opera, safari and chrome. I really want to get it working in all of them though.The Jquery Code:
var $j= jQuery.noConflict();
$j(document).ready(function(){
$j(".message_body").hide();
[code]....
View 1 Replies
View Related
Aug 30, 2011
This succeeds in Chrome and Firefox but fails in IE8
$.get('/2/mpeg4.jpg')
.error(function(jqXHR, textStatus, errorThrown) { alert(textStatus); alert(errorThrown);})
.success(function(data, textStatus, jqXHR) { alert(textStatus); alert(jqXHR.responseText);});
[Code].....
View 4 Replies
View Related