I could swear I've used the double callback before on a toggle, but I
must be imagining it. Thanks Richard, I'll go the if statement route!
Gavin
On Nov 30, 4:54 pm, Richard D. Worth rdwo...@gmail.com wrote:
Each of the methods you mention accept (optionally) a single callback
function as a
Hi,
I am trying to validate some dynamic generated input fields, like so
$(#form1).validate({
rules: {
$([name^=eventlink]) : {
required: true,
url: true
}
}
Are you using some validate plugin ?
If you are doing so, you need to ensure that you execute your code only
after the dynamically generated fields have been generated OR you do it
everytime your dynamically generated fields are being generated.
For ordinary events, there is this 'live' function
Tx for the quick answer
I am using this plugin
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
I will try to put the js code on the bottom (after i have created the
dyn. fields)
Thnks for pointing me to the 'live' function but i don't think i can
use it in combo
with the
I have an unordered list which slidesdown to reveal a sub list on
click event. In the first li there is also a button that takes you to
another page. When this button is pressed I don't want the slide down
to start, which it currently does as the button is within the li.
[code]
$(#vml_top_ul
I am using the jQuery .dialog UI as a confirm pop up when someone
tries to delete an item from a website. The dialog has 2 buttons, one
to confirm the delete, which then carries out an ajax request, and
another to cancel the delete request which closes the dialog window.
Both buttons work as
ok this one helped me out:
http://stackoverflow.com/questions/1020943/jquery-validate-with-a-dynamic-number-of-fields
Omg, I can't believe that was the problem You guys are the best :P
I didn't know this particularity about jQuery... it's logical
though
Thanks you all for the help and your time.
Att.
Paulo Henrique
;)
On Dec 2, 4:09 am, Michael Geary m...@mg.to wrote:
Don't feel bad. You made it
Problem solved! I needed to use $('#dialog').dialog('destroy') rather
than .dialog('close')
On Dec 2, 10:39 am, Rich reholme...@googlemail.com wrote:
I am using the jQuery .dialog UI as a confirm pop up when someone
tries to delete an item from a website. The dialog has 2 buttons, one
to
snippets of html won't do much to troubleshoot. 95% likelihood the
problem is css related and css needs to be viewed in the DOM to work
with effectively.
The majority of posts regarding superfish on this board are Joomla
related . You can try searching. The original css gets left in when the
Why mootools animations is more smooth than jquery animations?
I'm not aware of any explicit bookmarklet support but if you need to
get jQuery onto the page then at least it has a nice light file size.
A few things to note:
IE limits the length of your bookmarklet to 250 characters or so.
To keep bookmarklets small it is common to have them simply load a
Hi all,
i have made a change to autocomplete code, because cache handling
should include extraParams in cache term. I thought this could be
interesting for some of you, so here is the code snippet that should
replace existing function request in autocomplete.js :
function request(term, success,
Hi all,
here is the code i use to parse an ajax request call as JSON string as
it is done for local data.
I think this should be the default behavior, but autocomplete uses a
| separated String...
parse: function(data){
var objArray = eval(( + data + ));
I Read Ur Article , its really useful,,thanks for this , but my
requirement is to make vertical carousel, using divs rather than ul
and li...can u provide the solution..
pata nhi yaar mujhe nhi malum
In jquery.blockUI.js (most up to date version says it's 2.27 24-
SEP-2009) the line
$(data.el).removeData('blockUI.history');
(line 391, in the reset function)
looks a bit suspect to me: in the install function the data object is
added to the _blocked_ element, but data.el is the _message_
Hi
I am new to JQuery and QUnit. I followed the examples and got my first
tests running. I can include other scripts and test those. But how do
I integrate this with existing pages? If e.g. I would like to test if
a certain DOM manipulation worked?
Thanks
Matthias
Hi there! I was wondering if there's a way to change the behavior of
the tooltip when it reaches the borders of the page. I'd like it to
either get pushed in the other direction as it gets closer or just not
appear at all. Thanks a lot in advance.
Hi there,
I use Jcaroussel with circular autoscrolling setting.
It's works but at each picture it stops (just a second but it stop)
and restart.
I have to do a smooth (or soft) autscrolling.
Thanks.
Teemak
PS: Sorry for mistakes but i'm french ^^
I'm calling a server side procedure using $.ajax that returns a table
of data and for one of the columns it can include blank tds. I have
code to check for the blank tds.
theData.each(
function()
{
var theFirstColumn = $(this).find('td:eq(0)');
Anyone?
I tested here and worked:
http://jsbin.com/ivude
On Wed, Dec 2, 2009 at 13:32, mickey mwjbea...@googlemail.com wrote:
Anyone?
An update to my original e-mail: I have ascertained that the behaviour
is exhibited only in WebKit browsers. IE and Firefox are fine, but
Chrome and Safari don't work.
Hi there
I am using a Jquery accordion menu on a website I'm working on - and
being a novice I've discovered that none of the links are not working.
The movement of the menu seems fine, but every link on this left hand
menu is going nowhere.
Are there any guys and gals out there who could help
Hi
I install mod_superfishmenu and i used the vertical style
every thing work fine except that that second level dose not appear
completely and you can see that in the pic below:
so what is the problem
Hi,
I am using BlockUI in a pop-up to block it while the new data inserted
by the user is updated.
It works pretty good in firefox but IE7 has a strange behaviour: after
pushing the submit button the overlay message is displayed and the pop-
up is closed (until here everything is fine) but
when i open a facebox, in the background, if there s a selectbox, that
selectbox shown above the face box. i need to hide all the select
boxes when i open the face box, after closing the facebox, that select
boxes need to show.
Hi,
I'm having a problem related to WebKit:
http://demo.frojd.se/webkit/index.html
When you click Menu item 1 it shows it's children.
This renders fine in Firefox 3.5, IE8 and in Opera 10.
In WebKit-browsers (Safari 4 and Chrome 3) it doesn't.
However, if I preset all the different classes and
Glad to help.
It's nothing specific to jQuery, of course. Here's a simplified test case:
var Test = function() {};
Test.prototype.foo = function() { alert('bar'); };
var test = new Test;
test.foo(); // alerts 'bar'
var Test = function() {};
var test = new Test;
Shouldn't the code be
$(el).removeData('blockUI.history');
?
Yes, good catch.
I am using BlockUI in a pop-up to block it while the new data inserted
by the user is updated.
It works pretty good in firefox but IE7 has a strange behaviour: after
pushing the submit button the overlay message is displayed and the pop-
up is closed (until here everything is fine) but
anyone can help me?
On Dec 2, 11:31 am, Acaz Souza acazso...@gmail.com wrote:
Why mootools animations is more smooth than jquery animations?
Do jQuery or JavaScript provide any facility like the data-binding
facility of ActionScript, whereby changing a variable immediately
applies the changed value throughout the program?
Apparently that works by implementing an onChange event whenever the
variable is changed.
How is someone *possibly* supposed to answer that open ended and vague
question?
On Dec 2, 1:13 pm, Acaz Souza acazso...@gmail.com wrote:
anyone can help me?
On Dec 2, 11:31 am, Acaz Souza acazso...@gmail.com wrote:
Why mootools animations is more smooth than jquery animations?
On Dec 2, 12:05 pm, hannahmac hannahmago...@gmail.com wrote:
I am using a Jquery accordion menu on a website I'm working on - and
being a novice I've discovered that none of the links are not working.
The movement of the menu seems fine, but every link on this left hand
menu is going nowhere.
hi folks.
I have a site using jquery utilizing a slider ( scroll.to) and form
validater (validate)
the form on my page isn't sending the emails to me though.
here's the link:
http://jugdish.net/mpuglia/home.html
the form is on the contact page.
if anyone can figure this out, i would greatly
I'm using the following code:
var boxes = $('.resizable').get(); // get divs as array
for (var i=0; iboxes.length; i++ )
{ console.log(boxes[i].id+': left='+boxes[i].css('left'));
}
I get this error message from Firebug:
Clearly boxes[i] is not a jQuery object.
you should try $(boxes[i]).css perhaps
Thanks Regards,
Dhruva Sagar.
On Thu, Dec 3, 2009 at 1:04 AM, hsfrey hsf...@gmail.com wrote:
I'm using the following code:
var boxes = $('.resizable').get(); // get divs as array
The jQuery object - the return value from $(whatever) - is an array-like
object with .length and [0] etc. properties. You don't need to call .get()
on it unless you need an actual JavaScript Array object, which is rare.
The *elements* of the jQuery object - or the elements of the Array that
I have a table, which contains some data aswell as a checkbox:
tr id=14373
tdinput type=checkbox//td
td.../td
td.../td
/tr
Each row contains an id, and I want to call a function based on the
click event:
$(tr).click(function() {
alert($(this).attr(id));
Dhruvar:
Thanks. I did so, and it made no difference.
I have often used variables, but not arrays, without the $.
I think the use of $ before such variables is merely a convention.
Harvey
On Dec 2, 11:43 am, Dhruva Sagar dhruva.sa...@gmail.com wrote:
Clearly boxes[i] is not a jQuery object.
Thank you Mike.
That makes sense!
But what is the purpose of .get() then? What could I do with an
actual JavaScript Array object which I couldn't do the way you
demonstrate?
Harvey
On Dec 2, 11:48 am, Michael Geary m...@mg.to wrote:
The jQuery object - the return value from $(whatever) - is
Does anyone have an example of a two step Cascading Dropdown working
from a single JSON object?
Here's an example of my JSON. Product Size Product Width
productlist:[{
size:XL,
details:[
{
id:1,
width:40,
On Dec 2, 3:44 pm, Andyk andym.kni...@googlemail.com wrote:
However, checking/unchecking the checkbox in each row also triggers
the event. Is there anyway of preventing this?
$(tr).click(function(event) {
if ($(event.target).is(:checkbox)) return;
alert($(this).attr(id));
Yes there is.
Query the event.target and do an if conditional like so:
$(tr).click(function(e) {
// normalize e.target
if (!e) var e = window.event;
var tg = (window.event) ? e.srcElement : e.target;
if ( tg.nodeName != INPUT ) {
alert($(this).attr(id));
} else {
//do
I think the use of $ before such variables is merely a convention
It's absolutely nothing more than that, just a convention...
But it makes sense to use the $ on a variable name to signify to you
later on, or more importantly someone else looking/working on your
code at a later point, that hey,
On Dec 2, 5:20 pm, Mauricio \(Maujor\) Samy Silva
css.mau...@gmail.com wrote:
// normalize e.target
if (!e) var e = window.event;
var tg = (window.event) ? e.srcElement : e.target;
jQuery does this normalization for you. You can just use e.target
(More info at
Thank you Scott
Maurício
-Mensagem Original-
De: Scott Sauyet
Para: jQuery (English)
Enviada em: quarta-feira, 2 de dezembro de 2009 20:28
Assunto: [jQuery] Re: Ignoring click events in cells
On Dec 2, 5:20 pm, Mauricio \(Maujor\) Samy Silva
css.mau...@gmail.com wrote:
For server side scripts I'm wondering if there is an inherent
advantage to returning XML vs JSON (or vice versa). I've always
returned XML because I find it's more human readable, and thus I can
verify the data better.
I'm talking strict data structures (arrays,lists, etc), no HTML. I
would
Well our 1 language xml file is gonna be too huge, to force people to
wait for it to finish loading, so i have to break it up, just wondered
if there was a better option available, that's all.
On Dec 1, 3:27 pm, Andre Polykanine an...@arthaelon.net wrote:
Hello Craig and all,
I have 1 lng
On Dec 2, 8:33 pm, Rich reholme...@googlemail.com wrote:
I have an unordered list which slidesdown to reveal a sub list on
click event. In the first li there is also a button that takes you to
another page.
When this button is pressed I don't want the slide down
to start, which it
JSON is far better for use in JavaScript.
It's much easier to access JSON data, since by the time you see it, it's
just ordinary JavaScript objects. It's more convenient and faster too.
Regarding security, this is data that you're generating on your own server
for use in your own website? Then
Javascript doesn't send email. You'll have to investigate this server-side.
On Wed, Dec 2, 2009 at 1:52 PM, wig1176 wig1...@verizon.net wrote:
hi folks.
I have a site using jquery utilizing a slider ( scroll.to) and form
validater (validate)
the form on my page isn't sending the emails to me
Hello,
I wanted to ask something if anyone can help me. I searched everywere
but couldnt find an answer. It's a simple function but for me its
dificult because i started learning jquery 2 days ago.. I would like
to ask if there is a way to put a validation on one simple input. I
have a page and 2
Hello,
I have the following:
$(#JPlayer).jPlayer({
ready: function() {
$(this).setFile($('#MusicPath').attr(value)).play();
},
swfPath: $('#JPlayerPath').attr(value)
});
I would like the play the file:
$(this).setFile($('#MusicPath').attr(value)).play();
Only if (
Hello,
I am using the following to create a cookie and it is working fine:
$('#Play').click(function() {
$.cookies.set('WCA.Player', 'Play', { path: '/' });
});
Is there another way to do the same code but something like:
$('#Play:click').cookies.set('WCA.Player', 'Play', { path: '/'
y0, Not really, why do you need to/ or want to? you could do this
$('#Play').click(function() { $.cookies.set('WCA.Player', 'Play', { path:
'/' }) })
ha, j/k same thing, just one line. Could you just explain why you would
like to do it a different way? or where you just wondering?
shapper
[url=http://www.gwallpaper.com/2010_Lamborghini_Murcielago_LP650_4_Roadster_2-79.html]2010
Lamborghini Murcielago LP650 4 Roadster[/url]
Lamborghini adds to the special edition of supercars with the official
unveiling of the Murcielago LP650-4 variant, a beefier, brawnier - and yes,
even more
Thanks for the link. It's looking like a good site for me to write a simple php
script that will copy all of your wallpapers, so I can add a lame sub-directory
of car images to my site for the pure fun of doing it. Oh, And then laugh about
it.
http://2whoa.com
Don't spam this group.
---
2009/12/2 greghauptmann greg.hauptm...@gmail.com:
What about caching the user credentials - how would you cache this
typically? (noting the username/password could not be tied to a
particular page/tab, so it would have to be cached at the overall
browser context if this makes sense)
Also
61 matches
Mail list logo