Script For Swapping SWF Files Not Working In Firefox

Jan 13, 2009

I'm in charge of a project for a medical website and it is set up so that each 'page' of a questionnaire that users need to fill out has a corresponding Flash file to illustrate the parts of the body the page is referencing. The developer (who did the dynamic parts in ASP, I believe) set it up so the site pulls all of the questions from the database when the page loads and then uses Javascript show and hide sections to show the appropriate 'page'. He uses the same Javascript to figure out which Flash file is needed (based on the name of the page) and swap out the .swf's accordingly.

The only problem is that the Flash-switching part only works in Internet Explorer. The pages switch just fine, but the place where the Flash should be is blank. The developer told me he has never used Firefox and has no idea how to change his script to make it work for FF, so it's now up to me to figure it out. I'm a PHP developer with limited Javascript knowledge, so my only recourse is to ask for assistance from the experts here at Sitepoint. I've posted the Javascript and the HTML for the Flash file below.

Javascript:
Code:
function DisplayPage(PageNo){
if(ThisPage==PageNo){return};
var eles=document.getElementsByName("xdmenu");
var pic=document.getElementById("bodypic");
var bodyfile="";
switch(PageNo) { .....

HTML (this is where the Flash is embeded):
HTML Code:
<object name="bodypic" id="bodypic" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL]" width="220" height="475">
<param name="movie" id="movie" value="../Html/Wrapper/man_xxxx.swf" />
<param name="quality" value="high" />
<embed src="../Html/Wrapper/man_xxxx.swf" quality="high" pluginspage="[URL]" type="application/x-shockwave-flash" width="220" height="475"></embed>
</object>

View 4 Replies


ADVERTISEMENT

JQuery :: Swapping Not Working With The Nested Divs?

Aug 1, 2011

I have some set of div elements as follows,

<div class="parentCell_1">
<div class="children"></div>
<div class="children"></div>

[code]....

View 4 Replies View Related

Loading Files Into Firefox Extension

May 15, 2010

I'm actually doing a firefox extension in which i would like to implement the jWebsocket API in order to build a small chat. I got my main script file, named test.js, and the jWebsocket lib into a js folder. Just for you to know, this is my first firefox extension ever. So in my XUL file I got this :

[Code]....

View 1 Replies View Related

JS Files Not Working As An External File?

Jun 4, 2009

I have an advertising script , its embedded on the html page . here is the code from the HTML

Code:
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'Linkhere':'Linkhere');
var m3_r = Math.floor(Math.random()*99999999999);

[Code]....

View 1 Replies View Related

Ajax :: Not Working Inside Include Files

Mar 12, 2011

I have the following code inside an include file which is included in my index.php page. All of my include files are placed in a folder called includes alongside my index file and the file ajax_getusers.php. When I have tested out this code all in one page it works fine but if I put the first section of code below in an include and include it in my index page it does not work at all. Is therer any reason for this?

Code:

<script type="text/javascript">
function showUser(str)
{
if (str=="")

[Code]....

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

Mail Service - Attach Some Excel Files Of Text Files And To Send It

Aug 16, 2010

I have designed a mail service in java.In my compose page,i want to attach some excel files of text files and to send it.After sending i want to store it my database.Then how can i download or open that file after opening that recipient mail inbox.

View 1 Replies View Related

XMLHttpRequest Script - Works For Local XML Files But Not For External XML Files?

Oct 2, 2010

I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?

Javascript Code

Code:

window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;

[code]....

View 6 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 :: Ajax Request Works With .xml Files But Not .php Files?

Aug 27, 2010

In my quest to implement ajax for the first time i've hit a brick wall. i've been searching for hours for a solution but with no success. Here is the problem.

[Code]...

why is it not working? my PHP code is outputting the contents of the xml document.

View 1 Replies View Related

List All Files In A Folder Including Subfolder Files?

Sep 5, 2008

I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full path like C:Documentsjavascriptwilson.js like this.

View 5 Replies View Related

Show Images From Four Files - Each Files Are In Each Folder?

Jan 15, 2010

I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg). now,in index.php page there are four buttons, each buttons for each images. if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page. and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg. how can i write that code to show images from four files, each files are in each folder.

View 1 Replies View Related

Ajax :: Include File In File Not Working At The Time Of Files Is Called

Apr 27, 2009

When the JS file is not working at the time of Ajax files is called. on first time the onmouseover JS is working but , if you call the ajax JS is not working.

View 2 Replies View Related

Close Through Browser Close Button Code Working In IE Not Working In FireFox

Nov 16, 2009

Suppose,closing the browser through Browser Close Button(Top Right Corner cross(x) button), i have to execute some ASP script , for that, in body onUnLoad Event calling a fucntion called CloseWin(e,frm), it is working in Internet Explorer successfully , But in FireFox not working. how to solve this problem. or any other way to get the co-ordinates of browser close button( code for both IE and Firefox).

code follows

function CloseWin(e,frm)
{
//frm required for my program
var bButtonClicked = false;

[Code]....

View 1 Replies View Related

JQuery :: Jquery.form.js - Uploading Files Not Working

Jun 30, 2011

We are using balupton's history.js to process normal (without files) forms and jquery.form.js for these with files.

So our code looks like that:

$this.find('form.formularz').submit(function(event){
var
$this = $(this),
url = $this.attr('action');

[Code]....

I thought maybe it's something wrong with iframe, but there are requests made to server. On server side, there is 499 error code for IE (it's internal nginx error code, it says that browser closed connection before nginx even sent anything) and 408 for Firefox.

View 4 Replies View Related

JQuery :: Not Working With Firefox?

Jan 30, 2011

When the select menu is changed, the text in the textarea tag is changed. But after something is typed in the textarea tag, the select change functionallity no longer works under Firefox 3.6.13. Firebug shows it as being changed, and it still works with IE8.Am I doing something wrong? Is there a workaround?

<!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">

[code]....

View 2 Replies View Related

JS Form Not Working In IE And Firefox

Jul 20, 2010

I'm trying to do up a contact form that after a user submits the information, the drop down contact box will slide back up instead of redirecting to another page. The script works fine in Chrome and Safari, but Firefox and IE keeps redirecting to the php page.

Html form:

Code:

View 2 Replies View Related

SetInterval Not Working In Firefox

Apr 1, 2009

Inside of $(document).ready(function () I have:
var refre****= setInterval(function(){
$('#mydiv').load("mypage.htm");
}, 9000);
This is working great in IE, it loads mypage.htm into mydiv every 9 seconds. If I change the contents of mypage.htm I can see it in mydiv after 9 seconds with IE, but not with Firefox.
With Firefox I can see the reloading symbol on top of the tab every 9 seconds, but I don't see the page changed.

View 1 Replies View Related

Link Not Working In Firefox?

Apr 28, 2009

I have a numbered image gallery which has a next and previous link which is another way of navigating through the gallery the problem i have that in IE all is fine but doesnt seem to be working in firefox, i would appreciate afew pointers,here is the code

<script type="text/javascript">
var currentImage = 1;
function LoadGallery(picNum, captionText)

[code].....

View 2 Replies View Related

Event.which Not Working In Firefox?

Jan 28, 2010

After spending hours trying out many different examples that supposedly work with IE and FF, I've decided to post here :)

This is the code I'm using to catch the down arrow:

function is_int(event)
{
var Key = event.keyCode ? event.keyCode : event.which ? event.which :

[Code].....

And called using the following on the text input of a form field:

onKeyDown="is_int(event);"

This works in IE but still not in Firefox (3.5.7). Surprised as it has the .which in there - I thought this is what FF needed?

View 1 Replies View Related

Onkeyup Seems To Not Be Working In FireFox?

Jan 27, 2011

I have a function that checks to see the number entered in a textfield and then, if greater than 1, will change a radio button from Single to Multiple and visa versa. The function is called from the textfield with an onkeyup="function()". The problem I am having is that it works in IE just fine, but in Firefox it doesn't seem to be doing anything. I'm not getting any errors and can't seem to see what is the problem.

View 9 Replies View Related

GetElementById Not Working In FireFox?

Jun 19, 2011

This code works fine in IE but it won't in FF.The error console says topdiv.style and sidediv.style are 'undefined'This is the javascript:

function changeposition() {
topdiv = "document.getElementById('top')";
sidediv = "document.getElementById('side')";

[code].....

View 5 Replies View Related







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