SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Cross browserJavascript
-
Oct 20, 2001, 13:14 #1
- Join Date
- Oct 2001
- Location
- Whistler BC originally from Guelph Ontario
- Posts
- 2,175
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Cross browserJavascript
This topic actually covers both design issues and javascript but a much stronger javascript implementation.
I realize a lot fo questions are always asked about cross-browser web programming however how do 'you' fix that. I am not asking for details but more for generalistics. Especially with the new browsers. For example do you have two or three designs. 1 for the old and hopefully someday DEAD nn4.7, early ie and the new ones. Or do you try to integrate a tonne of cross browser code??Maelstrom Personal - Apparition Visions
Development - PhP || Mysql || Zend || Devshed
Unix - FreeBSD || FreeBsdForums || Man Pages
They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.
-
Oct 21, 2001, 11:28 #2
- Join Date
- Oct 2001
- Location
- Dallas/Ft. Worth
- Posts
- 101
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Re: Cross browser Javascript
It's going to be your decision whether you put all of crossbrowser code in one function or you split it. My suggestion is that if you don't have more than couple of places where you worry about IE and NS, write it in the same place. Otherwise, put all IE functions in one file and all NS functions in other (if you have more than these two browsers to worry, put the rest in other files), in each of your web presentation files check for the browser and accordingly use "document.write" statement to include the appropriate file in your code. This is the cleanest solution and gives you ability to manage your code nicely.
Also, NS4.x is still around and only if you or your company doesn't wish to comply with this browser, you should not allow them to see your pages. At least give them option to view textual pages or warn of problems that the page may not load correctly.
Good luck!
-
Oct 21, 2001, 12:20 #3
- Join Date
- Oct 2001
- Location
- Whistler BC originally from Guelph Ontario
- Posts
- 2,175
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Re: Re: Cross browser Javascript
Actually I am just creating this site for a learning experience. But I want it to be as professional as possible which means creating it for 640 by 480 and nn4.7
It is easy to program for higher resolutions and the new browsers.Maelstrom Personal - Apparition Visions
Development - PhP || Mysql || Zend || Devshed
Unix - FreeBSD || FreeBsdForums || Man Pages
They made me a sitepoint Mentor - Feel free to PM me or Email me and I will see if I can help.
Bookmarks