Now one Submit button is the default focused control. but I need to set the default focus to another imagebutton.
Here is the sample image "button"
<img style="vertical-align: top; border-style: none;" src="IconAdd.jpg" id="imbAdd" onclick="javascript:Add();" title="Click to Add" styl...
This is partly related to the age-old unix vs. windows newline LF/CRLF dilemma. I don't love my solution, but I have most of that figured out... (nonetheless any general guidance related to cross-browser newlines appreciated!). FF can send data from html textareas in a way that the newlines are stored in the db consistently with IE (and ...
I have 2 DIV's that I want to be side-by-side under all circumstances. So far I am accomplishing it like this:
<div style="float: left">
<table> ... </table>
</div>
<div style="float: right; overflow: scroll; width: 1000px">
<pre> ... </pre>
</div>
However, I don't like that I have to specify an absolute width in the 2nd div...
When you type something like "red:Hi:" it will type "Hi" in red.
The following script does not work and I do not know why, (The one who made the sorting PHP function is Graphain, thanks again!)
<?php
function getit($raw)
{
# If the value was posted
$raw = isset($raw) ? $raw : "";
# Split it based on ':'
$parsed = explode(':...
Hi All,
I want to use min-width and width for a class. Is that possible?
Can I use the following code :
.container
{
min-width:1000px;
width:100%;
height:100%;
overflow:hidden;
}
Thanks
...
My html anchor is as follows.
<a name="template-8"/>
<h4 class="template" id="template-8">A title</h4>
As far as I know the browser should skip to the element with a matching name or id attribute.
When I type in the url http://my.site.com/templates#template-8 safari jumps down the page as expected.
However when linking as below the...
I have a table with two rows. The first row contains an input and the second row contains a select. Even though I have set their widths to be 100%, the select box is a few pixels smaller than the input. Any ideas why is this so and how can I set their widths to be equal to each other and as big as possible (e.g. %100) in a way that works...
By default selects have smaller heights compared to inputs (text fields). Is there a best-practice way to set the height of selects and inputs with the same font-size equal to each other?
...
How Do I disable the copy paste feature in my webpage. To be precise, I don't want my users to copy any information from my website and use them for personal purposes. The previous question on the same topic doesn't give enough explanation. The onselect and ondrag aren't working. Please help.
...
Hi,
I'm trying to create a breezebrowser template (used for generating image galleries locally, outputs HTML). I've taken the HTML from my wordpress template and managed to generate the following gallery http://uploads.peasyphotos.com/20100607t-candids/gallery/ but each image goes on a new line and i don't know why, i presume it's in t...
Hi, I'm using the Flowplayer.org Tooltips and I'd like it to disappear after 4 seconds.
Here's the code for it, can anyone help?
$("#search").tooltip({ offset: [45, 170], effect: 'slide' });
Thanks :)
...
I have a basic html form that adds some data to the page using PHP. I want to make this form field a "Price" field. My html is:
<input class="bids" name="comment" id="comment" tabindex="4" />
How can I fix this field so that users can't enter random letters, dollar signs, dashes, or other weird formats. I want the output to be wh...
How would I intercept all pages and images on my website to add the header on my website?
For example, if somebody went to "www.bla.com/submit.png" it would include my header, and the image.
...
Can someone teach me or give me a link for my problem?
I wanted to cutomize my form "file" --> for uploading.
How can I customize it?
.classfile {
css codes....
}
<input type="file" name="name" class="classfile" />
If I do that way the text box and button of form will be affected. What is the other way to customize that?
...
I've been futzing with this for hours trying to figure out why codemirror.js won't load in any browser other than Firefox. Any ideas?
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><...
A very peculiar bug in a simple html form. After changing an option, button has to be clicked twice to submit the form. Button is focused after clicking once, but form is not submitted. It's only this way in IE8 and works fine in Chrome and FF.
PAY ATTENTION TO 'g^' right before <select>. It has to be a letter or number followed by a sy...
Hello All,
The problem I am facing with below code is that whenever I try to select any option from the select box, the mouseout event executed (in IE, Mozilla doing gr8) and option disappear. How can one get over this bug.
<select name="ed" id="ed" dir="ltr" style="width:200px;overflow:hidden;" onMouseOver="this.style.width='auto'" o...
i have a repeater control with item templates having check boxes,and i need the check boxes inside the repeatercontrol to be checked based on the database value of a column field "enabled" of bool type of either true or false.
the code is as below what modification should i make to check and uncheck the check box?
<asp:Repeater ID=...
in jquery accordion control I am displaying one image along with description.but description is coming below the image.I want to display inline with the image.
my code-
<div>
<p>
<!-- avatar -->
<img src="images/manage.jpg" alt="" />
<!-- /av...
I am new to joomla, so I was wondering if there is a function wherein I pass an array of headers and a two dimensional array for data(cells) and get the html markup required to display the same as a HTML table.
I am assuming since this approach works with javascript frameworks, it should be available in Joomla too.
Thanks
...