473,832 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1637
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.c omwrote:
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2610
by: CJM | last post by:
I'm developing a site for a charity which I am aiming to make standards-compliant, accessible and cross-browser compatible. I'm doing OK so far and have the workings of a respectable site, but I still have a few little niggly problems: Site: http://www.aif-advocacy.org.uk/index.asp CSS: http://www.aif-advocacy.org.uk/aif.css
16
2882
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my development. I have build some cross browser debuggers so my users can send me verbose debug dumps. I have some success but have come to a roadblock with the basic underlying JavaScript models. The only way to get a complete stack in IE is to use the...
5
1549
by: Ajay Kumar | last post by:
I have developed an asp.net application in 2.0 . I need this web page to have same look and feel in all the browser like IE, mozila , firefox etc. Please suggest me how to proceed.
7
1944
by: dejavue82 | last post by:
Dear Asp.net users, I have seen some people comment that their asp.net websites render differently with various web browsers. Are they doing somthing wrong? In particilar, 1) I am wondering how cross-browser compatible the client code is the asp.net 2.0 generates.
15
2334
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
0
2521
by: toeffetommy | last post by:
Hello, I need a piece of functionality developed for our Website and I need some technical advice on how get there. Essentially, what I want to develop is a browser-within-browser functionality where the ‘mini-browser’ has similar functionality to a normal browser. Let me explain: Firstly, our website interface will open up in a popup window. All the normal browser toolbars and buttons have been removed from the popup window. It’s...
6
2535
by: frankenstein | last post by:
I've not seen any real sollutions to this yet. I found something similar on this forum but the posted sollutions didn't work. I would like to make a drag to scroll for my blog, using JS. So far I have written the following (for use in Firefox): document.onmousedown = function(){ var e = arguments||event; var x = e.pageX; var y = e.pageY;
13
3393
by: Jeff | last post by:
We have an intranet website that currently uses ActiveX but we need to make it cross-browser compatible and also get around the problems we've been having with making it work with IE7 and Vista. We decided to write an external application to do the work from the client side. We are not sure how the web page can call the app though with parameters. For example, we want to do similar to what the MSDN Library and Audible are doing with...
3
4234
by: spoonybard | last post by:
Hi Everyone, I have a .Net 2.0 C# web application that has important information stored in Sessions that needs to be deleted when the user closes the browser. I know of three ways a user can close their browser: Presses "X" button in top right of browser Presses Alt-F4 From browser menu selects File -> Close With javascript I am able to detect that the user presses the X button. Since Javascript is client side and ASP.Net is server...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10498
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
10212
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...
0
9319
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7753
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
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4421
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
2
3970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.