Elements Loaded - Make Available For DOM - Works Fine In Firefox And Of Course Not In IE
Jun 8, 2009
However I am trying to have a flash embed code for SWFObject written on load by JS. This way I can include just a JS file rather than the JS and HTML, making it easier for others to include. So I know, document.write is bad. Fine, but I haven't been able to use createElement() for some reason, nothing gets created (as verified by firebug).
This works fine in Firefox, and of course not in IE. I believe it has something to do with the items not getting loaded in to the DOM, but I want to be able to apply other JS functions to the flash object (video or videoie), for example to close the video player on completion by removing it. I have that code working, at least when the code is put in the HTML and not added by JS, so I presume its that this method of inserting code causes IE to choke?
I've got some PHP and javascript working together to create a marginless image popup from another arbitrary image. This works perfectly in Firefox, but IE bombs and I'm not really knowledgable about Javascript to be able to tell immediately why. Here's the relevant code from the page:
<a href="#" onClick="window.open('http://www.somesite.com/popup.php?image=popup.jpg', 'popup', 'width=737,height=492, directories=no, location=no, menubar=no, scrollbars=no, status=no, toolbar=no, resizable=no, top=300, left=300'); return false" style="cursor:pointer"><img src="http://www.somesite.com/pics/thumb.jpg" alt="Click here to see a larger image"></a>
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.
I have a scrolling texct script that i aquired some where long ago, i recently included it in our web page which works fine in firefox but in IE it comes out on two lines.
so im trying to get this to work [URL] and in fireworks, it works fine, but in safari, if i try to click from top to bottom, it doesnt work, but if i try to click from bottom to top, it works.
we are developing a site and have just discovered our forms are not working in Firefox, they all run perfectly in Internet Explorer etc? Is there something we need to change with our coding? :thumbsup: Form 1: [URL] Form 2: [URL]
I developed a website using jQuery plugins in part of it. Couple of visitors visited the website with internet explorer complained that some part of the website does not function at all. I have Internet Explorer 8 installed and I dont know how to downgrade it.[URL]...
I have a javascript prompt box (as you can see in the code below) it works perfectly fine with internet explorer however it's NOT working in firefox. I tried everything I can think of, but still its not working!
<%@LANGUAGE="VBSCRIPT" CODEPAGE="28592"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns="[URL]"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <title>Choose Your Language</title> <script language="javascript" type="text/javascript"> function checklang(){ var lang = prompt('Choose A Language:'+' ' + "(Ex: Armenian, Arabic, English, French, Greek, Russian)",'English'); if (lang==null || lang=="") {lang=""; return;} if (lang=="Armenian" || lang=="Arabic" || lang=="English" || lang=="French" || lang=="Greek" || lang=="Russian") {location.href = "sermon-section.asp?lang="+lang}; else location.reload(); } </script></head><body> <a href="#" onclick="checklang()">Choose Your Language</a> </body></html>
The submenu works fine with FF, IE8 etc. But it fails with IE7.I have to use sprites background images and the second level sub menu have to be positioned at a certian place.When I hover top of sub menu, it is ok. But the below of that submenu, such as Radio, Artikler, Hvem er vi?, I am not able to select in IE7.
The script runs fine in firefox. In internet explorer when the loop runs for the first time, it sets the variables properly but the following times through the loop, my productId and variantId variables are undefined.
$(document).ready(function() { var size = []; var productId = []; var variantId = [];
I've a Javascript function that has to verify if a form field is empty or not. My function works fine on my local server (Vertrigo), but when I upload it on server (online), the function doesn't verify if form fields are empty or not.I'm not good in Javascript
<head> <script type="text/javascript" language="JavaScript"> function empty()
I'm loading images one time after another on the click without AJAX It works fine on GOOGLE CHROME, but not on IE. The images load fine. The background <div> doesn't. It loads the size of the previous image. This is when I goto the nextButton and prevButton function. I also read it is because the image hasn't loaded fully yet. How do I wait until the image has loaded before it continues? If this is correct.
I am pretty new to Javascript having a bit of a problem with a website with Google Maps integrated. URL I have two checkboxes (ccCheck and caccCheck). The basis is when the box is ticked, it overlays a KML onto the map. This is working fine in Chrome, but in FF and IE it doesn't work, IE returns 'ccCheck is Undefined'. The code I am using is in the JS file, the bit it gets stuck at is as follows:
[Code]...
If I stick a ccCheck = document.getElementById('ccCheck') within the onclick function (before the if statement), it places the overlay onto the map, but then when I untick the box it just stays there. It's such a simple thing (I think), and must be down to IE being pedantic about declaring the variable properly, the question is how should I be doing this?
i am using an image scroller and i have it on three pages, the pages use the same header, the same css and the same basic structure.such as
table content footer
the problem is that the scroller works fine on two of the pages but does not work at all on the one page.here is what i am getting on that page
Message: 'ElementExtensions' is null or not an object Line: 1898 Char: 3 Code: 0 URI: http://www.mysite.com/lightbox_slideshow/prototype.js
Message: Object doesn't support this property or method Line: 705 Char: 41 Code: 0 URI: http://www.mysite.com/lightbox_slideshow/lightbox.js
Message: Array length must be assigned a finite positive number Line: 464 Char: 5 Code: 0 URI: http:[url]....
the only common denominator i can see is that the page it does NOT work on is in fact a photo manager page, the other two (that DO work dont deal with photos)i checked the array and the js vars and stuff are different from my photo manager vars (php) so i was thinking maybe there might be a clash of some kind accessing the queries at the same time when the page loads but i dont get any errors other than these.by the way the scroller is black not grey like the others for background.does it sound like from the errors that i am getting that it might be a db query clash of some kind.
I am trying to get the JavaScript drop down menu from this site to work with the Internet Explorer browser:Simple JavaScript Drop Down Menu with timeout effect v2.0 � Scripts and Tricks � JavaScript DHTML TutorialsI can download the page to my computer, then open the page from the folder into which it wasdownloaded with the IE browser, and and it works fine.But however, if I: 1). rename the page or 2). copy and paste all of the Html code on the page and then paste it in to a new file and then try to open it in the IE browser I get this message:To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..
I've written a jQuery script for a crossfade slide show. My script works fine when I put it it the body section of my HTML. But when I move it to the head, the script no longer works. The div where the images are supposed to appear remains blank. Does this matter? Does this mean that there's a flaw in my script? Should I be worried? Or should I simply leave the script where it is in the body section.
Friend of mine made this script and it works fine inFF (check url beneath) but it wont load the same way in IE. Well it wont load at all there. Can anyone see the problem right away? Im very new to this and iv'e been looking everywhere to try a find a fix for IE solving my problem, so you are kind of my last hope. My friend couldnt find a fix for it either but we assume the code is good as FF does what its supposed to do.
I have been trying to run two Javascripts within the same page. The first is the Drop down menu Javascript, the second is the Picture Viewer (Click an image and it opens) Here is a copy of the webpage (the active version has been modified to reduce confusion for users) [URL] I have tried a noconflict, but it didn't seem to work. As you can see, the Picture viewer works fine, but the drop down menu seems to be in conflict.