Results 1 to 27 of 27

Thread: [RESOLVED] Firefox and IE

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Resolved [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";
    	}
    }

  2. #2

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    bumping this one up!... I need Help!!!

  3. #3
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: Firefox and IE

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

  4. #4
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Firefox and IE

    why was this posted in cc?
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  5. #5

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    well, I am in a hurry. ...

    why???

    I am just wondering about this.

  6. #6

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    Quote 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.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox and IE

    Change that to

    onclick="javascript:doProcess(this);"

  8. #8

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    it still won't work.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox and IE

    Reinstall Windows.

  10. #10

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    ROFL

  11. #11
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Firefox and IE

    Have you taken a look into Tools > JavaScript console? It might tell what is wrong.

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox and IE

    What is this for:

    var aform = document.forms(0);

    ?

  13. #13
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Firefox and IE

    That line seems to be the error. Remove it.

  14. #14

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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?

  15. #15

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    Quote 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.

  16. #16

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    okies. instead of figuring that out... I'll just remove it THanks.

  17. #17
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Firefox and IE

    After a quick Google, should it be [0] and not (0)?

  18. #18

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Firefox and IE

    hmm.. that would be the standard then, in IE its fine. I was following the japanese code style.. i never saw them use [] in accessing elements in a collection array...

    no wonder.

    thanks for all your help!

  19. #19
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  20. #20

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE

    LOL... okies okies.. I know I went overboard this time. :'( SORRY SIR... *salutes and stalks off*.

  21. #21
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    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.

  22. #22

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE

    why won't it work on Fx?

  23. #23
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  24. #24
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: [RESOLVED] Firefox and IE

    Quote Originally Posted by oceanebelle
    why won't it work on Fx?
    Becuase its invalid Javascript code - it is not however invlaid Jscript code.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  25. #25

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: [RESOLVED] Firefox and IE

    so if I take out meta tag "text/javascript"... in theory would that be okey, for Fx that is?

  26. #26
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  27. #27

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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
  •  



Click Here to Expand Forum to Full Width