473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

my Javascript wont work on Firefox!!

2
The javascript works perfect on IE, but on firefox it doesnt.


I've pasted both frames source, as well as the page source ( the right frame source.txt was zipped to fit the maximum size allowed)

the combobox on the left frame doesnt work ( should extract the items from my db )
when i pick an item on the left frame and go to "add" on the right frame i doesnt work, same when i go to the top frame to hit "validate"
In short THERE IS A PROBLEM !!

I tried to follow the standards while building the jsp, and never tought of eventual problems when moving to firefox

in brief, multiple frames in Firefox need to be treated differently and i have absolutely no clue what should be changed for my script to work on FF.

I'm pretty sure It's something small and stupid, but i just couldn't get myself to look in the right direction probably.

I'll appreciate all the help i can get
Attached Files
File Type: txt page source.txt (730 Bytes, 439 views)
File Type: txt left frame source.txt (7.1 KB, 935 views)
File Type: zip right frame source.zip (5.5 KB, 141 views)
Jun 1 '06 #1
3 7245
Banfa
9,065 Expert Mod 8TB
There are a number of problems, however I suggest that you start by
  1. Correcting your DOCTYPE to a valid one, see here for a list but I think you want
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. Correcting you HTML so that it is valid for the DOCTYPE you are referencing, I suggest using the W3C HTML Validator here
  3. The whole page seemed to start working a lot better when I removed the css

    body
    {
    -moz-user-focus: ignore;
    -moz-user-input: disabled;
    -moz-user-select: none;
    }
  4. Although you have posted a lot of your code you have not posted it all. CSS, image and javascript files are missing as well as the top frame. If you are still having trouble then I suggest you post a URL for the page as we can down load any parts we need to look at once we have the URL (assuming it is available). Particularly if you have a Javascript problem then leaving the javascript file out of the post is not a good idea.
Jun 5 '06 #2
9DeT
2
tahnk you for the feedback banfa

i've uploaded the page
URL:

http://www.spread-it.com/dl.php?id=5...41566dae86e1b2
Jun 7 '06 #3
Banfa
9,065 Expert Mod 8TB
Now that is a complicated app, it's hard, well impossible actually for me to provise very specific help given that this clearly runs off a database and other sever side stuff I have no access to.

However I suggest that you trying running in FireFox with the Javascript Console up as this will give you clues to what the problem is, for instance I get the error

Error: document.getElementById(idField) has no properties
Source File: file:///C:/Documents%20and%20Settings/bross/My%20Documents/html/Desktop/test_files/controller_data_003/controller_002.htm
Line: 14

That line of code is the first line of the function

Expand|Select|Wrap|Line Numbers
  1. function get(idField, nameField ){
  2.     document.getElementById(idField).value = parent.projectFrame.getTaskID()
  3.     document.getElementById(nameField).innerHTML = parent.projectFrame.getTaskName()
  4.     modified = 1
  5. }
  6.  
That function is being invoked in the html

[html]
<a href="javascript:get('task_am_1', 'name_am_1');"><img src="controller_data_002/fill.gif" border="0" height="16" width="16"></a>
[/html]

so get is trying to access an element with an id of task_am_1. However on your page there is no element with that id, I assume the element you are trying to refer to is

[html]
<input name="task_am_1" value="" style="height: 18px; width: 70px;" type="text">
[/html]

However this element is only named, not id. Perhaps you need to write this (and all the others as

[html]
<input id="task_am_1" value="" style="height: 18px; width: 70px;" type="text">
[/html]

Using ids and getElementById is more standard than using names and relying on document.<name> but if you really need the name then id and name the element

[html]
<input id="task_am_1" name="task_am_1" value="" style="height: 18px; width: 70px;" type="text">
[/html]
Jun 7 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Oliver Spiesshofer | last post by:
Hi, I have a script that calls an fopen() on an external URL. I can run the script from the server as an url fine. When however the script should be run from crontab, it does not work. I get ...
5
by: Catherine | last post by:
I am having a problem viewing asp pages on iis version 5.1 xp pro. HTML pages are viewable on http://localhost but .asp pages are not. I have created a test program called timetest.asp with the...
19
by: Allen Thompson | last post by:
sorry for the simple question, haven't done this in a while. when I use the following script it keeps displaying the value of "x" like a string. for example, if I type the number 7 in the prompt,...
7
by: Christine | last post by:
My code has a split function that should split the text file of numbers. I've run this in previous programs as it is here and it worked, but now it wont work for some reason and returns...
3
by: Joel Byrd | last post by:
Using javascript to set cookies is apparently not working in Firefox. Here's a simple test page that works in IE, Opera, Netscape, but not Firefox (The javascript is right on the page): ...
14
by: squash | last post by:
The following code works fine in Firefox/Netscape but wont work in IE. I suspect the problem is with one of these two simple functions. If there is no obvious error Ill paste the entire code. ...
11
by: dmorand | last post by:
Is there a way to see javascript errors in firefox similiar to how IE works? I like how IE has the icon in the bottom left which notifies me that I have a js problem. I'm sure firefox has this, but...
6
by: Tmuldoon | last post by:
Hi, I have some Javascript that works on IE 6-7 but not Firefox(FF). FF throws this error when clicked: Hello, Using Publisher 6.2 and Firefox 2.0
2
darksteel21
by: darksteel21 | last post by:
is there any one can help me....i have a problem in displaying showmodal dialog box in mozilla firefox browsers...showmodal dialog box wont work on firefox browsers but on IE it works fine..can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.