HTML - Quest For Browser Independent Code
Coding with HTML + JavaScript can be daunting, especially when you find out some functions/variables available in one browser, are implemented differently in other browsers.
Is there a way to make the task of developing independent code easier in terms of JavaScripting? Similar TutorialsHello, I am a student and working on a simple first project. All I'm doing right now is writing my code in text edit, saving it as "test.html", and dragging and dropping the file onto Safari/Firefox to view my code. Everything works when I'm at my college's computer lab, but when I'm on my own mac notebook, the files load in the browser as my code. I've tried a variety of samples and checked my preferences, but I can't figure out what I'm doing wrong. Sample code I'm using - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Simple Link Example 2</TITLE> </HEAD> <BODY> <H1 ALIGN="CENTER">Creating Relative Reference Links</H> <HR> <P>Open <A HREF="practice1.html">Practice 1</A>.</P> <P> Open <A HREF="practice2.html">Practice 2</A>.</P> <P>Open <A HREF="practice3.html" TARGET="_blank"> Practice 3</A> in a new window.</P> </BODY> </HTML> Please help! I'm trying to wrap up an assignment and have been banging my head against the wall all night. Thanks! cordelia hi. i would really appreciate some help here. i am totally new to designing pages but i managed to make this www.cilipi.bravehost.com . Now, what is the problem? I display it in Mozilla and it works great, no mistakes at all but after loading it in Ie everything is messed up, i get activex codes, bcs of my flash...etc etc i really like this site and i beg you, i really beg some guru to check my source code, i am ready to send him a whole page...everything needed to help me out. i am really desperate, having so much fine making this and uploading it...now it looks bad in ie. please, could someone help me? THANK YOU! regards from croatia Hello! I would really like to have the meta tags code which allows one to put a logo or icon in the browser window, right before the URL. Thanks so much! Kathy Hello, I went to make a change on someones website. I was using a different program than I normally do. Anyway... for some reason a bunch of the code isn't showing up. Here's the website: https://www.villagetoyshop.com/ I normally just edit the html, but tried using komposer. I edited the code in komposer, but when I uploaded it a bunch of stuff isn't showing up. I can see it when I view source, but can't figure out why it doesn't appear in the browser. The code that isn't showing up is at the bottom and has the hours, contact info, etc... I didn't make the site and was just trying to help, but am not sure what to do. I have some basic web design knowledge, but am not an expert. Any help would be greatly appreciated. Kevin P.S. I just realized there is a page on the server entitled index2.html (http://www.villagetoyshop.com/index2.html). The index.html is suppose to look similar to that. Hi. Is there any code out there that will detect whether a visitor to a website is using a mobilephone? If they are, I want the code to automatically send them to my mobile version of my site. I'm guessing it maybe somekind of resolution detection??? The BBC website can do this. Does anybody know how? Leroy Who can answer me the question above? Thanks in advance! I have been considering using some DHTML to make an expandable/collapsable block of text.. see:: http://kilbad.com/DEVELOPMENT/expand.php This page does validate at the w3c, when set to strict, as xhtml strict (I think the code has transitional right now), which I am happy about. However, what percentage of browsers will support this feature? I don't know much about dhtml. How do you xhtml purists feel about this code in general?? Thank you so much in advance!! Brendan "Use the below code example. <input type=""button"" value=""Close this window"" onclick=""self.close()"">" Hi, When I open an HTML with my browser to see how it looks, instead of what the code should look like showing showing up, the code itself shows up. Sorry if this is a stupid question, I'm quite new to HTML. I use Dreamweaver CS5. This is the code I used: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html> I have several links on my site, all in the form of <a href="http://www.mywebsite.com">mywebsite</a> How do I need to change it such that a new instance of the browser is used in which the linked site is displayed. Hi, I work on a Mac, and have Safari, Internet Explorer 5 and Firefox. 1. What do you think I should be building my sites to? What do you use? 2. Also why do some sites work in all browsers? CSS hacks? Microsoft are no longer letting you download Internet Explorer for the Mac, from microsoft.com. Therefore all new mac users from February last year will not be using Explorer. Please help! Thankyou Tom Hey guys should I be worried about coding my site for the IE 5.x series or should I just concentrate on IE6 and IE7 does anyone know a browser that will only parse and evaluate valid HTML/XHTML based on what the doctype is and ignore invalid HTML/XHTML or generate errors. So if I had a XHTML doctype and my code was: Code: this is a XHTML document <br> this should be a new line I don't want the <br> to parse because I want something to trigger that is it not a valid XHTML tag since it is not closed. Any browser won't really care and just show the new line. I would have to validate it on the w3c website to find my error. So I want a browser that would give me these results based on my example code: Code: this is a XHTML documentthis should be a new line and then some sort of error saying "<br>" on line x is invalid. I was curious to find out, where can i find a cool looking shoutbox code where i can put on my message forum? Looking for some neat, and cozy with some advance options. Meaning, i would like to change the colors to match with my forum and stuff. Thanks. Hello! I have a blog on blogger and i want to make a c++ tutorial.. But every time i type "<iostream>" on post, when i see it, it is only "iostream". How can i make a code like the "[code]" from BBcode to cancel the compiling from HTML? Thanx! Hey, I've just put my website back online, but I've got a lil' problem. My website shows everything perfectly when using Internet Explorer, but when openend with Firefox and others, most of the site doesn't appear as it should, pictures missing etc, is there anything I can do about this?, If so pretty please tell me! Greets, Brenda Hi - can someone please have a look at this site for me from a PC (pref IE8). My site is pretty basic in respect to xhtml (although I have just converted it into a WP site) but it uses a little jquery - however, all was fine, FF/Safari/Opera - no problem but in IE8 a lot of the styles seemed to have gone a bit mental - I am praying that my parallels on my Mac is being odd but perhaps I need to make some CSS fixes??? Unfortunately I cannot get to a PC in the immediate time... Here is the link ... Thanks Y (also here is a screen shot of the what my mac is showing - the correct styles ) I created a simple table with 2 rows 2 columns. I minimize the browser window into smallest window and I noticed that It screwing up my tables and the contents of it. They get squeezed as I resize the IE windows. How can I make the tables and its contents not to resize with the windows? Please help. Hello to everyone, I don't know if this is the appropriate section for sucn an answer...but I didn't know where to put. My question is this: Can anyone provide to me a way so that I will check what browser the user has and load a page according to that information? I want to have Firefox, Opera and Internet Explorer checked. Could someoine help me please? Thanks. Hi Guys, l came after a long time with one query... I do have a page it have top header, left images vertically like 1,2,3 top to down and right content. Wat I want:- images should scroll down with the browser scroll bar but the content & header shouldn't scroll. please help me out..... Thanks JB |