I have a snippet of code that I'm working with to filter rows in a table. It works perfectly in every browser other than Firefox v3.0.x (works fine with 3.1 beta 2). When I run the snippet in Firefox 3.0.x, it says that children is undefined. I am using jQuery v1.2.6 also.
Code Snippet:
var bodyRows = $("#resultsTable tbody tr");
bo...
Since Actionscript is a proper superset of javascript, it should I suppose be possible.
Do you use/have you used any of the the javascript extension libraries with Actionscript/Flex/Air?
...
Hello,
I need to use a custom prompt, just like the one shown in this jQuery plugin demo.
The problem is, all custom prompts depend on a callback, they are asynchronized, i need them to be synchronous.
I need to do something like:
alert("Your name is " + myPrompt("What's your name?"));
Where myPrompt is a modal custom synchronous pr...
There has to be a simple explanation for this.
I have a parent <div> tag containing a number of child divs that need to be hidden depending on their class. Problem is, I can't even seem to get a handle to my parent div. What on earth is the problem here? I'm going out of my gourd.
The jQuery code (snippet) looks like this:
$(functi...
Dear All
I am using Javascript JQuery and PHP.
My doubt isHow to limit the javascript function to execute once?
My MainJQuery file has ajax,
display.php ,it execute for a while
....
$.ajax({
type:'POST',
url: 'display.php',
data:'id='+id ,
success: function(data){
...
In a similar vain to the c# extension topic on SO It would be great if we could pull together a whole host of useful jQuery function extensions.
Please Note the idea is to have short snippets of code not full blown well known plugins or ui widgets
...
OK, I'm designing a site and thought I'd stick some jQuery in as I really need so js experience.
Page with my problem is here: http://new.focalpix.co.uk/moreinfo.php
JS in question is:
$(document).ready(function(){
$(".answer").css("display","none");
$("#maincontent a.animate").click(function() {
$("#maincontent .answer...
I'm using jquery.flickr-1.0.js to search flickr for images in my application.
The problem i'm facing is that sometimes it takes a few seconds for flickr to
respond with results and i want to load a spinning gif in place of my search button
'btnRefresh' until the results are returned. How can I accomplish this?
jQuery(function(){
...
I'm playing around with writing a jQuery plugin that uses an attribute to define form validation behavior (yes, I'm aware there's already a validation plugin; this is as much a learning exercise as something I'll be using). Ideally, I'd like to have something like this:
Example 1 - input:
<input id="name" type="text" v:onvalidate="retu...
I have this code:
var $msg = jQuery('<div></div>')
.hide()
.appendTo(document.body)
;
if ($msg.is(":hidden")) {
console.log("hidden");
} else {
console.log("visible");
}
When run, it logs "hidden" on Firefox, but "visible" on Google Chrome. Is this a bug, or am I doing something wrong?
...
jQuery and JavaScript in general are new ground for me.
What are some good resources to get me up and running.
I am particularly interested in page manipulation - eg moving elements about programmatically.
...
Is it possible to have a Draggable element with more than one handle? I am initializing it twice, each time with a different handle param, but it doesn't work - only the first one works.
...
I would like to delay a hover event in jquery. I am reading from a file when user hovers over a link or label. I don't want this event to occur immediately in case the user is just moving the mouse across the screen. Is there a way to delay the event from firing?
Thank you.
Example code:
$(function() {
$('#container a').hover(f...
I have the following line of code in a link on my webpage:
<a href="javascript:$('#comment_form').toggle('normal')" title="Comment on this post">
This produces a link that should pop open a hidden form. It works on Safari, but in Firefox, I just get an almost-empty page with nothing but the following text:
[object Object]
I'm sure ...
JSBin sample
Get at that with Firebug and you'll notice something about the classes of the generated dialog - ui-widget and/or ui-state are completely absent, but those are the classes that ThemeRoller uses to color UI elements!
Is there some sort of ThemeRoller-compliant dialog generator, or even a script to hack the right display cla...
When embedding JavaScript in an HTML document, where is the best place to put the <script> tags and included JavaScript? I seem to recall that you are not supposed to place these in the <head> section, but placing at the beginning of the <body> section is bad, too, since the JavaScript will have to be parsed before the page is rendered c...
I'd like a transition effect between 2 or more images. I know that simple transitions can be easily done in JQuery, especially with the Cycle plugin, but I want something more complex. Like this, although it's a poor example. A 'blinds' style effect where you can see one image through the other as it changes. I hope I'm clear.
I really...
I'm using jquery in a greasemonkey user script. I'm trying to add a bunch of options to a select based on an array and also stick the corresponding object in the element with jquery.data like this:
$.each(some_array, function(item){
// These next 2 statements seem awkward to me and I was also hoping
// a jquery master could show me...
In previous versions of jQuery tabs there was an option to automatically set the height of the tab to that of the tallest tab in the group using:
$('#container').tabs({ fxAutoHeight: true });
However this does not seem to work in jQuery UI 1.5.3.
Has this option been removed? If so is there another way to get the same functionality?...
I'm trying to use the jQuery alerts dialog library from http://abeautifulsite.net/notebook/87 instead of the default alerts (which look pretty awful in my opinion). This seems to be a great library, but there is not an example of how to use the jConfirm library.
I need to do something like this:
function confirm() {
var result ...