Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    global variable works fine with IE but not with MozillaFirefox

    hii

    i have written all the code based on the global variables, its workin fine with IE but its not workin with Firefox

    can anyone plzz help me to know...

    how to make a varible global such that it should work both in IE n Firefox ?

    it wil be a great help for me if ther's a solution for this...

    thnx
    Murali

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    There might very well be a solution but how are we supposed to help you if you haven't posted any code or much less a link? We aren't psychic you know.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for not mentioning any Code which iam not supposed to do..for some reasons

    if u go thru the senario below...may b u can get it.

    var a=1;

    function forexample()
    {
    in the function iam adding rows into the table and adding a text box for each cell within the table
    passing the value of the 'var a' for the textbox id like id='somename"+a+" '
    }

    function forexample2()
    {
    Here by making use of the textbox id 'somename"+a+" ' iam deletin the text box.
    }

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I doubt your javascript is that precious. Its pretty much common knowledge but from what you posted I'm going to assume that you have
    Code:
    id='somename"+a+" '
    your code when it should be
    Code:
    id='somename'+a
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Oct 2006
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    as per my knowledge...
    wht iam dng and wht u are telling both do the same job...right

    even after changing its not makin any difference....

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Instead of
    Code:
    var a=1;
    try
    Code:
    var a='1';
    I still think you should post your code. It seriously can't be that private seeing as its going to go on the web anyways. It doesn't even have to be the full code, just the js and some simple html.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New Coder
    Join Date
    Oct 2006
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i cant give u the reason i am extremly sorry....

    var a='1'; i tried this...it didnt work

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Are you getting any errors in the firefox javascript console? If not then I don't know what to tell you other than good luck. You need to figure this one out on your own or explain to us what EXACTLY it is that you are trying to do.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    New Coder
    Join Date
    Oct 2006
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank U soo much for ur effort....
    il try to get a solutoin...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •