I'm fully aware that this question has been asked and answered everywhere, both on SO and off. However, every time there seems to be a different answer, e.g. this, this and that.
I don't care whether it's using jQuery or not - what's important is that it works, and is cross-browser.]
So, what is the best way to preload images?
...
Hello all,
I've successfully been able to make elements (like div's, panel's, whatever) draggable by using this bit of Jquery:
<script type="text/javascript">
$(function() {
$(".drag").draggable({ revert: true });
});
</script>
This works fine for anything that already exists on the page before page_load is done ...
Hello,
a simple question here
Is there a way to change the text "click here"
<a id="a_tbnotesverbergen" href="#nothing">click here</a>
in this link
Richard
...
Javascript?
Metatag refresh?
Response.Redirect (to self)
Server.Transfer (to self)
Ajax update panel?
...
Hi, I'm using the Starbox plugin on my website and I want to post the vote value when the visitor votes using AJAX.. I read the plugin documentation and tutorials and it's possible using a function like this:
function myOnRate(element, memo) {
new Ajax.Request('savestar.php', {
parameters: memo,
onComplete: function(xhr) {
...
anyone knows a simple JS library implementing the UNZIP algorithm?
No disk-file access, only zip and unzip a string of values.
there are ActiveX, using WinZIP and other client dependent software for ZIP, written in JS.
but no pure algorithm implementation, is it really difficult or non-functional?
i would use it for displaying KMZ fil...
In gmail, for example, when one presses CTRL+B, instead of it getting passed to the browser (which would normally bring up some sort of bookmark manager), it hijacks it for formatting purposes, i.e. turn on bold formatting for the message ur in the middle of comoposing. Same for C-i, C-u. How is this done?
...
I'm using YUI,
and sometimes I'll see this "Permission denied to call method Location.toString" error,
It's reported in connection.js,
I didn't find any clue why this error occur yet.
Very strange
...
Hello is there any way to automatically click on a link on my page using javascript?
...
What my code trying to do is to add new group if it is not yet created,well, that's work fine now however I also want to open a new popup window as soon as the group is created, prompting user to invite other, but I don't seems to get my work working, any idea on how to make it works?
thanks
<html>
<head>
<script type="text/javascript"...
I already have code which lazy loads scripts on request. My issue now is waiting to execute certain code until the object becomes available. I can't use a setTimeout() because it does not block execution.
So what is a good way to 'wait' for a load, without locking the browser?
Again, can't use raw setTimeout().
...
I have a form where user fills up (jsp page). One of the input is of type "file". There is a preview button which will pop up a new window and using javascript to layout the filled up form for display. The "file" input will be display as a hyperlink and when the user clicked on the hyperlink, it is supposed to open the attachment. So if ...
I want to create a simple online poll application. I have created a backend in python that handles vote tracking, poll display, results display and admin setup. However, if I wanted a third party to be able to embed the poll in their website, what would be the recommended way of doing so? I would love to be able to provide a little ja...
I write JavaScript code and I try to use its functional language nature.
In other functional languages (or even in Ruby), if I don't explicitly set the return value of a function, it will return the value of the last evaluated expression. JavaScript does not follow this pattern. (To be precise, JavaScript always returns a value as well....
I am trying to get values from html list <li>.
<ul>
<li><a>Main Menu</a>
<ul class="leftbutton" >
<li value="List1"><a>Sampe 1</a></li>
<li value="List2"><a>Sample 2</a></li>
<li value="List3"><a>Sample 3</a></li>
<li value="List4"><a>Sample 4</a></li>
<li value="List5"><a>Sample 5</a></li>
<...
this is the code that I use to disable the button
$("#btnSubmit").attr('disabled', 'disabled')
$("#btnSubmit").disabled = true;
and this is my submit button
<input id="btnSubmit" class="grayButtonBlueText" type="submit" value="Submit" />
the button although looks disabled, you can still click on it.. This is...
Hi,
I am looking at modifying a jQuery Plugin to cater for an additional requirement I need.
Sorry, not a programming question, but can you pass an array from javascript into a jQuery plugin, that will maintain all it's information or do I lose the array content between javascript and jQuery Plugin?
Thanks.
TT.
...
Example code:
<html>
<head>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script>
</head>
<body>
<table border="1" style="width:100%">
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
...
HTML Javascript question
to get the selected value of a input-select I can use
<select id="gender" name="gender" class="style12">
<option selected="selected">ALL</option>
<option>Male Only</option>
<option>Female Only</option>
</select>
document.getElementById('gender').value
is there any easy way for me to get the sele...
When I pass 'this' to an anonymous function like so:
MyClass.prototype.trigger = function(){
window.setTimeout(function(){this.onTimeout();},1000);
}
I get a "this.onTimeout is not a function"-error. I guess that 'this' is no longer available at the time the anonymous funtion is executing? So I've been doing this:
MyClass.prototy...