|
-
Aug 29th, 2005, 09:22 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Firefox and IE
Code:
<td align="right"><input class="navmenu" id="return" type="button" value="戻る" onclick="doProcess(this.id)"></td>
this code, will execute doProcess in IE, but not in FX why?
the doProcess function is
Code:
function doProcess(process){
var aform = document.forms(0);
alert("javascript called");
if(process == "return"){
window.top.location = "manage.html";
}
}
-
Aug 29th, 2005, 09:27 PM
#2
Thread Starter
Frenzied Member
Re: Firefox and IE
bumping this one up!... I need Help!!!
-
Aug 29th, 2005, 09:30 PM
#3
Re: Firefox and IE
 Originally Posted by oceanebelle
bumping this one up!... I need Help!!! 
You only posted it 5 mins. ago... ...you just like the sound of your own... errr ...text!
As for why Fx doesn't work, it must b because of how great it is, just like everyone keeps telling me.
TPM
Add yourself to the VBForums Frappr Map!!
-
Aug 29th, 2005, 09:32 PM
#4
Re: Firefox and IE
why was this posted in cc?
-
Aug 29th, 2005, 09:33 PM
#5
Thread Starter
Frenzied Member
-
Aug 29th, 2005, 09:35 PM
#6
Thread Starter
Frenzied Member
Re: Firefox and IE
 Originally Posted by tr333
why was this posted in cc?
because there are more people here.. and i don't really know whether it would fall in javascript or html since it involves browsers... thought many people who are familiar with Fx frequents more here. 
and I frequent here as well.
-
Aug 29th, 2005, 10:49 PM
#7
Re: Firefox and IE
Change that to
onclick="javascript:doProcess(this);"
-
Aug 29th, 2005, 10:56 PM
#8
Thread Starter
Frenzied Member
Re: Firefox and IE
it still won't work.
-
Aug 29th, 2005, 10:59 PM
#9
-
Aug 29th, 2005, 11:00 PM
#10
Thread Starter
Frenzied Member
Re: Firefox and IE
ROFL
-
Aug 29th, 2005, 11:00 PM
#11
Re: Firefox and IE
Have you taken a look into Tools > JavaScript console? It might tell what is wrong.
-
Aug 29th, 2005, 11:02 PM
#12
Re: Firefox and IE
What is this for:
var aform = document.forms(0);
?
-
Aug 29th, 2005, 11:03 PM
#13
Re: Firefox and IE
That line seems to be the error. Remove it.
-
Aug 29th, 2005, 11:04 PM
#14
Thread Starter
Frenzied Member
Re: Firefox and IE
LOL... now that's a good suggestion... found the bugger... ehehehe.. sorry for being a Fx noob 
there is no
Code:
var aform = document.forms(0)
in Fx?
-
Aug 29th, 2005, 11:04 PM
#15
Thread Starter
Frenzied Member
Re: Firefox and IE
 Originally Posted by mendhak
What is this for:
var aform = document.forms(0);
?
i would in the future be using that... why is it an error? it doesn't say so in ie.
-
Aug 29th, 2005, 11:05 PM
#16
Thread Starter
Frenzied Member
Re: Firefox and IE
okies. instead of figuring that out... I'll just remove it THanks.
-
Aug 29th, 2005, 11:06 PM
#17
Re: Firefox and IE
After a quick Google, should it be [0] and not (0)?
-
Aug 29th, 2005, 11:11 PM
#18
Thread Starter
Frenzied Member
-
Aug 29th, 2005, 11:43 PM
#19
Re: [RESOLVED] Firefox and IE
This is the last time we let you post a programming question in Chit Chat. The next time, we'll get the pitchforks out.
-
Aug 29th, 2005, 11:58 PM
#20
Thread Starter
Frenzied Member
Re: [RESOLVED] Firefox and IE
LOL... okies okies.. I know I went overboard this time. :'( SORRY SIR... *salutes and stalks off*.
-
Aug 30th, 2005, 12:06 AM
#21
Re: [RESOLVED] Firefox and IE
Believe it or not, IE understands this code! Wayback Machine to kaenkoski.net
Now, take a look into the menu in the left. If you use anything else than IE, you probably notice you can click only one of the links. However in IE all links work just fine. Open the frame source and take a look into the way the links are formatted, especially when links open and close... and then start wondering how IE figures how to display as creator of the site has intended.
-
Aug 30th, 2005, 12:27 AM
#22
Thread Starter
Frenzied Member
Re: [RESOLVED] Firefox and IE
-
Aug 30th, 2005, 12:29 AM
#23
Re: [RESOLVED] Firefox and IE
Don't you just love IE?? In theory, if you enclose your script in <script type="text/javascript"></script> it should force IE to be strict with the syntax.
Of course with Internet Explorer its not a case of "monkey say, monkey do"
-
Aug 30th, 2005, 12:30 AM
#24
Re: [RESOLVED] Firefox and IE
 Originally Posted by oceanebelle
why won't it work on Fx?
Becuase its invalid Javascript code - it is not however invlaid Jscript code.
-
Aug 30th, 2005, 12:36 AM
#25
Thread Starter
Frenzied Member
Re: [RESOLVED] Firefox and IE
so if I take out meta tag "text/javascript"... in theory would that be okey, for Fx that is?
-
Aug 30th, 2005, 12:38 AM
#26
Re: [RESOLVED] Firefox and IE
No, just in IE. It should force IE to be strict and ensure that it is valid Javascript.
Internet Explorer by default uses JScript, which is not Javascript. JScript includes its own DOM and i not sctrict about things like semi colons and array syntax. Firefox complies with the W3C standard of Javascript nad does not know what JScript is, therefore it won't work.
-
Aug 30th, 2005, 12:41 AM
#27
Thread Starter
Frenzied Member
Re: [RESOLVED] Firefox and IE
Thanks for clearing it all up, Adam.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|