473,554 Members | 3,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.getEle mentById('Coinf o'+AId);
if(document.all ("tdStatus" + AId).innerHTML= ="") {

document.all("t dStatus" + AId).innerHTML= "";

}
else {
document.all("t dStatus" + AId).innerHTML= "";
} coId.bgColor="# 009900";

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

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

if(document.all ("tdStatus" + AId).innerHTML= ="") {
Don't use document.all. It's not standard (only with IE). Use
document.getEle mentById();

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.getEle mentById('Coinf o'+AId);
if(document.all ("tdStatus" + AId).innerHTML= ="") {

Don't use document.all. It's not standard (only with IE). Use
document.getEle mentById();
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.getEle mentById('Coinf o'+AId);
if(document.all ("tdStatus" + AId).innerHTML= ="") {
Don't use document.all. It's not standard (only with IE). Use
document.getEle mentById();

Can you show me example please?

Just substitute document.all with document.getEle mentById 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
1539
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 as it was given to me from Imageready but it won't work. The event that i wanted (and "created" with Imageready) was ondown. The code is this:...
5
2210
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 in IE, though. I know, IE is a bit more permissive than IE, and sometimes lets errors work when they shouldn't. But from what I can see, I just...
14
2504
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 on IE and Opera, but nothing happens on Firefox (just updated to version 1.0.4). Any suggestions? Thanks in advance! C.
3
2289
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 row, ignore the first row
1
1262
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 open sized windows when a link is clicked on. It does this in Safari no problem. when I use Firefox nothing happens at all? help please. here is...
3
1501
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 language="JavaScript" type="text/javascript"> <!-- function check1(){ if (form1.name.value==""){ alert("type your name"); form1.name.focus();
2
9130
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 Firefox the error console says that the function is not defined. I tried making a very basic js file to get it to work and I am having the same problem. ...
2
1014
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
1739
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 option of it are: General Support, Technical Support, Sales in billing, Request RA no. and Others. If they select Others there will be a pop-up...
0
7583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main...
0
7507
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7542
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5424
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5143
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1115
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
825
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.