By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,831 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,831 IT Pros & Developers. It's quick & easy.

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

P: 3
my coding is working in mozilla firefox.but not working in Internet explorer.plz give suggestion to rectify this problem
Feb 2 '07 #1
Share this Question
Share on Google+
14 Replies

acoder
Expert Mod 15k+
P: 16,027
Welcome to The Scripts

Please post your code so we can see what the problem is.
Feb 2 '07 #2

P: 23
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.
Feb 2 '07 #3

chunk1978
100+
P: 224
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)...
Feb 2 '07 #4

P: 23
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?
Feb 2 '07 #5

chunk1978
100+
P: 224
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
Feb 3 '07 #6

P: 3
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="datacontainer1" style="position:absolute;left:0px;top:1px;width:10 0px" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">

</div>


<script type="text/javascript" src="ajaxJsScroll.js">
</script>
<script language="javascript" type="text/javascript">


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

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

function initializeScroller()
{
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer1");
dataobj.style.top="5px";
setTimeout("getdataheight()", initialdelay);
}

function getdataheight()
{
thelength=dataobj.offsetHeight;
if (thelength==0)
{
setTimeout("getdataheight()",10);
}
else
{
scrollDiv();
}
}

function scrollDiv()
{
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px";
if (parseInt(dataobj.style.top)<thelength*(-1))
{
dataobj.style.top="5px";
}
setTimeout("scrollDiv()",100);
}

if (window.addEventListener)
{
window.addEventListener("load", initializeScroller, false);
}
else if (window.attachEvent)
{
window.attachEvent("onload", initializeScroller);
}
else
{
window.onload=initializeScroller;
}

showHint('dummy');
</script>[/HTML]
Feb 3 '07 #7

dmjpro
100+
P: 2,476
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.description);
}
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.top = "5px" this will generate number format exception...

thannnnnnnakkkkkkkkkkksssss ....plz send me ur reply.
i am online.............
Feb 3 '07 #8

P: 2
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.
Mar 11 '07 #9

acoder
Expert Mod 15k+
P: 16,027
IE6 had many bugs one of which was the PNG transparency bug which you are experiencing. This has been fixed in IE7.
Mar 12 '07 #10

P: 2
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/
Mar 22 '07 #11

P: 1
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.
Mar 22 '07 #12

acoder
Expert Mod 15k+
P: 16,027
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.
Mar 23 '07 #13

P: 2
I am having the same problem with this issuu code:
Expand|Select|Wrap|Line Numbers
  1. <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?
May 13 '09 #14

acoder
Expert Mod 15k+
P: 16,027
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.
May 13 '09 #15

Post your reply

Sign in to post your reply or Sign up for a free account.