I would like to have something like <textarea>Welcome, click here to type.</textarea>
Then clear when the user clicks on the text area, obviously.
But.
Before anyone mentions that there are duplicates of this question on this site already there are other details that are not mentioned in the answers. For example:
I've seen that it's ...
Possible Duplicate:
custom choices in javascript confirm dialog.
function confirmdel(msg)
{
var agree=confirm(msg);
if (agree)
return true ;
else
return false ;
}
this is general delete confirmation java script function ,
it ask to user,
Hit
Confirmation dialog box with Ok or Cancel ,
I want to change this ok...
Hello,
How is it possible to disable AJAX functionality for a tab or two when using jQuery UI tabs?
So after clicking the user is taken to an URI defined by the href attribute of a link. Right now, the default behaviour is that the content from the the external URI is loaded via AJAX.
...
I have multiple HTML5 videos in a slider at http://ghostpool.com/wordpress/phideo and when I click on any of the slider buttons the first video is paused using the following onclick function.
<a href="#" onclick="pausePlayer();">LINK</a>
var htmlPlayer = document.getElementsByTagName('video')[0];
function pausePlayer() {
htmlPlaye...
I am using hjavascript:void window.open('http://www.microsoft.com') to open the link in a new tab.
But I get the error following error message:
In Firefox:
Firefox doesn't know how to open this address, because the protocol (hjavascript) isn't associated with any program.
IN IE: it displays the following error:
The webpage cannot b...
Hey,
I am searching for a way how I could select a div element which is not the direct next one to the one which is "selected" by a click function.
<div id="click">(siblings)</div><div>text</div><div id="get this one"></div>
Now i would like to select the one with the id "get this one" - in my code this id is not available. All the ...
I need to change the map type from RoadMap to Hybrid when a user clicks on a marker (it automatically zoom's and center's on it already)
I can't find anything on Google's API documentation for 3.2 on how to do that. Any help would be appreciated!
...
I'm trying to use sockets to connect to a server through HTA scripting. Is this possible? There's isn't much information on the web, some examples would be greatly appreciated.
...
I'm using the hidden iframe method for file upload and it does not work properly in IE. The problem is that the function to be called after the server response is not called in IE.
The line is
document.getElementById("iframe_id").onload = uploadDone;
I also tried window.iframe_id.onload, document.iframe_id.onload, etc
I don't think that...
I'm getting this error with this javascript can anyone help me figure out what i'm doing wrong?
$(this).prepend('<a class="booknow2 sidelink sidelinkNew" href="javascript:__doPostBack('SetSess','')"><img src="../../images1/button/leftEdge.png" width="4" height="35" style="float:left; margin:0; padding:0;" alt="book now" /><img src="../....
I'm building a website(PHP) with chinese fonts. The problem is most browsers doesn't have chinese fonts installed by default. I want the client machine to have this font installed to view the webpage.
How can I do this?
Edit:
I've partially solved the problem with this website : http://www.font2web.com/
it works in IE and FF but not ...
I'm trying to do a javascript postback and then re-direct to a different page but it keeps posting back to the current page
Here's my code
$(this).prepend('<a class="booknow2 sidelink sidelinkNew" href="javascript:__doPostBack(\'SetSess\',\'\')"><img src="../../images1/button/leftEdge.png" width="4" height="35" style="float:left; margi...
I was wondering is it possible to customize the tooltip that we get after setting the title attribute in an img tag? Now I get a standard rectangle with blue background with text on it and what I'd want to get is my own image (lets say something that looks like a cloud) with text on it. Is it possible with css or js?
...
In HTML I have a table that is used as a grid.
Now, I want to attach an event to this table, that when a scroll up/down is triggered, then my ScrollUp/ScrollDown function is called.
...
I'm trying to download a XML file via a jquery .get() request. unfortunately the returned data seems to be empty (0 length string), even if the browser downloads correctly the XML file (the request returns a 200 http code via firebug)
here's my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D...
why is if (element.innerHTML == "") not working in firefox
but works fine in IE , any ideas please ?
...
I'm interested in making a game using html and javascript. I was wondering if it really is that much faster drawing in html5 and javascript than it is with images and div's in html and javascript.
Example of a game using html and javascript that works nicely:
http://scrabb.ly/
Example of a game using html5 and javascript that works ni...
For example, can I take this script (from mozilla tutorial):
<html>
<head>
<script type="application/javascript">
function draw() {
var canvas = document.getElementById("canvas");
if (canvas.getContext) {
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(200,0,0)";
ctx.fillRect (10, 10, ...
I have an ASP.NET application using a master page. I am adding a reference to the JQuery library in the master page however there are some content pages and user controls that reference the JQuery library directly. Will I need to remove each reference from those pages or can I leave them in place even though I am adding a reference int...
Hi
I wanted to traverse node by node on a web page by maintaining sequence.
e.g. Below is basic DOM :
<BODY>
<DIV id ='1'> Test 1 </DIV>
<DIV id='2'> Details about <SPAN id='3'> Execution </SPAN> </DIV>
</BODY>
As per above example I want traverse each node by node i.e.
1st Traversal : <BODY>
2nd Traversal : <DIV id =...