html

How to focus an HTML checkbox in IE, causing it to gain highlight

I'm having some trouble programmatically causing an HTML checkbox object to become highlighted after gaining focus. Here is a simple example of the code I'm using: <script type="text/javascript"> function doIt(){ document.getElementById("theCheckbox").focus(); } </script> <input type="button" onClick="doIt()" value="Pus...

jQuery slideUp bug?

I'm messing around with some jQuery stuff for a mockup and noticed some odd behavior. I'm hoping someone here can shed some light on it. This is all mockup / test code, so please excuse the sloppyness. So I have a table that I'm using in conjunction with the jQuery datatable plugin: http://www.datatables.net/ My table markup is as...

Open In New Window Link In Iframe

I have an iframe on a page and there is a link I would like to open in a new physical window. When I use target="_blank" it just reloads the page in iframe with the new one. I also tried this javascript: $(document).ready(function() { $('a[target=_blank]').click(function() { window.open(this.href); return false; ...

Equal sized table cells to fill entire width of holding table.

Hey guys, I guess the title sort of explains what I am trying to achieve; Is there a way using html/css (with relative sizing) to make a row of cells stretch the entire width of the table within which it is contained? The cells should be equal widths and the outer table size is also dynamic Currently if I don't specify a fixed size th...

Javascript (MooTools) window.addEvent('domready', function() { problems

Hi there, My problem can be readily seen on the following to pages: The correct version -> http://appstorereviewer.com/ The incorrect version -> http://appstorereviewer.com/page/2 As far as I can tell both pages have the same javascript in the header. What would cause the main page to work properly and page/2 not to initialize? Pag...

How to modify STYLE attribute of element with known ID using JQuery

Hello I got 3 buttons-links triggering some javascript code, with indication if certain button is selected, selected button got style attribute set to "btn brown selected" while other buttons got this attribute set to "btn brown" only one button can be selected at one time, each of buttons got different unique id, my question is ...

Regex to match the first ending HTMl tag

I am trying to write a regex which match the first ending form tag. <form.*name="loginForm".*>[^~]*</form> The above regex matches till the second from ends i.e till line 8. but I want a regex that matches the immediate ending from tag in the below example it should match line 5. <html> <body> <form method = "post" name="loginFo...

XPath: "Exclude" tag in "InnerHtml" (<a href="">InnerHtml<span>excludeme</span></a>

Hi, I am using XPath to query HTML sites, which works pretty good so far, but now I hit a (brick)wall and can't find a solution :-) The html looks like this: <ul> <li><a href="">Text1<span>AnotherText1</span></a></li> <li><a href="">Text2<span>AnotherText2</span></a></li> <li><a href="">Text3<span>AnotherText3</span></a></li> </ul> ...

Checkbox form validation jQuery

I have a form where a user can select a list of events, each event has the start time as a classname. When the form is submitted, I need to check if the user has selected more than one event with the same starttime. e.g. In Today if the user selected Event A and Event C, it would trigger the validation message. <form> <h3>Today</h3> ...

freeware HTML creating tools for Linux

I have linux centos 5.3. I am in progress to create a website but i am not aware of writing HTML. I need some tool to convert text to html. On google I have found many tools with can help in creating html pages but all are for windows. Can anyone please suggest me any similar tool for linux system. ...

Guidelines for designing HTML for easy CSS customization

I am doing a Saas project, and we want each customer to be able to upload a css page for "his" web site. (Although actually, all of the customer's sites are hosted by us using virtual hosting). What are good guidelines when designing the html of a page so that css can be applied a posteriori. ...

What is &#13; ?

In html made by fckeditor i find the following character: &#13; What is this character? ...

HTML editor with fixed (uneditable) regions and ability to add/remove and reorder editable regions

Before I start to develop an online WYSIWYG HTML editing solution which can take templates that have locked regions, regions where sections of predefined HTML can be added, removed and re-ordered (much like DreamWeaver template functionality), the editable regions will be edited with an out of the box solution such as the CK Editor or th...

How can I click a link using it's HTML with Watir

I have a link that looks like this: <a href="#" onclick="new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227', {asynchronous:true, evalScripts:true}); return false;">add a term</a> I would like to click it using contract_id=227. ...

Line Breaks in HTML

What is considered "better" practice: <div class="clr"></div> (Where clr is clear:both) or just simply: <BR CLEAR:BOTH /> I'm really confused since I was once told never to use BR but then BR is designed to be what the div class is? Question: Would it be wrong to just use <BR /> when you want to clear or should I use the div? Than...

prevent Scroll "bubbling" from element to window

I have a modal box window (pop-up) that contains an iframe, and inside that iframe there's a div that is scrollable. When I scroll the iframe's inner DIV, and it has reached its top or bottom limit, the window of the browser itself starts to scroll. this is an unwanted behavior. I've tried something like this, which kills the main win...

IE 7 and 8 SSL download from simple HTML page not working, tomcat server

Hello, I have a simple HTML file which has one link to a file kept for download. The site uses SSL (self signed cert). When I click on the file to be downloaded in FF or Chrome, it works fine and saves the file on to disk. Here is the code- <html><body> download from <a href="hello.tar.gz">here</a></body></html> When I open the same...

Why doesn't this drop down menu work in IE?

I have a drop down menu which I found a tutorial for. In Firefox and Opera the drop down menu works fine. But in Internet Explorer it doesn't work. The sub menues are misaligned. They aren't placed under their parent item but a bit more to the right. Why doesn't it work in IE? Is there a mistake in the JavaScript code which should make...

html upload: localize browse button

How can I make the "browse" button display in another language? ...

html - table row like a link.

Hello, i can't set my table row as link to something. I can use only css and html. I tried differenet things from div in row to something another, but still can't make it works. ...