JS Not Working After Switch From Chrome 9 To 10 / Fix It?
Mar 15, 2011
Since the upgrade from chrome 9 to chrome 10 my script is showing an error in my variables when i use boolean expressions.
they changed to version V8, Chrome's JavaScript engine.code...
View 1 Replies
ADVERTISEMENT
Sep 20, 2010
I have a few links on my website as follows: <a href="javascript:switchid('a6');">Link 6</a>but when I view source it comes out like this: <a href='javascript:switchid('>Link 6</a>
View 11 Replies
View Related
Aug 3, 2009
Today I updated my site with an .htaccess file to enable me to use FURLs and after I had change various urls I began testing features one the website to see it they are all working properly. My site has a lot of AJAX so it's important that it works properly, what I think it wrong is that the .htaccess file (which is in the root directory) is affecting the javascript's http functions. I also think what I need to do is make the .htaccess file only affect the root directory, which I do not know how to do.
View 3 Replies
View Related
Sep 17, 2009
I have the code and CSS below working in everything except IE (Firefox, Safari, Chrome). IE (6,7 + 8) all refuse to change the image as it works in FF etc. Its stays static in the "contactArrow" state.
[Code]...
View 1 Replies
View Related
May 10, 2010
I am working on a Javascript application and i am facing a strange behavior of the application in IE. I am creating a table at runtime using DHTML and registering event for the table row click. When i deploy this application on web server and browse the application, the events fires in firefox and chrome but in IE the events are not fired. If i browse the application from the server with localhost, the application triggers the events and fails when i use machine name.
The following is the source code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
[Code]....
View 4 Replies
View Related
Aug 10, 2010
i want to call a javascript function on the click of a div
ie <div id="whatever" onclick="javascript:doThis()">click me</div>
function is something like this:
function doThis(){
alert("ya");
}
It works okay in IE5.2 but not in FF or Chrome..
View 2 Replies
View Related
Aug 29, 2009
I'm really new at JavaScript, but I thought an image map with rollover images would be a relatively basic feat... I have a large map with hotspots over individual states. I want the user to hover over a hotspot and for the main image to change, displaying information for that particular state. I've tried code that other developers have sworn works in all browsers, but still can't get the same functionality in FF or Chrome as I do in IE.
<SCRIPT language="javascript" type="text/javascript">
function swapImage(image) {
var Map = (document.getElementById) ? document.getElementById('MapWest') : (document.images) ?
[code]....
View 4 Replies
View Related
Jun 13, 2011
I've just downloaded cluetip 1.1.3. After opening index.html in the demos folder with Chrome 12.0.742, I've noticed that when the ajax tooltips popup they don't contain any content. The other tooltips (title and local tooltips) work fine. I've tried opening the demos in IE8 and all the tooltips are displayed fine. Strangely, when I try the demos on the official page [URL] using Chrome everything works fine.
View 1 Replies
View Related
Jun 10, 2010
I have the following code:
scrollhandleEl.hover(
function () {
isMouseOver = true;
[code]....
View 1 Replies
View Related
Jul 19, 2011
I just discovered Jquery just yesterday... I was looking for another way to display a website menu (simple HTML with javascript code) instead of an iframe. I found an amazing solution using Jquery on a Yahoo! answer page.
I have no idea what's wrong because the "external HTML file" simply do not appear in Chrome 12... Nothing!
I'm sure this is not a HTML coding error issue because my code complies HTML 5 (I used the W3C Markup Validation Service ) AND everything(display and behavior)works extremely fine on Explorer 9, Safari 5 and Firefox 4.
My "main HTML file" only contains a fixed background image... and will be the template for all page of my site for specific content.
My"external HTML file" (the site's menu) only contains a 3 rows table (for positionning) and an unordonned link list with onmouseover and onmouseout javascript calls.
The javascript code is stored in an external .js file.
The css code is stored in an external .css file.
I use thecurrent minified version ofJquery.
All these files are in the same local folder.
Here is the code I use to call the "external HTML file" (I removed the unnecessary things from the Yahoo solution) :
By the way, is the ending ); useful ?
I do not understand the "current - 1 version" showed on yourcompatibility pagefor Chrome.
Does it mean current "minus" one version ?
I could perform a javascript browser detection and if the browser is Chrome... Show an Iframe.
View 1 Replies
View Related
Apr 25, 2011
the following line of code is NOT working in chrome/safari as it is supposed 2its working perfectly in firefox and Operaowever:$('#box8').delay(1100).animate({"left": "+=300px"}, 5000);in firefox/opera the div box slides from its place to the right 300pxbut in chrome/safari it suddenly jumps to the right and then slides to the left 300px leaving it half through the page!
View 2 Replies
View Related
Oct 11, 2011
I have written the below script to swap images in a main viewer for a gallery on a website (I apologise if the script is not very elegant I have only just started learning JS).The idea is there are 2 divs one positioned on top of the other, when the user clicks on one of the thumbnail images the div on the bottom changes to the new image, then the top div fades to transparent to reveal the new image, then once the top div is completely transparent it's image is swapped for the new image and it is made opaque again.Anyway elegant or not the script works fine in Firefox, Safari, Camino and (shockingly) IE, but it doesn't work at all in Chrome.
Code:
var fadeTime = 800;
var newImage;
var images = new Array();[code]....
View 4 Replies
View Related
Jan 21, 2011
I have the following code that should hide the dropdown part of a select box when clicked (don't ask why, this is part of a separate project). see a simple example below:
<script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.js"></script>
<select name="select1" id="select1" onfocus="$(this).blur();">
<option value=""></option>
[Code]....
This all works fine in IE and FF but in chrome the options are still shown after clicking the element. I've been racking my brains for hours on this and, no matter what method I use, I can't get this to work correctly in Chrome.
View 2 Replies
View Related
Jul 15, 2010
I am calling javascript from java and calling a function, and that function on an image I am calling onmouse over. So now the problem is, I have two jsp, secord inside first. When I click first jsp where is onmouseover, it's working fine and after that i am doing operation in second jsp and coming back on first jsp's image so onmouseover should be display but it's not working in chrome.
View 1 Replies
View Related
Apr 27, 2011
I have two Javascript functions to set and retrieve a cookie:
function setCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
} else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function getCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
I can set and retrieve the cookie in Internet Explorer 9. The problem is that with Chrome, I don't know if it is not setting the cookie or not retrieving it right but I always get a NULL instead of the cookie value.
View 2 Replies
View Related
Aug 17, 2011
I am doing a simple example of autocomplete textbox.Well whenever I am typing anything in the textbox it shows me the existing options as we know the default functionality of autocomplete textbox. Now I need that when I select one of the options from the autocomplete list droping below the textbox the blur function should execute so that the focus should get away from the textbox. I have tried document.getElementById('text1').blur() but it is not working in chrome and safari.
View 2 Replies
View Related
Apr 17, 2010
I've written a google maps app for work and have got it all running nicely...in chrome. I've only just noticed that for some reason it's not working in firefox or internet explorer. I was wondering if someone could take a look at the simple extract that I've made and show me where I'm going wrong (If I am):
Javascript:
Code:
function initialize() {
if (GBrowserIsCompatible()) {
//Create a div called map_canvas in the html where the map will be displayed
var map = new GMap2(document.getElementById("map_canvas"));
//Set the map to center on these coordinates
map.setCenter(new GLatLng(55.872759,-4.297972), 15);
[Code]..
View 12 Replies
View Related
Jul 13, 2010
On the right side, under the portrait of the two girls, you will see a list of four links next to some dates. onMouseOver, the photograph of the girls should change. This works fine in IE, Firefox, Safari and Opera. In Chrome, however, it seems (using Chrome Developer Tools) that Chrome load the images each time, instead of preloading, and displaying the cached image each time i onMouseOver.
View 1 Replies
View Related
Jun 29, 2011
My trim() function seems to halt JavaScript execution in Chrome.
Code:
function trim(s) {
s = s.replace(/(^s*)|(s*$)/gi,"");
s = s.replace(/[ ]{2,}/gi," ");
[code]...
It works in IE and firefox.. no it doesn't.
View 2 Replies
View Related
Dec 11, 2010
[URL]
Click thumbnails. Big image is vanishing when mouse out in Google Chrome. Can you write a JavaScript file for this?
View 1 Replies
View Related
May 24, 2010
I'm really having trouble to put it to work in Chrome. It runs great in IE and Firefox.
Here is the code:
The return of get_xml_oid.php is in XML.
Chrome Error: Uncaught TypeError: Object #<a Document> has no method 'search'
View 2 Replies
View Related
Oct 11, 2010
I was under the impression that jquery is cross browser. For some reason in chrome when I click my button, nothing happens. this works in FF and IE though[yes, this code is extremely ugly and not proficient, but it works in IE/FF. I just started learning jquery,
$(document).ready(function() {
$('.extra_btn').click(function() {
$('.extra_btn').fadeOut('fast');
[code]....
View 8 Replies
View Related
Sep 15, 2010
Why is jQuery only working in Safari (mac) and not for Firefox or Chrome?
[URL]
View 13 Replies
View Related
Jun 28, 2010
i am working on a web project using jquery for many purposes like tooltip, action events on the page etc. So far I was using firefox as I had that browser only. today, i installed google chrome to see how the project looks in another browser. but I found a strange problem, all the java scripts which where working in firefox are not working now. i am unable to guess the reason, i have enabled javascrpt in the settings but still nothing seems to work.
View 3 Replies
View Related
May 31, 2010
I am new to jQuery and would be glad if someone help me out with this. I want to insert content from external html files based on links clicked. I am using the following code
[Code]...
It works great with all the browsers except for chrome. In Chrome, the ajax-loader image displays.Then it disappears which means that the setTimeOut function has been implemented. But then it displays nothing. So I don't know whether the browser has even entered the 'go' function or not.
View 3 Replies
View Related
Jun 23, 2011
I am using a tiny script that is meant to expand and collapse paragraphs with the click of a "more../less.."link. The page I am writing is working as intended in IE8 so far, however the Javascript functions are not working in FF 3.6 or Chrome. When clicking on the "More../Less" in FF or Chrome, nothing happens.Here is the JS [code]...
View 3 Replies
View Related