469,343 Members | 5,620 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

Browser cross compatible javascript

I use visual studio 2008 and am learning to use javascript. I am
constructing a javascript heavy website and have tried using the
visual studio tools as well as Firebug- an add on for Firefox which I
highly recommend . These tools are a large step up from writing the
code in a text editor and guessing through the use of message boxes
what is going wrong.
(* off topic extra info) QUESTION- Javascript that works perfectly
well in IE sometimes does not function in Firefox- is there a free and
simple tool that enables a coder to plonk in javascript (or a whole
web page) that works in one browser and have spat out some cross
compatible javascript / page code?

* (off topic extra info) Trying to keep a page looking good for
Firefox, IE, Safari is difficult enough as it is- what with
differences in the way browsers interpret something as seemingly
innocuous as the width of a textbox (eventually solved by using
browser specific style changes such as [if IE...]-
Mar 20 '08 #1
3 1481
DanWeaver wrote:
I use visual studio 2008 and am learning to use javascript. I am
constructing a javascript heavy website and have tried using the
visual studio tools as well as Firebug- an add on for Firefox which I
highly recommend . These tools are a large step up from writing the
code in a text editor and guessing through the use of message boxes
what is going wrong.
(* off topic extra info) QUESTION- Javascript that works perfectly
well in IE sometimes does not function in Firefox- is there a free and
simple tool that enables a coder to plonk in javascript (or a whole
web page) that works in one browser and have spat out some cross
compatible javascript / page code?

* (off topic extra info) Trying to keep a page looking good for
Firefox, IE, Safari is difficult enough as it is- what with
differences in the way browsers interpret something as seemingly
innocuous as the width of a textbox (eventually solved by using
browser specific style changes such as [if IE...]-
Unfortunatelly, in my experiece IE with versions < 8, do not follow
standards well. I recommend that you first get your script to work in
Firefox, and if you have Safari, make it work there too, before you make
the modifications necessary to get it to work in IE.
There are some very good cross browser libraries such as that offered by
Yahoo (http://developer.yahoo.com/yui/)

Good luck

--
intrader
Mar 22 '08 #2
Thanks, Intrader- however, the code (listed earlier in thread) behaves
the same way in firefox....
Any clues?

Agreed re IE- several controls have to be sized differently for IE via
eg

<!--[if IE]>
<style type="text/css">
..t1 {
width: 90px; height:16px; z-index: 1; left: 4; position: absolute;
top: 9px; bottom: 10px;
}
</style>
<![endif]-->

.....but this is off topic (pasted here for future user archive
search.)

Any suggestions re the CSS div issue most welcome,
D

Unfortunatelly, in my experiece IE with versions < 8, do not follow
standards well. I recommend that you first get your script to work in
Firefox, and if you have Safari, make it work there too, before you make
the modifications necessary to get it to work in IE.
There are some very good cross browser libraries such as that offered by
Yahoo (http://developer.yahoo.com/yui/)

Good luck

--
intrader
Mar 25 '08 #3
Many apologies- got confused with which thread I was responding to-
Had asked a question about divs and css in other group- very
frustrating but not javacript- sorry about this
d
On Mar 22, 9:36 pm, intrader <intra...@aol.comwrote:
DanWeaver wrote:
I use visual studio 2008 and am learning to use javascript. I am
constructing a javascript heavy website and have tried using the
visual studio tools as well as Firebug- an add on for Firefox which I
highly recommend . These tools are a large step up from writing the
code in a text editor and guessing through the use of message boxes
what is going wrong.
(* off topic extra info) QUESTION- Javascript that works perfectly
well in IE sometimes does not function in Firefox- is there a free and
simple tool that enables a coder to plonk in javascript (or a whole
web page) that works in one browser and have spat out some cross
compatible javascript / page code?
* (off topic extra info) Trying to keep a page looking good for
Firefox, IE, Safari is difficult enough as it is- what with
differences in the way browsers interpret something as seemingly
innocuous as the width of a textbox (eventually solved by using
browser specific style changes such as [if IE...]-

Unfortunatelly, in my experiece IE with versions < 8, do not follow
standards well. I recommend that you first get your script to work in
Firefox, and if you have Safari, make it work there too, before you make
the modifications necessary to get it to work in IE.
There are some very good cross browser libraries such as that offered by
Yahoo (http://developer.yahoo.com/yui/)

Good luck

--
intrader
Mar 25 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Java script Dude | last post: by
5 posts views Thread by Ajay Kumar | last post: by
7 posts views Thread by dejavue82 | last post: by
15 posts views Thread by CMM | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.