I have some code that adds mouseover events and mouseout events to all 'a' tags on a page. I'd like it so that the mouseout starts a 5 second timer after which time it calls a function. However, if a new mouseover event fires, it should cancel any existing timers. The code I'm using follows. The setTimeout() is working fine, but it se...
Is it possible to add something like Modernizr into your own plugin? I'd like to feature test for certain CSS3 properties without reinventing an already fantastic wheel.
...
Question about jQuery thickbox 3.1
When the user opens the thickbox window, I have a button that they can click to show some content that's originally hidden. Right now when you click, the content shows and pushes everything down and the thickbox window gets scrollbars. I'm trying to figure out how to make the thickbox window resize i...
Let me better explain this title.
What I am looking for is an image uploader that uploads multiple images (around 200 would be ideal). The image uploader would need to be able to handle:
a) Some sort of progress indicator
b) Sending the uploaded files through a script that sizes them and deletes the originals
Now, I imagine this is out...
I asked a question awhile back about how to properly do my css/html so I could make a rounded widget based on an image I had. The question was answered here and the solution works great.
The widgets look just like I want them to:
Their basic structure is:
<div id="widget3" class="widget">
<div class="widget-top">
...
Hello,
I am trying to select elements of a (certain class || another class) with the same selector. How can I go about doing that?
Currently, I have:
$(".class1 .class2").each(function(idx, el) {... });
however, that only selects elements that match both classes, not one or the other.
How can I select elements that match one or bot...
For example in javascript code running on the page we have something like:
var data = '<html>\n <body>\n I want this text ...\n </body>\n</html>';
I'd like to use and at least know if its possible to get the text in the body of that html string without throwing the whole html string into the DOM and selecting from there.
...
In the contacts on both iphone and android, when you get down to the B's, the heading "B" is fixed to the top of the scrollable windows until you scroll down to the C heading, when you get to the C heading, it replaces the B heading, so if a person in looking at one of his 200 E contacts, he knows he's in the E section. does that make se...
How to use JQuery to call a servlet which I usually call like this http://localhost:8080?a=1&b=2&c=3. I particularly want to find out how to pass URL params.
...
While debugging a javascript code that uses jQuery I found the following code:
[0, 0].sort(function()
{
baseHasDuplicate = false;
return 0;
});
By my understanding of javascript this code will sort array containing two zeroes with comparison function that will always set a global variable and will return equality, which has sa...
I have a dropUp menu with the following:
$(document).ready(function(){
var opened = false;
$("#menu_tab").click(function(){
if(opened){
$("#menu_box").animate({"top": "+=83px"}, "slow");
setTimeout(function(){
$("#menu_box").animate({"top": "+=83px"}, "slow");
}, 2000);
...
I'm trying to find a less haphazard way than a write-and-test way to write Javascript. I don't really use an IDE - I write, then test in browser - if anything's wrong, I then use alert()'s to try tracing. This can be a tedious process having to go back and forth from Notepad++ to the browser, so I wonder if there are better ways of doing...
Hi,
I am using asmx to retrieve some data from DB,
public class TestPage1
{
public int UserID { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string MiddleName { get; set; }
}
[WebMet...
I'm (trying to) using JSON with PHP.
I want to plot a graph using this plugin: http://www.jqplot.com
The problem is: It's being plot before the new data arrives. Is there anyway to make jQuery wait for the $.getJSON() and the plot it?
myArray and title are the new data that will be used later.
$.getJSON('./ajax/refreshData.php', funct...
Hello,
I am making a jQuery Ajax form submit to a PHP page that I want to return values dynamically instead of all at once. For example, if my jQuery code is:
jQuery.ajax({
type: "POST",
url: "$PathToActions/Accounts.php",
dataType: "html",
data: "action=register&accounts=" + accounts,
success: function(re...
<ul id='myid' >
<li>Microsft Office</li>
<li>Microsft windows XP</li>
<li>Microsft windows Vista</li>
<li>Microsft windows 7</li>
<li>Microsft windows server 2003</li>
</ul>
<input type='button' id='mybutton' value='submit' disabled >
jquery
$("#myid").click(function(){
$("#mybutton").attr("disabled", false);...
Good Day,
I am trying to populate a dropdown select with an array using jQuery.
Here is my code:
// Add the list of numbers to the drop down here
var numbers[] = { 1, 2, 3, 4, 5};
$.each(numbers, function(val, text) {
$('#items').append(
$('<option></option>').val(val).html(text)
...
Seems like a simple thing to do (although im still learning the ins and outs of jQuery).
Here's my HTML:
<div id="fbsignup">
<div class="message messageerror">
<strong>There were errors with your registration:</strong>
<ul></ul>
</div>
</div>
Here's my (attempted) jQuery:
// Check Required Fields.
$('#fb...
I'm developing a product to be used by a number of customers alongside our Web application.
Quick background:
These customers have incorporated into their pages a widget that we've developed.
The widget's content can be modified by using our application.
The idea behind this product is a bookmarklet that we supply, which will "highlig...
Hello there
I use Jquery in my page to hide buttons which i dont want to show unless needed. In this case its a table with several rows i hide the remove button unless i select a row to be removed... similarly i hide the button that control row manipulation until there is more then one row. I use the following code for it.
jQuery(docum...