473,809 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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 10596
acoder
16,027 Recognized Expert Moderator MVP
Welcome to The Scripts

Please post your code so we can see what the problem is.
Feb 2 '07 #2
senaka
23 New Member
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 New Member
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 New Member
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 New Member
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
menakasrinivasagam
3 New Member
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]
Feb 3 '07 #7
dmjpro
2,476 Top Contributor
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......... ....
Feb 3 '07 #8
kthxbai2u
2 New Member
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 Recognized Expert Moderator MVP
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

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

Similar topics

2
1471
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 Firefox. I'd appreciate it if someone could help me modify the script so that it would also work with Firefox. The scrolling news can be seen on the page at: http://www.shtetlinks.jewishgen.org/WielkieOczy/
3
2030
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"; xmlDoc.load("xml/names.xml"); nodes = xmlDoc.documentElement.childNodes span_html = '<p>'
6
1999
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 between the two menus gets bigger. What is the cause of this? Thanks CODE:
4
6321
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 href=\"fadfaf\">anchor</a>blalbababa</span>"
11
1774
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 Explorer my response time is sometimes 50 times slower than using Mozilla. I know I haven't given you much to go by, but I'm not looking for an answer so much as an approach to debugging the problem. For example, does anyone here know of a good...
4
1837
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 fine. A box (defined by a css layer) is supposed to pop out to the right when the corresponding box on the far left is moused over. The first function defines a layer id to the next function which pops out the box. After debugging in Venkman, it...
1
3155
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 Explorer. It gives the lenth but failing to read the arguments(Shown in bold). It gives the alert Internet Explorer 4 for IE and Netscape 5 for Mozilla firefox for the alert in line 4. Please Suggest as soon as possible how I can read the values of the...
1
1462
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 method that is used in Javascript ...Please some one correct it so it works fine with Mozilla as well . I am waiting for the reply function makeRequest(url, parameters) { http_request = false; if (window.XMLHttpRequest) { //...
3
1669
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 could be the reason??
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.