473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Feb 2 '07 #1
14 10551
acoder
16,027 Expert Mod 8TB
Welcome to The Scripts

Please post your code so we can see what the problem is.
Feb 2 '07 #2
senaka
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
224 100+
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
senaka
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
224 100+
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
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
2,476 2GB
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
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
16,027 Expert Mod 8TB
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
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
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
16,027 Expert Mod 8TB
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
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
16,027 Expert Mod 8TB
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

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

Similar topics

2
by: Peregrine Maitland | last post by:
I have scrolling news that is based on JavaScript on the site I maintain. The script works in Internet Explorer 6.x, but not Firefox 1.0. It's not clear to me why the script doesn't work with...
3
by: mr_burns | last post by:
hi, i am using the following code which works well in internet explorer but not in firefox (and perhaps others too): var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false";...
6
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap...
4
by: Sergio del Amo | last post by:
i, I have the next html page <html> <head> <script> <!-- function insertcode() { var code ="<p> blablabal babala babababab</p><h1>here comes header</h1><span>fadfafa<a...
11
by: dhplank | last post by:
Hello everyone, I've developed a calendar program in javascript, and up until now I've done most of my testing using Mozilla and Firefox. Everything works fine, but when I try to use Internet...
4
by: jsreblev | last post by:
Hi Javascript gurus: I have tried several things, using several Javascript books, but can't get this to work in Netscape (latest version) and Firefox (latest v.). It works in MIE and Opera...
1
by: ajaysoniji | last post by:
Hi, I am using this code to read the option values from a select option. I am getting the reference of that select option in arg1. Its working fine with mozilla firefox but not with Internet...
1
by: hamidawais | last post by:
Hi All I have a simple Ajax example that populates a combo box from the DB . The example is working fine on Internet explorer but it gives no result on Mozilla FireFox Given below is the...
3
by: localhost1 | last post by:
i have a serious probem in javascript form validation. i have written a validation code in javascript. it working in internet explorer 7 but the same code is not working in mozilla firefox. what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.