How can I validate optional HTML closing tags and missing /'s?
Are there any freely available tools that would check for things like a missing </p> or <br> (instead of <br />)? Thanks! ...
Are there any freely available tools that would check for things like a missing </p> or <br> (instead of <br />)? Thanks! ...
If I have a some javascript in an anchor's href attribute: <a href="javascript:alert('hello!')"> Is there a way I can get a reference to the DOM element that was clicked when the script executes? I mean, I know I could do <a href="javascript:alert('hello from '+document.getElementById('thisAnchor'))" id="thisAnchor"> But I was ho...
Is it possible to remove the dotted line surrounding a selected item in a select element? I have tried to add the outline property in CSS but it did not work, at least not in FF. <style> select { outline:none; } </style> ...
Hi All, I'm using the DataContractSerializer to convert and object returned from a WCF call to xml. The client would like to see that xml string in a webpage. If I output the string directly to a label, the browser strips out the angle brackets obviously. My question is how can I do something similar to StackOverflow? Are they doing a ...
I am using the following code to countdown before enabling a button. <script type="text/javascript"> $.fn.timedDisable = function(time) { if (time == null) { time = 5000; } return $(this).each(function() { $(this).attr('disabled', 'disabled'); var disabledElem = $(this); setTimeout(function() { ...
Hi can I make a string inside a textarea to wrap on multiple lines? (to avoid the horizontal scrollbar) Note that I have a very long string without any spaces (a encoded text), and css word-wrap properties don't seem to work on it... ...
Is there a way to comment multiple lines... which already have some comments in them? i.e. <html> <!-- Multi-line comment begin <head> <!-- This script does abcxyz --> <script>...</script> </head> <body> Hello world! </body> Multi-line comment end --> </html> It seems that even SO's syntax hilighting won't accept ...
I'm trying to create a basic navigation and I'd like to have a horizontal list with a vertical items list: Header 1 Header 2 Header 3 -Sub 1 -Sub 1 -Sub 1 -Sub 2 -Sub 2 -Sub 2 -Sub 3 -Sub 3 -Sub 3 I'm shooting for this markup, or something similar: <ul> <li><strong>Header 1</strong> ...
Hi! I'm just looking for an answer on the net but I haven't reached any one. I'm playing with google's api translation and I have a problem with JS. In fact my code is 100% ok except one operation. My problem is that the translation is not given at the time. After js sends the information to google it doesn't wait until the translation...
This site doesn't work properly in IE7: http://www.remleehospitalfoundation.org It worked fine in Chrome and IE8 supposedly. This isn't my site. HTML consists of standard relative links: <a href="/contact">Contact</a> In IE 7's status bar, the above link appears as: http://./contact Why is IE7 the only browser affected, and how ...
Hello. I know its a not a new concept that my site is perfect on FF,Safari and Chrome but jacked up on IE8. That being said and cutting to the chase. This is the home page that I am working on for a social network for people with CysticFibrosis. http://www.cysticlife.org/Home.php If you can, look at it in FF,Safari and Chrome, and the...
I have this code: $reader = new DOMDocument(); $reader->loadHTML($shell); $xpath = new DomXPath($reader); $xpath->registerNamespace('html','http://www.w3.org/1999/xhtml'); $res = $xpath->query('descendant-or-self::*[contains(@class,"content")]'); print_r($res); $shell is just a variable containing the following html code: <html xmln...
I am having an issue with collapsing divs in CSS! But not the normal issue. That would be too easy. I have a left floating div which contains two left floated divs. The first of the left floated divs contains text. If the second inner floated div's style is empty, everything works fine and the outer div encompasses the text and both inne...
I want a Struts2 action to be performed on click of a html link in a html page. My first question is whether is it possible to perform a Struts2 action in a html page(not JSP)? If yes, take a look at my code below: home.html href="home.action" struts.xml action name="home" class="com.struts.action.HomeAction" result nam...
There's quite a few questions on Stack Overflow about id vs class but these questions are nearly always in relation to CSS - and the generally accepted answer is to use classes to style a particular set of elements, and ids for specific instances. Makes sense, fair enough. I'm finding however that as I do more and more Javascript/jQuer...
I need to move all bookmarks inside the html page bit down. Is that doable? something like that <div class="anchordown" style="position:relative; top:-80px;"> <a name="learn">Learn bookmark</a> </div> but it doesn't work for me. The actual bookmark doesn't move at all EDIT I want to have the inside bookmark #learn to be displayed...
We need bigger text inputs for our forms, so easy enough, we just set the height on them... But Firefox 3.5 then keeps the text at the top. How do I vertically center it? On Firefox 3.6, IE8, Chrome and Safari, the text is vertically centered as I hoped. <form> <input type="text" style="height: 50px"/> </form> How do I make the text...
I'm using CSS3 animations within PhoneGap, an iPhone web-based SDK that enables you to create native apps using the web technology stack. The particular CSS animation I have below works in Safari, Chrome, and even the iPhone simulator, but for the life of me #image_cat1, #image_cat2, and #image_cat3 are not being displayed on the actual...
What approach could someone suggest to save the current page as an HTML file to the server? In this case, also note that security is not an issue. I have spent endless hours searching around for this, and have not found a single thing. Your help is much appreciated, thank you! Edit Thank you all for your help, it was very much apprec...
i have the following form <form action="#!/search/" method="get" style="display:inline;" id="hdr_q"> <table cellpadding="0" cellspacing="0"> <tr><td><input id="f_peoples" name="q" class="sb_box" size="40" autocomplete="off"> <input type="hidden" value="0" name="o"> <input type="hidden" value="all" name="st"> </td><...