I need to perform a custom action when it turns invalid.
Currently, I have this:
success: function(label) {
label.html(good).parent('div').removeClass('bad').addClass('good');
},
Ideally, I would just do:
failure: function(label) {
// set nbsp; as text
I am using firebug to debug my js and i am getting the following
error.
value.replace is not a function
http://localhost/rentalphase2/jquery.autocomplete.js
Line 409
Firebug is showing my return from the script as
letssene
letssen
letssenee
letsseneee
letssen
Adding New Customers
which
Anybody have any other suggestions what i could try ? :(
On Oct 22, 3:00 pm, Mech7 [EMAIL PROTECTED] wrote:
Thanks I have tried mouseenter and leave but it has the same problem :
(
On Oct 21, 7:24 am, MorningZ [EMAIL PROTECTED] wrote:
I wouldn't put Flash as the single cause for this...
Please provide a testpage, eg. via jsbin.com
Jörn
On Tue, Oct 28, 2008 at 8:14 AM, aimhier [EMAIL PROTECTED] wrote:
I am using firebug to debug my js and i am getting the following
error.
value.replace is not a function
http://localhost/rentalphase2/jquery.autocomplete.js
Line 409
Use the highlight (and unhighlight) options.
Jörn
On Tue, Oct 28, 2008 at 7:30 AM, Validatorian [EMAIL PROTECTED]wrote:
I need to perform a custom action when it turns invalid.
Currently, I have this:
success: function(label) {
No idea, I'd need a testpage to look at. jsbin.com is quite useful for that.
Jörn
On Tue, Oct 28, 2008 at 12:16 AM, shapper [EMAIL PROTECTED] wrote:
The values of the select, the input and the names of the selected
checkboxes are added to a string and added to the unordered list as:
liInput
The data came froma webservice (ASP.NET in XML format)
function GetData_callback(xml, dest) {
var data = new Array();
try {
var i = 0;
$(anyType, xml).each(function() { data[i] = $(this).text();
i = i + 1; });
}
catch (ex) {
alert(ex);
}
finally {
D'OH!! I'd not thought of that, but as you point out, the selector is
a string, so it should have occurred to me at some point. Thanks to
yourself and Josh for the replies. As it happens, this is a FAQ for a
number of programming languages I've used, and I usually end up
hunting for an eval() or
Hi everyone, I've been playing with jQuery a lot lately but my skills
could use a lot of work. I recently made this small snippet of script
to show and hide tablerows from a link that looks like this:
a href=1 class=ahref1/a
this will show:
tr class=box1 box
tdetc/td
/tr
Javascript:
I'm really lookin forward to the new version!!!
It's awesome that you're still workin' on it! ;)
For those interested in extending jQuery the OO way, I have posted an
article on this subject here.
http://santrajan.blogspot.com/2008/10/what-john-resig-did-not-tell-you.html
noscript is just an element that is displayed when JavaScript has been
disabled (99%) in the user's browser or when JavaScript is not supported by
it (1% mostly search engines).
On Tue, Oct 28, 2008 at 12:48 AM, 5h4rk [EMAIL PROTECTED] wrote:
Thanks! Now I get it. Can you explain the reasoning
Hi,
I have the following on a JQuery Code:
$('li class=DynamicList/li').appendTo('#Themes')
.append(subject)
.append('br /')
.append(levels)
.append('br /')
How can I add
.append(subject)
.append('br /')
only if subject is not empty and
.append(levels)
.append('br
Hi !
I need your help !
I want to create an asynchronous treeview with the jQuery plugin but
the documentation for asynchrone mode doesn't exist
My problem is simple , I just want to call a function when i click on
an item of treeview (parent and children) and passed the id to this
Hi everyone,
I have a question on JQuery selector. I want to add a class, last,
into li elements where have !-- This is the one -- comment next to
it under different ul but have the same class u.
This is what I ended up with. However, it only selects li final two.
$(.u
Try:
$(.u:last li:last).addClass(last);
On 28 Okt., 13:07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi everyone,
I have a question on JQuery selector. I want to add a class, last,
into li elements where have !-- This is the one -- comment next to
it under different ul but have the same
Because you forgot to close the de first ul element.
Mauricio
-Mensagem Original-
De: [EMAIL PROTECTED]
Para: jQuery (English) jquery-en@googlegroups.com
Enviada em: terça-feira, 28 de outubro de 2008 10:07
Assunto: [jQuery] JQuery selector
Hi everyone,
I have a question on
$(.u:last li:last).addClass(last);
Close.
$(ul.u li:last-child).addClass(last);
You may want to move that child ul inside an li - it's not proper HTML
to put a UL inside a UL.
--John
On 28 Okt., 13:07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi everyone,
I have a question on
It's preferable correct the invalid markup and use the selector you have
chose or ( $(.u li:last-child).
E F selects all elements F that are descendants of E element.
E F selects all elements F that are children (direct descendants) of E
element.
Mantra: Validate! Validate! and
I have an object created using json_encode and via the console.log
entry as suggested, I can see that it is correct. I have a backend
program that I'm wanting to pass this object to, so that it can do a
json_decode and then process that data. When I try to pass the
object to it, using:
Hi!
I suppose it's:
class=lightbox-enabled rel=lightbox-myGroup
not just rel=lightbox-myGroup
And maybe myGroup instead of just group?
Hello,
I have the following:
if (subject == '---') {
if(!$('label[for=Subject,class=Error]').length) {
$('#Subject').parent().after('label for=Subject
generated=true class=ErrorRequired field/label');
}
}
I need to check if a label with for=Subject and class=Error
exists:
I have the following on a JQuery Code:
$('li class=DynamicList/li').appendTo('#Themes')
.append(subject)
.append('br /')
.append(levels)
.append('br /')
How can I add
.append(subject)
.append('br /')
only if subject is not empty and
.append(levels)
Hi everyone, I've been playing with jQuery a lot lately but my skills
could use a lot of work. I recently made this small snippet of script
to show and hide tablerows from a link that looks like this:
a href=1 class=ahref1/a
this will show:
tr class=box1 box
tdetc/td
/tr
Javascript:
Hi,
if(!$('label[for=Subject,class=Error]').length)
Have you tried $('label[for=Subject].Error'?
Christof
Hello,
thanks for your help. But it is still not working :-(
I suppose it's:
class=lightbox-enabled rel=lightbox-myGroup
not just rel=lightbox-myGroup
And maybe myGroup instead of just group?
Now my code looks like this:
a class=lightbox-enabled title=IMG_1964_dxo
rel=lightbox-myGroup
I have the following:
if (subject == '---') {
if(!$('label[for=Subject,class=Error]').length) {
$('#Subject').parent().after('label for=Subject
generated=true class=ErrorRequired field/label');
}
}
I need to check if a label with for=Subject and class=Error
exists:
You can also get rid of the :not
selection (which may be what's slowing things down) by first hiding
*all* .box rows then just showing the one you want, rather than hiding
after the fact:
Thanks a lot for your input!
The boxes don't the classes except box, so thanks I'll make id's out
of
On Oct 28, 8:49 am, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
No idea, I'd need a testpage to look at. jsbin.com is quite useful for that.
Jörn
Hi Jörn,
If you don't mind I prefer to upload an example to my server. It is
easier because the code is not so simple.
flycast schrieb:
I have this page at:
http://www.hopecc.net/ministries/adult
I use slideToggles to show and hide somecontent. The problem is that
in IE only any content that is inside p/p tags display properly
validate your document first, see:
h3Crown Ministries/h3
div
Hi, I have just started using JQuery. And so far, I have gotten some
problems with adding events in the loading stage to a button.
The following is my code
head
script src='js/jquery.min.js'/script
script type='text/javascript'
$(function(){
Hi, I have a lot of documents that have a mix of absolute and relative
links. I'm using the following code to add the full URL and make the
links all absolute. It works for the links that are relative, but it
also puts the full URL in front of the links that are already
absolute, making them
In this case you might use that solution (if you can gurantee the id
won't mess with the selctor), but I would usually just do a
$(document.getElementById(var)); that way you don't have to escape
var.
imagine you had a div id=foo :first-child) /div
then var id=theDiv.attr(id) // id would now be
claudes,
I recently modified the jCarouselLite plugin to take in a
parameter for how many rows that you want shown when scrolling
horizontal or columns when scrolling vertical. I am not sure the
easiest way to get you the code so I am just going to paste it here.
(function($) {
I have a form with updatePanel. I ahve Jquery inimplemented on this
form.
Everything works fine, but when a asynchronous postback takes place
when I clickc the button inside the updatePanle, all Jquery features
goes away.
I googled for this and found that, I need to write the Jquery code in
Try using this to create the plugin:
(function($) {
//
// plugin definition
//
$.fn.dockBar = function(options) {
// build main options before element iteration
var opts = $.extend({}, $.fn.dockBar.defaults, options);
// iterate and reformat each matched
I'm having trouble overriding the default z-index for the datepicker.
Here's the code I have (minus some stuff that doesn't apply to this issue):
$(#datefield).datepicker({
beforeShow: function()
{
$(this).css(position, absolute);
$(this).css(z-index,
Take a look at the toggle-option.
Jörn
On Tue, Oct 28, 2008 at 12:12 PM, garthos [EMAIL PROTECTED] wrote:
Hi !
I need your help !
I want to create an asynchronous treeview with the jQuery plugin but
the documentation for asynchrone mode doesn't exist
My problem is simple , I just
jQuery makes it simpler:
$(#msg_button).bind(click, show_msg);
Or, if you are not reusing the function:
$(#msg_button).click( function() {
alert('Nice to show you this');
});
-- Josh
- Original Message -
From: Jquery-Newbe [EMAIL PROTECTED]
To: jQuery (English)
Hello,
I have the folllowing:
var levels = [];
$levels = $('input[name=Levels]:checked +
label');
levels = $levels.map(function() { return $
(this).text(); }).get();
How can I check if levels array is empty?
I tried levels, levels.val(), etc but I was not able to make
hi
i have added a ui.slider now that can be used to change the speed. The
animation stops when someone drags the slider and continues when the
slider is set to a new value.
it works in principle but somehow the whole animation is then quite
bumpy and not smooth anymore...can't really figure
It's just a standard JS array:
var empty = !levels.length;
--Klaus
On 28 Okt., 17:15, shapper [EMAIL PROTECTED] wrote:
Hello,
I have the folllowing:
var levels = [];
$levels = $('input[name=Levels]:checked +
label');
levels = $levels.map(function() { return $
I was wondering where the plugin demos are?
Browsing thru the list of latest plugins, all it seems to list is the
name, sometimes a version number and then a link to download the
plugin itself
Lots of times I don't even understand the plugin description until I
see it working and code
Click the title to view the plugin itself, lookup the Resources
section, if a demo is available its listed there, else try the home
page for the project.
Assuming your on http://plugins.jquery.com?
M
On Oct 28, 5:30 pm, JCQ [EMAIL PROTECTED] wrote:
I was wondering where the plugin demos are?
I'm doing something similar to this example:
http://docs.jquery.com/Plugins/Validation/Methods/required#dependency-callback
I have a date input field, and if you are under 13, it pops up another
field for parent's age.But unlike this example,I want the parent to be
required to be 18 or older.How
Ah, now I see it. Actually in IE it doesn't alert at all when hovering
the menu only.
I think IE doesn't support the target attribute. Try this:
subMenu = (event.target || event.srcElement).id;
On Oct 28, 3:39 am, csplrj [EMAIL PROTECTED] wrote:
I am using Firefox 3.0.3 and IE 6.0
If we
Hi all, i'm going to finish my first plugin, i'm not exactly a
programmer.. just a webdesigner with aptitude for programming,
especially with jquery :)
I would like your opinion about this plugin, and some advices to make
it work better.
here it's a simple demo page..
That's very well done. Good job Diego.
I really like the animation when you hover over the thumbnail.
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of diego
Sent: Tuesday, October 28, 2008 2:04 PM
To: jQuery (English)
Subject: [jQuery] my first
Hi Diego,
I think it's a nice plugin (just tested it, didn't look at code)
I think it might be better if you showed some loading indicator
somehow, while it's waiting to load the large images.
Other than than, good job on your first plugin!
On Oct 28, 12:04 pm, diego [EMAIL PROTECTED] wrote:
Hello,
Run the following code snippet in Firefox and open up Firebug. It
fires a custom event upon left or right click. The handlers for
'myclick.left' and 'myclick.right' work as expected. The problem is
that 'any click' is only logged to the console in case of a right
click, and not in case of
Hi Validatorian,tnx for your reply, the loader it's just there, but
maybe it's too dark to see it, i'm going to change it. :)
Regards
Diego
On 28 Ott, 20:43, Validatorian [EMAIL PROTECTED] wrote:
Hi Diego,
I think it's a nice plugin (just tested it, didn't look at code)
I think it might
Hi Andy, tnx for your reply, the animation hover the thumbs it's very
simple:
$('.img_in li').hover(function() {
var img = $(this).attr('title')
$('#'+img).stop().animate({
padding:'10px',
height : '124px',
when I run the sentence jQuery ( '# divId'). fadeIn ( slow); in ie
disappears in the backgroud, the background is a PNG image, the style
is for ie:
background-image: none;
filter: progid: DXImageTransform.Microsoft.AlphaImageLoader (src ='../
images2_FR/background.png ',
sizingMethod =' scale
Hi all,
I am using the Taconite (http://malsup.com/jquery/taconite/) plugin to
dynamically append external scripts (script) and stylesheets
(link) to the page head section. Inspired by the Taconite example
Demo1, I manage to get external scripts working, however stylesheets
only seems to
Looks like what's happening is the update panel (.NET right?) replaces
the entire html content with the asynchronous postback. At this
point, none of your HTML elements are bound to the event handlers
since they were all rewritten. You could prevent this by doing one of
2 things -
1) Event
im trying to write a cork board type app for a site and im having a
little trouble with the drag and drop. basically there are 2 divs
(#picker, #board) that load on the page. the #picker div contains
various images that the user can drag and drop onto the #board div.
once an image has been
I see a lot of demos for jquery and normally how I do it is I just do
a right click and copy the source of the demo right on to my web
application. This has however lead to a messy javascript library
because I have my pieces of the same code lying around the place.
Could someone with experience
I have a script that generates a form. I'm pulling this form into a
dialog box on my main index page via Ajax and trying to attached the
Validate plugin to the form.
So I've got this:
$(a.attendee_add).click(function() {
//Get href from link
var addURL = $(this).attr(href);
Hello,
I'm new to jQuery and I am currently working on google gadget which
has some animations.
I have wrote the jQuery code and manage to make it work:
$('#itemn').click(function() {
if ($(#tabcontentn).is(:hidden)) {
if(active == init) {
Really an impressive work, as useful as important.
It helps me because, for now, I'm temporarily without daily access to
the Internet.
Congratulations
i have a sidebar menu where users can click to load new data into the
main part of the screen. it works most of the time but after a few
clicks in the menu, the whole page just freezes and the loader stops
working. it doesnt load any more data. its not specific to any page or
link. it just stops
Hello guys,
I'm in a big trouble trying to create a simple jQuery function, and my
boss is on my neck asking when I'll be done with this work... I need
help!!!
My HTML is:
lia class=apImg/a
div
form
ul
li ... /li
You might want to see if this is your problem:
If you have a set of functions, jQuery or otherwise in the main page,
then you reload an inner div with Ajax content, you will very likely
find that the new Ajax'ed content can no longer reach the functions in
the main page. There is some sort of
i have a sidebar menu where users can click to load new data into the
main part of the screen. it works most of the time but after a few
clicks in the menu, the whole page just freezes and the loader stops
working. it doesnt load any more data. its not specific to any page or
link. it just stops
IE7 is telling me the following script has a syntax error and I have
tried to find it but haven't located it . . . yet:
(function($){
$().ready(function() {
// validate the comment form when it is submitted
$(#commentForm).validate();
//
Please take a look on example code:
script type=text/javascript
jQuery(document).ready(function() {
jQuery(#imageShowcase img).hide();
jQuery(#productImgDefault).show();
jQuery(#colorSelector).change(function() {
// Hide all images on slect element change action
I am having a binding issue. I've read enough in the jQuery docs and
on this forum to have a cursory understanding. Without many examples
to refer to, I am unsure of how to implement Live Query in order fix.
I'm calling this refreshLabels() function each time a form checkbox is
clicked. On the
Working with Lotus Notes developer - apparently, when building a form
with radio buttons elements, Lotus automatically puts the value in
text beside the button. He says there is no way to override this. So
we get:
input name=joe type=radio value=1 /1
input name=joe type=radio value=2 /2
input
Working with Lotus Notes developer - apparently, when building a form
with radio buttons elements, Lotus automatically puts the value in
text beside the button. He says there is no way to override this. So
we get:
input name=joe type=radio value=1 /1
input name=joe type=radio value=2 /2
input
thanks, Mark.
yes, I'm definitely in the right place --- I just did an interesting
test. I randomly picked 25 plugins from the latest plugins list and
only 2 had any demo/documentation attached in the Resources section.
So either I'm not looking in the right spot, or maybe everyone is just
The problem might be that there is a , after the line email:
Please enter a valid email address.
Try removing the comma and see what happens.
-Tim
On Oct 28, 1:10 pm, MauiMan2 [EMAIL PROTECTED] wrote:
IE7 is telling me the following script has a syntax error and I have
tried to find it but
to me, it looks like the z-index calculation is only happening when
the board is set up. What if you put that zmax calculation into its
own method, say, calculateZmax(), and then from *both* the
('.dragImage').click() function as well as the drop: function you
called calculateZmax() ? Either
*property, that is.
BTW, are you facing this issue on real project? Using jQuery event
handlers the 'this' keyword usually suffices.
On Oct 28, 4:55 pm, ricardobeat [EMAIL PROTECTED] wrote:
Ah, now I see it. Actually in IE it doesn't alert at all when hovering
the menu only.
I think IE
I agree with Tim, that is EXACTLY the problem. IE seems to hate any
trailing commas in that json-ish type of data structure, sometimes
it's called a syntax error, and once in a while I'll also get a
message like no object detected or somesuch. Anyway, kill that
trailing comma Tim mentioned and
Try removing the :first like this:
$(a.confirmar).click(function(){
$
(this).parents(li).next().find(a.apImg).addClass(apImgOn).removeClass(apImg);
});
Also, since the methods are chainable, you do not need to traverse to
the item again. You can just call .removeClass() right after adding
I'm sure this one is super simple for a bunch of people, but I'm a bit
stuck.
I have a list of items (show listings) and when a user clicks on a
show, I want a map to slideDown and display a map of the location of
the show.
If the user clicks on another show, the map that is being shown slides
Not sure if I understand, but you can't add an id to the links? is
that correct?
Any chance you can have your links read
Select option with a href=#Blue/a text ?
That way you could use the .html() selector to get the value of the
clicked item and feed that into your (#productImg +
Nice work,
I would like to see the behaviour as follows:
When one image is zoomed and you click on another there are 3
options: just close the first one (as it does now) OR close the first
one and open the second one (better) OR open the second one as well.
I should add, this is a great solution to another issue. I use
highslide on a website but just loading when the combination is Win2K
and IE6 causes a computer to reboot
i am using the following code to load dynamic content into a div
(mainContentArea) on my webpage. I occasionally get a parserError when
loading the content into dom. but sometimes not.
what is causing the parserError and how can I fix this?
this is my jquery code:
For what it's worth, if you can think of a better (read: cleaner) way
to do what I'm currently doing, please let me know :)
On Oct 28, 11:26 am, Validatorian [EMAIL PROTECTED] wrote:
I'm doing something similar to this
Adding the parent-age-check is just another method. In this case, I'd
add a custom age-method
(http://docs.jquery.com/Plugins/Validation/Validator/addMethod), and
use that together with date and required.
Jörn
On Tue, Oct 28, 2008 at 11:49 PM, Validatorian [EMAIL PROTECTED] wrote:
For what
Does $(#attendee_editForm) match any elements? A testpage would help.
Jörn
On Tue, Oct 28, 2008 at 5:38 PM, ryanhavoc [EMAIL PROTECTED] wrote:
I have a script that generates a form. I'm pulling this form into a
dialog box on my main index page via Ajax and trying to attached the
Validate
You don't need a plug-in to do that:
$('head')
.append('link href=css/geral.css rel=stylesheet /')
.append('script type=text/javascript src=calendar.js/
script')
On Oct 28, 2:29 pm, Bob Schellink [EMAIL PROTECTED] wrote:
Hi all,
I am using the Taconite
Great, it worked. Thanks a lot for your help...
On 27 Paź, 23:09, Joel Birch [EMAIL PROTECTED] wrote:
Hello,
My suggestion is to try putting the Superfish CSS before the script
tags rather than after them in the source code.
Joel Birch.
Hi all,
I have a table that I will usually want to focus the first input box
in the first column in the last row. Something like this:
table
tbody
tr
...
/tr
tr
td
input -- selects this one
input type=hidden
/td
td
input
/td
Hi Microbe, i'm glad that you like my work,
today i just finished to develop the basic options about my script,and
it works fine with all browsers tested,FF2/3, opera 9,ie6/7,safari(for
pc), google chrome, and this is a great result for me.
I want to add the next and prev btns, and a space for
I'm using Superfish for the top horizontal drop-downs on
http://www.tapestrydirect.com/. It works great in Firefox, but in IE7
the width of the submenus expands an additional 20 pixels or so after
initially appearing on hover.
Anybody know why this is happening?
Thanks
I am fairly new to jquery and javascript, but giving it a fair try because I
am interested in learning it. The trouble I am having revolves around my
navigation links. I would like each one to show a specific div in a
container I have set up. The HTML loads with all of the divs visible, which
I
IE hates it for good reason. Proper JSON (and Javascript object
declaration) has no trailing comma on the final line.
This is one thing IE does right that the other browsers are too giving
on.
On Oct 28, 5:57 pm, JCQ [EMAIL PROTECTED] wrote:
I agree with Tim, that is EXACTLY the problem. IE
$('tbodytr:last-childtd:not(.readonly):first-
childinput').focus().select();
On Oct 28, 7:07 pm, TimW66 [EMAIL PROTECTED] wrote:
Hi all,
I have a table that I will usually want to focus the first input box
in the first column in the last row. Something like this:
table
tbody
Is this scenario supported by Taconite or should I rather the eval
tag for appending stylesheets?
Use the eval tag.
You can bind those events and call ajaxSubmit when appropriate.
ajaxForm waits on the submit event.
Mike
On Oct 27, 6:24 pm, brian mahoney [EMAIL PROTECTED] wrote:
Is there a way to get the jQuery Form Plugin to work with a
keyUp() or change() instead of having to use a submit button?
Recently i decide to use the animate function of jQuery to pop up an
absolute position it window that holds form data. The problem is that
when i use the animate function to pop up the window the blockUi in
Internet explorer 7 cannot handle oppacity and cannot display the
loader. Just white
Maybe I misunderstood you, but it seems like you're referring to age-
method as if it already exists? Or are you saying to use math and
do it that way?
On Oct 28, 4:00 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Adding the parent-age-check is just another method. In this case, I'd
add a custom
Thank you! Of course, it makes sense. I guess I was caught up on the
readonly attribute of the input box, not thinking about it as a class
for the TD. One minor problem, I had to use :first instead of
:first-child (didn't focus anything). But it works!
On Oct 28, 6:26 pm, Ryura [EMAIL
Please ask on the jQuery UI list:
http://groups.google.com/group/jquery-ui/
- Richard
On Tue, Oct 28, 2008 at 11:28 AM, Mazureth [EMAIL PROTECTED] wrote:
im trying to write a cork board type app for a site and im having a
little trouble with the drag and drop. basically there are 2 divs
Can anyone please explain why in FF the thumbnails are displaying as
full images and the main image is not displaying at all. Works fine in
opera and safari.
Link: http://cmphotographer.com.au/category/wedding/
Hi everyone,
I'm having a very strange problem and I'm hoping someone can help me.
On our website, we have a page that lists events. On that page, there
are links to scroll down and view the details of each event.
The problem is: When you click the internal link, all content above
the anchor is
Yes I am facing this on real project
But should not JQuery handle this issue as JQuery is meant for
crossbrowser?
CSJakharia
100 matches
Mail list logo