Is there a way to submit an HTML form using JavaScript that is guaranteed to work in all situations?
I elaborate. The common approach seems to be:
formElement.submit()
That is all good and well except for one thing. Fields of a form are available as attributes of formElement, so if there is a field with name or id "text1", it can be ...
I want to build my own carousel for learning purposes. But I'm curious how to do it properly. I tried to put divs as carousel items next to each other with float:left. Every div has a fixed width and height.
After that, I've put a div around the carousel items, called "clipping". The clipping div has the same size as the elements in it...
Hi,
From my windows application, i want to detect selected text in "Internet Explorer", Firefox and any other browser.
Do you know what piece of code should i use in order to achieve this?
Thanks,
The idea is not to search for a text in IE, but instead "capture the selected text" in IE. By the way not only IE, but any windows applica...
Supposing no CSS, javascript or other HTML trickery, how does the browser determine the color of the text and background for selected text?
For example, standard white background (#FFFFFF, or RGB=255,255,255) with black text (#000000 RGB=0,0,0) when selected with invert the colors (i.e. black background, white text.) How are other color...
I have the following html code:
<select name="forma">
<option value="Home">Home</option>
<option value="Contact">Contact</option>
<option value="Sitemap">Sitemap</option>
</select>
how can i make Home, Contact and Sitemap values as links?
i used the following code an as i expected it didnt work,
<select name="forma">
<option value="H...
Is there any object in the .NET framework that will sanitize a string so that it is safe to use as the "id" attribute value for an HTML tag?
...
is there a corresponding html entity that represents a whitespace and like this '|_|'??
...
The HTML document which I am parsing contains some ASCII control codes. I noticed that PHP's DOMDocument parser truncates text nodes when it finds ASCII control characters within the node, such as
Device Control 0x13
End of Medium 0x19
File Separator 0x1C
Group Separator 0x1D
Is this a bug or a feature? Is there any...
Hi there,
I'm trying to use the jqueryui dialog (http://docs.jquery.com/UI/Dialog) within my html page.
Has anyone got any links on the web to the javascript libraries needed to use the dialog widget?
My HTML code taken from (http://jqueryui.com/demos/dialog/modal-message.html) is below - I think linking to the javascript libraries is...
I've noticed different "dumping" behaviors when using PHP's DOMDocument's saveXML() and saveHTML() methods. Here is a simple example of dumping the copyright symbol ().
<?$domDoc = new DOMDocument();
$domDoc->loadHTML("©");
echo $domDoc->saveHTML();
echo $domDoc->saveXML();
echo $domDoc->saveXML($domDoc);
?>
The three du...
I have the following code:
<select>
<option value="blablabla">Test</option>
<!-- ... -->
</select>
But I want to know if I can set the "value" attribute of the option tag, as a reference to an object (in javascript).
...
I know you can embed images in html today with:
<IMG SRC="data:image/gif;base64,RAAA...more data.....">
But back in the day, when Netscape was a browser to implement for, there was another way of doing this. I can't remember.
Any suggestions would be appreciated.
...
Im going mad trying to figure out why the title link (in the left) and the other links in the nav bar (right) are not the same height.
The difference is subtle in Safari, but bigger in IE6.
Im missing something in the css reset of H1?
SAFARI
IE6
The HTML
<div id="navbar">
<table width="100%" border="0" cellspacing="0" cellpad...
I have 2 columns that are achieved by floating. They do not stretch to 100% when using css. How do I achieve this?
...
Hi,
I'm working on a "personal-can-it-work" sort of thing, and i have everything working great except for trying to parse some information from a .asp sourcefile into my Program.
This is the parsing code i have so far
// parse out the results
try
{
int snr_start = result.IndexOf("SNR");
...
How do I run the PHP function htmlspecialchars() on an array of array objects?
I have the following code:
$result_set = Array
(
[0] => Array
(
[home_id] => 1
[address] => 4225 Nasmyth Dr
[city] => Plano
[state] => TX
[zip] => 76798
)
[1] => Array
...
Hi,
I'm working on a website and in Safari it looks perfect (I Work on Mac).
In firefox and IE it isn't looking good.
http://www.d-votion.be/djnobels/djgentux/index.html
Could someone help me?
Greetings,
Nico
...
Hi,
I'm trying to programmatically send an email of all of the dll files and their versions in a directory, recursively. I'd like to send the email as HTML output, using a table. Is there a good object-oriented way of doing this? I'd hate to write all of the tags by hand.
Something like:
private string getHTMLString()
{
Directo...
Does my favicon.ico have to be stored at the root of my domain? Or can I have my favicon stored on another domain?
Meaning, from www.example.com, is this valid?
<link rel="shortcut icon" href="http://MY-CDN.example.com/favicon.ico" />
What I want to do is serve my www.example.com favicon from my CDN. Is this okay? Any negatives I sho...
I have a matrix that i am showing in html table. I have my header row (th) but i am trying to see if there is such things as header column that i can style similar to header row. Right now i am using a class=odd and class=even on my TR in my Tbody so i am not sure if there is a way to have a column overwrite this row css logic.
...