473,385 Members | 1,661 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,385 software developers and data experts.

innerHTML won't work with Firefox

Eo
Hey I hav JS code that expend TD if beeing click on
from some reson it dose not work in firefox(won't open) just under IE
it works
any Idea?

function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);
if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {

document.all("tdStatus" + AId).innerHTML="ôúç";

}
else {
document.all("tdStatus" + AId).innerHTML="ñâåø";
} coId.bgColor="#009900";

if(document.all("Adinfo" + AId).innerHTML=="") {
document.all("Adinfo" + AId).innerHTML="<iframe src='" +
FullPage + "' width='100%' height='120' frameborder='1'
scrolling='auto' name='ttt'></iframe>";
}
else {
document.all("Adinfo" + AId).innerHTML="";
coId.bgColor="#ffffff";
}
}

May 30 '07 #1
4 3448
On May 30, 7:43 am, Eo <ghsu2...@yahoo.comwrote:
function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);

if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {
Don't use document.all. It's not standard (only with IE). Use
document.getElementById();

May 30 '07 #2
Eo
On May 30, 2:55 pm, Jang <jangc...@gmail.comwrote:
On May 30, 7:43 am, Eo <ghsu2...@yahoo.comwrote:
function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);
if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {

Don't use document.all. It's not standard (only with IE). Use
document.getElementById();
Can you show me example please?

May 30 '07 #3
On May 30, 7:58 am, Eo <ghsu2...@yahoo.comwrote:
On May 30, 2:55 pm, Jang <jangc...@gmail.comwrote:
On May 30, 7:43 am, Eo <ghsu2...@yahoo.comwrote:
function MoreInfo(id)
{
AId=id;
FullPage ="<? echo $fullpage; ?>id=" + AId;
coId = document.getElementById('Coinfo'+AId);
if(document.all("tdStatus" + AId).innerHTML=="ñâåø") {
Don't use document.all. It's not standard (only with IE). Use
document.getElementById();

Can you show me example please?

Just substitute document.all with document.getElementById everywhere
in your code. You can probably even do a search and replace in your
editor.

May 30 '07 #4
Eo wrote:
Hey I hav JS code that expend TD if beeing click on
from some reson it dose not work in firefox(won't open) just under IE
it works
any Idea?
You can find more help at:

Using Web Standards in your Web Pages
http://developer.mozilla.org/en/docs...your_Web_Pages

Mozilla Developer Center: Web Standards
http://developer.mozilla.org/en/docs/Web_Standards

Mozilla Developer Center: Web Development
http://developer.mozilla.org/en/docs/Web_Development

Also in your language, forum discussion/support for web development and
web standards (compatibility, support for Firefox):
http://www.mozilla.org.il/board/

Gérard
--
Using Web Standards in your Web Pages (Updated Apr. 2007)
http://developer.mozilla.org/en/docs...your_Web_Pages
Jun 3 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
5
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine...
14
by: catorcio | last post by:
I'm trying to have some text in my page changed by clicking a button. Googleing around I've discovered that innerText doesn't work with every browser, so I've switched to innerHTML. It works fine...
3
by: C#_learner | last post by:
function sortTable( ao_table, ai_sortcol, ab_header ) { var ir, ic, is, ii, id; ir = ao_table.rows.length; if( ir < 1 ) return; ic = ao_table.rows.cells.length; // if we have a header...
1
by: steakhaus | last post by:
I just put up a new website that won't work in Firefox, but works fine in Safari. Are there any known problems? I designed it in Dreamweaver and the navigation bar has flash buttons that should...
3
by: Igal | last post by:
hay. i'm working on some site, the code is pretty old, it has some form validation JS scripts. but seems like they work only in IE, won't work with FireFox. here's a example: <script...
2
by: Altman | last post by:
I have created an ascx control and I am calling registerclientscriptblock. The path to the js file is relative to the aspx page and not the ascx file. The function runs fine in IE7 but in...
2
by: Sky Kast | last post by:
I'm running Firefox on a win 98 computer and javascript won't work And yes i have set everything javascript that should enable to true or check so it's not that
5
tjc0ol
by: tjc0ol | last post by:
Hi all, I made contact page which allows visitors to input their name, email address, phone number, comments and select a comment type by using <select> element in html with javascript. Among the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.