I have a form field/checkbox and am unable to pass the boolean value even though it is selected.
<input type="checkbox" name="IsContactValid"
id=" IsContactValid"
<cfif
ContactView.GetIsContactValid()>CHECKED
</cfif>>
that will be transmitted to ...
Hi,
I am not sure if is it possible or not but I have to change some classes of <li> tag which I am getting from ascx file.Now the condition which li to change or no is based on html that I am producing with the help of xsl(written in code behind).
I know i can do this with the help of Javascript. But what if I don't wanna use javascrip...
I noticed that many websites, even Google and some banking sites, have poorly-written HTML with no quotes around the values of attributes, or using characters such as ampersands not escaped correctly in links. In other words, many use markup that would not validate.
I am curious about their reasons. HTML has simple rules and it is just ...
I have a form that checks to see if another window is opened. If so, it copies the values of two input fields to existing readonly input fields and hides two editable textareas by setting the element.style.display = "none". If the other window is not opened, the readonly input fields are hidden.
My issue is that when I set the textare...
Any reason why I am getting extra spacing underneath each input on my contact form?
It only happens in ie6 and ie7
http://nhbs.bythepixel.com/contact.html
...
I believe something on this code chunk is not properly coded making it incompatible on XHTML 1.0 Transitional.
The code snippet collapses div and then on click they will expand.
Can somebody see what could be wrong?
<script type="text/javascript">
function toggle(div){
el = document.getElementById(div);
if (el.style.display == 'n...
When I create a link to an image I'd like for a download dialog box to open when clicking it instead of the user going to a page containing the image. Is this possible? Thanks.
...
What is the difference between class and id in jQuery? For example:
<span class="lalal"></span>
and
<span id="lalal"></span>
Because one works good with jQuery and another not really.
Thanks.
...
I have a page which has a drop list inside a form. The drop list contains 'Categories' of ads.
Depending on the value chosen in the drop list, I use javascript to show/hide DIVS on the page, which all contain different form inputs for the user to fill in.
All this still inside the form!
Now, when the user has filled in all form inputs ...
I'm creating a web application that is optimized for the iPhone (but also should work on all mobile devices). I have a form field that includes one standard text input and then need a radio button group with two options (Inbound/Outbound). The radio button makes the most sense logically since one option should be selected by default and ...
What are the dangers of inserting <li>...</li> into a page without enclosing the item(s) in a <ul> block? For example:
<div style="border:solid 1px red;">
<li>Item</li>
<li>Another Item</li>
<li>Yet Another Item</li>
</div>
Validation is the least of my concerns, I'm wondering what this might break in browsers for the end ...
Hi!
I already searched a long time for a good solution, but I can't find anything that fits my needs...
I want to parse an HTML file and display its content in a table. Everything is almost like writing yet another RSS feed reader. Doing that by parsing valid XML files is simple and straight forward using NSXMLParser or TouchXML or lib...
I'm trying to create an updating clock in Javascript. Everything is working correctly as I step through the debugger, except that it's not actually updating the span. Any ideas why?
<script type="text/javascript">
// The following line of code is in a setInterval()
// time is set correctly, according to my debugger
document.getElement...
I'm trying to write a Playlist for Flash Player. So I have problem with Flash & firefox. The playlist is HTML list where I have file urls for MP3. When I change from firebug object value the firefox doesn't react - disapears.
Upd: I have object where I have parameters, when I change for example parameter where is written file path, the...
Hi All,
I have a div #someDiv, can I create a new element and make #someDiv be its child? Basically I want to wrap a new element aound #someDiv. How do I do this?
$("#someDiv").appendTo($("<div id='newParent'></div>"));
// The intent is to move #someDiv into the new container
// The new container may or may not be in the same
// posi...
Hi,
I am adding HTML input controls on the page dynamically via a "add text box" button but after post back eventually they are being washed away. Is there an easy and good practice which can help me keep the controls and their values after page post back.
Thanks.
Edit :
I am using Javascript to create dynamic controls on the page
I...
I have a bunch of image thumbnails I'm displaying in a web page. All of the images are 256 pixels wide, and I'm shrinking them 50% with <img width="128px" ...>
Most images have a 4x3 ratio, so they grid quite nicely over several rows.
However, some images are very tall (e.g. 256x1200). I would like to specify a maximum height for the...
Hi,
After some Google search, I did not find anything fill my need. I want to save the current web page just as what it is. I mean, many web pages has Javascript executed and CSS changed, so after some user interactive, the web page may be different from the one when it is firstly loaded into browser. And I want to save the current web...
This may be a dumb noob question, but I can't figure out how to make my text area use a monospaced font.
...
According to (somewhat official) this guide, I can make a radio button's label make the selection for that radio button too. They say,
Always use labels for each checkbox and radio button. They associate text with a specific option and provide a larger clickable region.
Unfortunately, I have not been able to get this functionality...