I'm using sIFR 3 (beta revision 436).
I have a simple question, but I can't figure out the solution. I want to select an <a>-tag directly by it's class, not by its parent like I'm doing now:
sIFR.replace(din, {
selector: '.mainmenu'
,css: [
'.sIFR-root { font-size:13px; text-transform:uppercase; cursor:pointer; text-align:ce...
Javascript Confirm popup, I want to show Yes, No button istead of OK and Cancel.
I have use vbscript code
<script language="javascript">
function window.confirm(str) {
execScript('n = msgbox("' + str + '","4132")', "vbscript");
return (n == 6);
}
</script>
this only work in IE, In FF and Chrome, it does't work....
I have a page in which there are a few textarea and <input type="text"> html controls. These elements are placed in a div tag:
In IE 7 after the user types some text in textarea, the width of the textarea changes on its own:
and now again if the user types some text in the textbox, the textarea agian returns to its original width:
...
Hi guys,
I am new to jQuery. Any help would be appreciated
I have two radio button and two text box in which i displayed the date using jquery.
When i click on Radio1 then in both the text box i should be able to select date but when i click on Radio2 then i shouldn't be able to select the date in text2 field. text2 field should be dis...
I have a problem with my site. I want that the shadow stops at the end of my textbox.
HTML
<body>
<div id="shadow" class="floatfix">
<div id="shadowleft"></div>
<div id="shadowtop"><img src="img/shadowcornerleft.png" alt="hoek" id="shadowcornerleft" /><img src="img/shadowcornerright.png" alt="hoek" id="shadowcornerright" /></div>
<...
I'd like to HTML escape a specific phrase automatically and logically that is currently a statement with words highlighted with quotation marks. Within the statement, quotation or inch marks could also be used to describe a distance.
The phrase could be:
Paul said "It missed us by about a foot". In fact it was only about 9".
T...
I use html attribute title to set some hints like this:
<a href... title="Go to next chapter">Go</a>
Then the jquery plugin goes through all the [title] attributes and makes pretty tooltips. Very simplified a new div is created for the link above
<div style="position:absolute...">Go to next chapter</div>
The problem is, that the ...
Is there any way I can modify the URL of the current page without reloading the page?
I would like to access the portion before the # hash if possible.
I only need to change the portion after the domain, so its not like I'm violating cross-domain policies.
window.location.href = "www.mysite.com/page2.php"; // sadly this reloads
...
I have seen in many weblogs when we select text the background color of the text changes rather than usual blue. This Tech
Works in Firefox and Safari, is there any method available for Internet Explorer?
...
I am trying to make a webpage with Ajax.
Example:
I create a Perl/CGU file that triggers a simple post;
File: ..test.cgi?name=Thomas
Text back: Your name is Thomas!
I create a html file that can use the post, but then the page have to reload.
I use text input and a button.
How can I use Ajax, Perl and JSON easy together?
This is h...
I have the following code, which will retrieve a filename from a table and make a link to it. What I want to do, is have it so I can refer to $filesList later on, and it will contain a single block of html code with links to as many files as there are files.
I thought adding to the previous variable would be the easiest way to do this, ...
I have a html form for uploading a file, which is as follows:
$uploadhtml = htmlspecialchars(json_encode("<form action='up.php' method='post'
enctype='multipart/form-data'>
<label for='file'>Filename:</label>
<input type='file' name='file' id='file'/>
<br />
<input type='hidden' name='pk' value='".$pk."'>
<input type='hidden' name='use...
I need to insert an HTML string into the <head> tag of the current document DOM, one way is: you create a div element, fill its innerHTML, copy over item-by-item into your <head> element. But these methods do not work in IE/Opera for reasons given below, though in FF3 both the below methods work perfectly, and the browser processes the a...
Using jQuery's dialog I came across the following quirk (tested in FF3):
User selects text
In code, open up a jQuery dialog
BUG: the text gets unselected
(text could be in a textarea or just an HTML on the page)
So, to me it seems like a funny (and annoying) bug or a quirk, but maybe there's a good explanation for that.
And what int...
Currently in JSF, all HTML contained within a message (rich:messages tag) is escaped and just shows up as the markup. For example, in my backing bean, I have:
createMessage("Title created successfully with product number: <a href=\"http://www.example.com\">" + product.getProductNumber() + "</a>.");
where createMessage() is just a ...
I want to display a html page, with a classic design. Header, footer, content and bar to the right.
For some reason I don't like the fixed width of the content. On a wide screen you should be able to resize your page, so it fills the screen, or make it very small to display two pages side by side.
I also would like to use div tags inst...
When I parse HTML I wish to obtain only the innermost tags for the entire document. My intention is to semantically parse data from the HTML doc.
So if I have some html like this
<html>
<table>
<tr><td>X</td></tr>
<tr><td>Y</td></tr>
</table>
</html>
I want <td>X</td> and <td>Y</td> alone. Is this poss...
I'm wondering if there is a defined standard for what the default action is of various HTML elements. I've looked at the W3C's HTML specification and while they are very precise with what attributes can be used with elements (and also some behavioural stuff such as exactly what gets included with form submission) there's nothing about t...
Well lets say i have this
<table class="infoBox">
<tr>
<td>
test
</td>
<td>
<table>
<tr>
<td>
this should not be bold!
</td>
</tr>
</table>
</td>
</tr>
</table>
An...
I have an html image map and I want to get the coordinates when a user clicks on the map.
Is there a way to retrieve the map coordinates with a mouse click on the map?
...