No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
Using [ICODE]<script language="JavaScript" src="javascript.js" type="text/javascript"/>[/ICODE] is not valid (as per the W3C) for 2 reasons. The first being that the script tag is a content element and must use a [ICODE]</script> [/ICODE] to close the elements envelope. The second, if the script tag was a leaf (contentless) element, there must …
I have noticed that there is no longer a help page in the FAQ on how to use [B][TAGS][/B] in the editor. Can we please get a help button? Maybe after the check spelling button? [U]It would be helpful if the help included best-practices and examples[/U] :)
Hi All, This is the parent issue that led to the post [B]Need help with getDOCTYPE() function[/B] ([url]http://www.daniweb.com/forums/thread196837.html[/url]) [B]USING THE BODY METHOD:[/B] The following code will properly get the viewable window area if no DOCTYPE is specified. [icode]document.getElementsByTagName("body")[0].clientWidth//Height[/icode] [B]OR[/B] [icode]document.body.clientWidth//Height[/icode] If DOCTYPE is XHTML ANY* the above code reports only …
Hello, First let me start with the fact that JavaScript is a [I]human[/I] language designed to give instructions to an application. As such, it should be used in a manner that is easy for [I]people[/I] to read. Proper formatting is critical to allowing [I]people[/I] to understand the instructions so that …
Hello, First, I want to say that you can type [ and ] on the iPhone though I did see that people where having problems typing brackets in some terminal applications. Second, square brackets are a core component in JavaScript, despite the fact that I was able to create a …
Hello, OK... at first glance, the problem is that the calculate function is only working under 2 conditions, the first [icode]document.layers[/icode] for old Netscape, and the second [icode]document.all[/icode] for Internet Explorer. I’m not seeing anything in the [icode]document.all[/icode] section that appears to be IE specific. Try changeing the [icode] if …
Hello, wasn't sure if you where aware that [icode]filters.blendTrans[/icode] only works in IE... the better way to handle this for cross-browser support is by using [icode]DOM .opacity[/icode] If I can find some time over the next few days i will put a sample together for you.
That is a good way to handle it if you are wanting to insert an [icode]<img />[/icode] tag. A faster rendering method would be to place the image tag directly next to the input field like so: [code]<input id="passField" name="passField" type="text" /><img id="passFieldImg" src="blankimg.gif" />[/code] You can then change the …
in javascript it would be done this way if someone would like to translate it to php [code] var a="bob"; var b="joe"; a=[a,b];b=a[0];a=a[1]; [/code] enjoy! :)
Hi All, Without getting into too much history on the why, I came into a situation where I needed to create a function to get various properties of !DOCTYPE so that other functions could adjust to work properly with certain DOCTYPEs (Strict, Transitional, etc.). I have tested the function in …
The End.