code working in mozilla firefox,but not working in internet explorer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • menakasrinivasagam
    New Member
    • Feb 2007
    • 3

    code working in mozilla firefox,but not working in internet explorer

    my coding is working in mozilla firefox.but not working in Internet explorer.plz give suggestion to rectify this problem
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to The Scripts

    Please post your code so we can see what the problem is.

    Comment

    • senaka
      New Member
      • Feb 2007
      • 23

      #3
      Originally posted by menakasrinivasa gam
      my coding is working in mozilla firefox.but not working in Internet explorer.plz give suggestion to rectify this problem
      The reason to your problem is the different implimentations of javascript (certain methods) in different browsers. Your code will need to be slightly modified to suit various browser conditions. In order to help you through please post your code below.

      Comment

      • chunk1978
        New Member
        • Jan 2007
        • 224

        #4
        Originally posted by senaka
        The reason to your problem is the different implimentations of javascript (certain methods) in different browsers. Your code will need to be slightly modified to suit various browser conditions. In order to help you through please post your code below.
        but some stuff just doesn't work in IE or Safari, like disabling select menu options (which works fine with Firefox)...

        Comment

        • senaka
          New Member
          • Feb 2007
          • 23

          #5
          Originally posted by chunk1978
          but some stuff just doesn't work in IE or Safari, like disabling select menu options (which works fine with Firefox)...
          It is upto the people who make the browsers to impliment support for the methods that we use in javascript. If they don't we can't help. Some methods may have alternative versions that work on alternative browsers, whilst there may be methods that work only on one browser. What do you exactly mean here by select menu options? which is the one that you want to disable?

          Comment

          • chunk1978
            New Member
            • Jan 2007
            • 224

            #6
            Originally posted by senaka
            It is upto the people who make the browsers to impliment support for the methods that we use in javascript. If they don't we can't help. Some methods may have alternative versions that work on alternative browsers, whilst there may be methods that work only on one browser. What do you exactly mean here by select menu options? which is the one that you want to disable?
            yes i agree with what you are saying completely...

            what i mean by a select menu are the pull down menus in HTML forms... it is possible to disable options within the menus in Firefox, but this disabling does not work with IE or Safari

            Comment

            • menakasrinivasagam
              New Member
              • Feb 2007
              • 3

              #7
              Originally posted by senaka
              The reason to your problem is the different implimentations of javascript (certain methods) in different browsers. Your code will need to be slightly modified to suit various browser conditions. In order to help you through please post your code below.
              this is my code
              scrolling the partcular text.this is scrolling in mozilla firefox browser.But not scrolling in Internet explorer.but display the text.
              plz suggest.

              code is:
              [HTML]<div id="datacontain er1" style="position :absolute;left: 0px;top:1px;wid th:100px" onMouseover="sc rollspeed=0" onMouseout="scr ollspeed=cache" >

              </div>


              <script type="text/javascript" src="ajaxJsScro ll.js">
              </script>
              <script language="javas cript" type="text/javascript">


              //Specify speed of scroll. Larger=faster (ie: 5)
              var scrollspeed=cac he=2;

              //Specify intial delay before scroller starts scrolling (in miliseconds):
              var initialdelay=50 0;

              function initializeScrol ler()
              {
              dataobj=documen t.all? document.all.da tacontainer : document.getEle mentById("datac ontainer1");
              dataobj.style.t op="5px";
              setTimeout("get dataheight()", initialdelay);
              }

              function getdataheight()
              {
              thelength=datao bj.offsetHeight ;
              if (thelength==0)
              {
              setTimeout("get dataheight()",1 0);
              }
              else
              {
              scrollDiv();
              }
              }

              function scrollDiv()
              {
              dataobj.style.t op=parseInt(dat aobj.style.top)-scrollspeed+"px ";
              if (parseInt(datao bj.style.top)<t helength*(-1))
              {
              dataobj.style.t op="5px";
              }
              setTimeout("scr ollDiv()",100);
              }

              if (window.addEven tListener)
              {
              window.addEvent Listener("load" , initializeScrol ler, false);
              }
              else if (window.attachE vent)
              {
              window.attachEv ent("onload", initializeScrol ler);
              }
              else
              {
              window.onload=i nitializeScroll er;
              }

              showHint('dummy ');
              </script>[/HTML]
              Last edited by acoder; Feb 3 '07, 03:27 PM. Reason: Code in tags

              Comment

              • dmjpro
                Top Contributor
                • Jan 2007
                • 2476

                #8
                first tell me what type of error u reciving.......
                if there is any sytax error then the total js will not work.
                but if there is logical problem in particular case it will not work.
                i assume it does not wotk in particular case...
                at first try to add the code ...in every function
                try
                {
                //ur code
                }catch(err)
                {
                alert(err.descr iption);
                }
                then u will find out the error...
                i think whenever u trying to parseInt(div_id ,style.top) it probably causes the error.
                because div_id.style.to p = "5px" this will generate number format exception...

                thannnnnnnakkkk kkkkkkksssss ....plz send me ur reply.
                i am online......... ....

                Comment

                • kthxbai2u
                  New Member
                  • Mar 2007
                  • 2

                  #9
                  Hey, how about my site? You can access it at:

                  http://kthx.zapto.org/

                  It works flawlessly in FireFox (pwnz) and it doesnt work in IE. Im Currently downloading IE7 to try it, but i have my doubts about it :-/ In IE it will screw up in the admin menu and also on the pages in the navbar when your logged out as guest. And the png's that i have dont work, but they inside the admin menu, they have that grey background when sposed to be transparent. Supposedly one of IE7's fixes.

                  Comment

                  • acoder
                    Recognized Expert MVP
                    • Nov 2006
                    • 16032

                    #10
                    IE6 had many bugs one of which was the PNG transparency bug which you are experiencing. This has been fixed in IE7.

                    Comment

                    • kthxbai2u
                      New Member
                      • Mar 2007
                      • 2

                      #11
                      Heh, yeah i had to use some hellish fix for the transparent png problem. As for them being fixed in IE7, i care why? IE6 is all i'll ever use because a) i dont have a legit copy of windows, and never will... (linux pwnz) b) IE7 is prolly just as buggy as all of microsofts other shit c) linux is much better and d) i'd have to restart my computer to complete the install process. I also found the default values for css in firefox are alot better than those in ie. screw ie. Smart people use firefox :D

                      btw my sites looking better :) And my domain is registered :D http://www.codinggroundz.com/

                      Comment

                      • elephantwalker
                        New Member
                        • Mar 2007
                        • 1

                        #12
                        I'm a beginner and having the same problem. Everything looks great in Firefox but images and text in IE are not appearing on the page where they should be. Also, I can't scroll down in IE so can only see half the content. Any tips would be greatly appreciated!

                        Thanks.

                        Comment

                        • acoder
                          Recognized Expert MVP
                          • Nov 2006
                          • 16032

                          #13
                          Originally posted by elephantwalker
                          I'm a beginner and having the same problem. Everything looks great in Firefox but images and text in IE are not appearing on the page where they should be. Also, I can't scroll down in IE so can only see half the content. Any tips would be greatly appreciated!

                          Thanks.
                          Welcome to TheScripts.

                          Post your code so we can see the problem.

                          Comment

                          • bogdanm
                            New Member
                            • May 2009
                            • 2

                            #14
                            I am having the same problem with this issuu code:
                            Code:
                            <div><object style="width:500px;height:300px" ><param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf?mode=embed&amp;layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml&amp;showFlipBtn=true&amp;documentId=090512194756-4bf4b421cb414e8f8be20573d2c102f7&amp;docName=produselacomanda&amp;username=HUSEPIELE&amp;loadingInfoText=CATALOG%20HUSEPIELE&amp;et=1242158433703&amp;er=6" /><param name="allowfullscreen" value="true"/><param name="menu" value="false"/><embed src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" style="width:500px;height:300px" flashvars="mode=embed&amp;layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml&amp;showFlipBtn=true&amp;documentId=090512194756-4bf4b421cb414e8f8be20573d2c102f7&amp;docName=produselacomanda&amp;username=HUSEPIELE&amp;loadingInfoText=CATALOG%20HUSEPIELE&amp;et=1242158433703&amp;er=6" /></object><div style="width:500px;text-align:left;"><a href="http://issuu.com/HUSEPIELE/docs/produselacomanda?mode=embed&amp;layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml&amp;showFlipBtn=true" target="_blank">Open publication</a> - Free <a href="http://issuu.com" target="_blank">publishing</a> - <a href="http://issuu.com/search?q=smartphone" target="_blank">More smartphone</a></div></div>
                            in IE crashes but in mozzila works fine, can anyone help me please?
                            Last edited by acoder; May 13 '09, 05:57 PM. Reason: Added [code] tags

                            Comment

                            • acoder
                              Recognized Expert MVP
                              • Nov 2006
                              • 16032

                              #15
                              There doesn't seem to be any JavaScript in your code. If it's purely an HTML problem, post your question in the HTML forum.

                              Comment

                              Working...