Script No Longer Working In New Version Of Firefox

Oct 28, 2009

Why this script no longer works in firefox? It works in the older version but since it got updated to version 3.5.3 it doesnt work anymore. It works fine in IE.

<script type="text/javascript">
function show_popup(s_file, msg, msg2, msg3, w, h) {
var p=window.createPopup()
var pbody=p.document.body
pbody.style.backgroundColor="white"
pbody.style.border="solid white 6px"
pbody.innerHTML="<table cellpadding=0 bgcolor=white style='border:0px solid #777777'><tr><td colspan='3'><img src='images/"+s_file+"'></td></tr><tr><td align=left><font face='times' color='black' size='1'><i>"+msg+"</i></font></td><td align=left><font face='times' color='black' size='1'><i>"+msg2+"</i></font></td><td align=left><font face='times' size='1' color='black'><i>"+msg3+"</i></font></td></tr></table>"
p.show(15,15,w,h+40,document.body)
}
</script>

This is then what I add for each of the images ->>
<a href="javascript:show_popup(image.jpg','Image Example ','acrylic on masonite','62 X 48 inches',430,564)"><img src="images/thumbs/image_thumb.jpg" alt="Images" width="100" height="128" border="0" align="center" valign="TOP" /></a>

View 6 Replies


ADVERTISEMENT

CssRules No Longer Works In FireFox 1.5

Jan 22, 2006

I have a WYSIWYG editor based on the HTMLArea project that uses the
cssRules object of a stylesheet to add/update stylesheet rules for
table cells. Ever since I upgraded to FireFox 1.5, I get the following
error message when trying to access the cssRules object:

"Access to restricted URI denied"

The code I am trying to execute looks like this:

var currStyleSheet = editor._doc.styleSheets[0];
var currRules = currStyleSheet.cssRules;
var tdIndex = currRules.length;
for(i = 0; i < currRules.length; i++) {
if(currStyleSheet.cssRules.item(i).type == 1) {
//if it is a style rule
var currRule = currRules.item(i)
if (currRule.selectorText.toLowerCase() == "td") {
tdIndex = i;
}
}

}

This code is simply looking for any rules for TD elements. I am at a
loss as to what is going on and/or what changed if FireFox to cause
this error. It worked fine in previous releases of FireFox. The
document that I am trying to access the stylesheet for is within an
IFRAME, which is what I believe is causing the problem.

View 19 Replies View Related

JQuery :: GetJSON In Firefox Takes Longer Than In Other Browses?

Sep 16, 2009

jQuery using getJSON calls specific handler, lets say MyHandler.ashx $.getJSON(/MyHandler.ashx?param1=someVal, function(data) {
some code;
}

In Opera and Explorer this is executed immediately. In FireFox it takes over 1s before request is executed. Even when I set breakpoint in my handler it will be hit after 1s... could you tell me why it is so slow? I got latest version of firefox.

View 1 Replies View Related

Two Javas - One Page - One In The Red Is No Longer Working After Adding The 2nd One

Jan 15, 2010

What do I need to do with this?

Code:
1st:
<script type="text/javascript" src="includes/js/jquery.js"></script>
<script type="text/javascript" src="includes/js/jquery.lightbox-0.5.js"></script>
<script type="text/javascript" src="includes/js/jquery.hoverIntent.minified.js"></script>
<script type="text/javascript" src="includes/js/jquery.tooltip.js"></script>
[Code]....

The one in the red is no longer working after adding the 2nd one.

View 5 Replies View Related

Script Does Not Work With Firefox Latest Version

Feb 9, 2011

"Javascript does not work with Firefox". Below a very very simple html with Javascript. Using MS IE v8 I have found that the code works very well. Filling nothings in the textfield "your name" and subsequently clicking on the button and a window will popup with the text "Sorry, you forget to: ...". However, using Firefox instead...it does not work. A bit remarkable; the Javascript is very easy! Could you please check what went wrong? I have activated Javascript in the Firefox browser and the security is ok for Javascript.

[CODE]
<html>
<head>
<meta http-equiv="Content-Language" content="nl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Inloggen van een nieuw lid</title>
<script language = "Javascript">
function checkDate() {
var message = "Sorry, you forget to: ";
var voornaam = document.getElementById("voornaam");
var result = true;

if (voornaam.value.length == 0) {
message+="- You have not typed your name ";
result = false;}
if(!result) {alert(message)};
return result; }
</script> </head> <body>

View 3 Replies View Related

Ajax :: Firefox 4.0 Version - Adding Dynamic Scripts

May 15, 2011

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]">
<html xmlns="[URL]">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>

<script type="text/javascript">
(function() {
var s = [
"js/common.js",
"js/function.js",
"js/ajax.js",
"js/initial.js"
];

for(var i=0, l=s.length; i<l; ++i) {
var sc = "script", tp = "text/javascript";
if(window.navigator.userAgent.indexOf("MSIE")!==-1 || window.navigator.userAgent.indexOf("WebKit")!==-1) {
document.writeln("<" + sc + " type="" + tp + "" src="" + s[i] + ""></" + sc + ">");
} else {
var t=document.createElement(sc), sa = "setAttribute";
t[sa]("src", s[i]);
t[sa]("type", tp);
document.getElementsByTagName("head")[0].appendChild(t);
}
}
})();
</script>
<link href="css/common.css" rel="stylesheet" type="text/css">
</head>
<body>

//Here is my html code
<script type="text/javascript">
makeAjax('data.php');
</script>
</body>
</html>

Error is makeAjax is not a function (this issue occurs only Firefox 4.0 browser). This script Last two years working fine (no issues) in firefox but newly occur this error (FF4.0).

View 3 Replies View Related

Code Doesn't Seem To Work In Chrome Or The New Version Of Firefox?

Apr 26, 2011

I'm developing a relatively simple html based site for a gallery. Small images of paintings link to a popup window with a larger image of the painting. The problem is that the javascript code doesn't seem to work in Chrome or the new version of Firefox (where it only opens a new blank tab), though it works perfectly in Safari. This is my code (for vertical images):

var viewerWin=0;
function windowPopVer(URLStr)
{
if(viewerWin)
{

What am I doing wrong? We've changed the settings in Chrome and Firefox so that it enables javascript and all that. Why won't this work?

View 9 Replies View Related

JQuery :: 1.2.6 Was Working Version 1.4.2 Not Working?

Mar 24, 2010

I was using JQuery 1.2.6 but after I downloaded the version 1.4.2 I get the following error on FireFox: uncaught exception: Syntax error, unrecognized expression: .

View 1 Replies View Related

Jquery :: Conflict - Prettyphoto Popup - Works Fine In Firefox And Safari But Not In Any Version Of IE

Aug 7, 2009

The following code is needed for the prettyphoto javascript popup. It works fine in Firefox and Safari, but not in any version of IE.

<script>
jQuery.noConflict();
$(document).ready(function(){
jQuery("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>

View 1 Replies View Related

JQuery :: Animate Function Is Not Working In 1.2.6.min.js Version

Mar 8, 2011

I am using Jquery 1.2.6 version with existing website. I want to animate something on mouse over and for it I used animate function for it but I not able to get expected result.

$(document).ready(function() {
$(".small-packagebuilder").css({"background-position": "5px 0"});
$(".builder_top_magenta span a").hover(function() {

[Code].....

View 2 Replies View Related

JQuery :: Superfish Not Working With Wordpress Version 1.3.2

Oct 14, 2009

I have used your great plugin for a menu in Wordpress 2.8.4 and I wanted to use the default Wordpress jQuery library jquery.js?ver=1.3.2 but your plugin Superfish wouldn't work. I added the jquery-1.2.6.min.js file and it did work OK. Since there is no reason to have calls to two jQuery libraries which are doing the same thing I wanted to only use the default Wordpress jQuery version. After some searching I found an answer at this site:[url]..

I changed this to: jQuery(document).ready(function($){ Notice the $ function being moved. This now works OK using the default Wordpress jQuery version 1.3.2. and I imagine with the latest version of jQuery.

View 1 Replies View Related

JQuery :: Code Not Working With Newer Version

Jul 16, 2009

I am quite happy to stay put using v 1.2.6 but with new bits requiring v 1.3.2 etc I would quite like to know why this isn't working when I use jQuery above 1.2.6. There are a few different things going on.

Code JavaScript:
<script type="text/javascript">
$(document).ready(function() {[code].....

View 3 Replies View Related

JQuery :: Cascade Stops Working On Latestes Version?

Jan 8, 2012

I'm trying to use the cascade function from the below link. If I try it as it is there, it works, but if I change the jquery reference to the one I'm using (1.7.1) it stops working... is there a diferent way to use that ajax call or am I missing anything?

View 3 Replies View Related

JQuery :: Update From Version 1.7.2 To Version 1.8?

Mar 27, 2010

I have problems updating from version 1.7.2. to version 1.8. I'm using a custom theme - can anybody give me a step-by-step guide how to update without destroying the whole site ? :) I would like to have the button featueres in the new version

View 1 Replies View Related

XmlHttp.responseText Is Not Working In IE, Working Fine In Firefox And Google?

Mar 3, 2009

All Code Working fine in Firefox and Google Chrome, But in IE nothing happened Ajax Function IN MAIN PAGE

<script language="javascript">
var xmlHttp
function showBabyId(str)
{
xmlHttp=GetXmlHttpObject();

[Code]...

View 4 Replies View Related

Open Window Not Working Properly In Firefox But Is Working In IE

Feb 6, 2009

The Open Window in Javascript is not working properly in Firefox but is working in IE. What could the reason be?

[Code]...

View 1 Replies View Related

DHTML Events Not Working In IE But Working In Firefox And Chrome?

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

JQuery :: Downloading - Click To Download The Latest Version - Or Any Version - It Doesn't "download" Anything

Dec 21, 2010

I am trying to get started using JQuery, but I find I can't even get to lesson #1. When I go to jquery.com and click to download the latest version (or any version) it doesn't "download" anything. It opens the file as a webpage in my browser and I see all the JQuery in one big string. Why won't the file just download? Is it the browser I am using? Is it my Mac?

View 2 Replies View Related

Longer Cookies

Sep 12, 2004

I really like this script http://dynamicdrive.com/dynamicindex1/navigate2.htm

however, I can't seem to find a script that uses cookies for a long period of time, instead of just for browser sessions.

Is there any way someone could help me on this and make the script use longer cookies for so many days.

View 1 Replies View Related

How To Express Progress Of Longer Run Of JS?

Jul 23, 2005

I check data validity in html form by JS. Something like

for (i=0; i<document.form[0].elements.length; i++) {
chechkValidity(i);
}

Unfortunately, the form[0] has about two thousands elements (it is
statistical questioning form for companies) and execution of this one
cycle takes about twenty seconds.

The problem is, that during these 20 seconds the browser "freezes":
The button activating the cycle disappears and the mouse pointer
doesn't change into "watch" (sandglass) showing that something is
being carried out.

Although after the 20s everything is ok, it is not the nicest behavior
of the form. I don't assume somebody is so impatient to restart during
those 20 seconds. I just want to minimize the users' swearing on my
address and tha's why my question:

How to show the progress of that cursed for-cycle?

View 13 Replies View Related

JQuery :: Working With FireFox But Not Working With IE

Nov 28, 2010

I have are created dynamically buttonset toggle radio button with following code. All is working okay but just I have added onclick function which is doing window.location which is working with FireFox but not working with IE and google chrome.

<script type="text/javascript">
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
$(function () {
$('#btnSet').buttonstrip();

[Code]....

View 1 Replies View Related

Not Working With Firefox It Is Working Fine With IE?

Aug 30, 2009

hereis the html file and javascripton click of this button a

[Code]...

View 1 Replies View Related

$.ajax Working With Firefox But Not Working In IE

May 14, 2010

I have a jQuery code to allow users to login using a lightbox [URL] and immediately start downloading files, without being redirected or having the page reloaded. It's perfectly working in Firefox but Internet Explorer keeps showing the login box until I reload the page

[Code]...

View 1 Replies View Related

JQuery :: AjaxSubmit Worked In 1.3.2 But No Longer In 1.4.xx?

Jan 21, 2011

We've been using ajaxSubmit to process a login form request (can be found here: [URL] Login Link in navigation). However when we attempted to upgrade from 1.3.2 to 1.4.4, we get the following error whenever we submit the form:

"jQuery(this).ajaxSubmit is not a function"

The only way we've been able to get the form to work again is to go back to vs. 1.3.2.

Has something changed in 1.4.4 that would prevent the form from working? Is "ajaxSubmit()" no longer a valid function?

Here's the javascript below:

jQuery(document).ready(function() {
jQuery("#show_login").click(function() {
formLogin();
jQuery('#user').focus();

[Code].....

View 2 Replies View Related

Query :: String Dilema - The Tab No Longer Open

Jan 31, 2010

i've built an app using extjs when it a user browses to the url domain.tld/#v=xxxxxx a new tab opens in a extjs panel to show content for the video with id xxxxx as soon as i submit a form from another page or even the same one and popuulate another variable, q, the tab no longer opens when the url looks like domain.tld/index.php?q=some+text#v=xxxxxx why it no longer gets the value of v? i'm using

[Code]...

to get v's value and if it is set then a javascript function is called to open the tab.

View 2 Replies View Related

Show / Hide DIV OnClick No Longer Works

Feb 8, 2011

I have a page where an alternate address area is kept hidden via JavaScript and CSS divs. If you click that you want to use an alternate billing address, two divs are expanded. One with the form fields for entering in your alternate address, the other area has further info about why we need that alternate address. (Code is below). This works PERFECTLY for my needs....however, if you reload the page, the "show" button remains selected and OFF=ON and ON=OFF if you get my meaning...so when you click the radio that should be hiding the divs, it shows them and vice versa. Additionally if there is an error in the form and the page reloads to display the error, only the billing address area stays expanded (its inside the <form> tags), the text area next to it goes back to being hidden, and the show/hide OnClick no longer works. Ideally, I'd like the two to maintain the same state (i.e. if both we're shown, both stay shown).

CODE (trimmed down of course):
Code:
<head>
<style type="text/css" media="all">
.invis { visibility: hidden; display: none; }
.vis { visibility: visible; display: inline; }
</style>
<script language="javascript" type="text/javascript">
var c = 'invis';
var ids = new Array('id1', 'id2'); // IDs of your <div>s
function doSwap() {
c == 'vis' ? c = 'invis' : c = 'vis';
for (var i=0; i<ids.length; i++) {
document.getElementById(ids[i]).className = c;
}}
</script>
</head>
<body>

<div id="id1" class="invis">This is all just plain text that appears when the NO radio is clicked but disappears on reload</div>
<form>
<table>
<tr>
<td>
<input type="Radio" name=" " value="hide" onClick="doSwap()" id=""> YES
<input type="Radio" name=" " value="show" onClick="doSwap()" id=""> NO
</td>
</tr>
<tr id="id2" class="invis">
<td>extra address entry stuff that appears when the NO radio and that stays on page after reload</td>
</tr>
</table>
</body>

View 2 Replies View Related







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