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...
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...
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;
...
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...
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...
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 ...
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...
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>
...
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>
...
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.
...
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.
...
In html made by fckeditor i find the following character:
What is this character?
...
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...
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.
...
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...
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...
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...
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...
How can I make the "browse" button display in another language?
...
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.
...