Take a look at the available options:
http://docs.jquery.com/Plugins/Validation/validate#options
The one you should start with is showErrors. The default displays the
inline messages, and by overriding it, you should be able to join the
error messages into a string and put that into an altert.
Hi
Content must be loaded before you can do any manipulations with it via
js..
Or you can load content via ajax calls ( i.e. $.load() ) and modify it
before appending to document.. But it isn't the most nice way to do
it..
Can you explain what exactly you are trying to do ??
Btw i think you are
$(document).ready(function() { /* your code */ }) -this means that
code inside {} brackets will execute after DOM is loaded..
On Jul 27, 5:59 am, Mutual Designs mike.f.griffi...@gmail.com wrote:
How do I prevent the content loading on my website before the
Javascript loads. It seems that
Thanks for that! I thought of doing something like that but it means
validating twice really so I was thinking that when the validation
call is done and the field, whatever it may be is correct then it
removes the span.
Problem is I dont get where the plugin adds the checked class I know
that it
Hi, I didn't check your code, but when you write current value and
old value I supposed you change those dynamically. In that you
should take a look at this:
http://docs.jquery.com/Events/live
Cheers
On 27 Jul., 05:49, JC joel.cook...@gmail.com wrote:
Now, I was not expecting this. You can
Hi All,
I have the following page:
http://87.90.101.154/DesignAndCo/index.php?Itemid=38option=com_virtuemartlang=frpage=shop.product_detailsflypage=product_flypage_design_and_coproduct_id=372category_id=40manufacturer_id=24
If you move the mouse cursor over the orange Euro image, a jQuery
The first time I held the mouse over the image, the images did not display.
But when I held the mouse over it again, the images showed. I saw them
fading in as well, so it seems they first need to be loaded after the
element is called.
Hope this helps a little bit to diagnose the problem.
On
Using the following code example from Scott Robbin, which simply allows for
separate html pages to slide in and out of the one screen, I wanted to
expand this by sliding in some DHTML.
Here is the page-sliding code used:
http://srobbin.com/blog/jquery-pageslide/
DHTML animated code:
Maybe you can hide the elemets first(using css), then after the
javascript loaded, modify elements and show them.
This still isn't a nice way.
On Jul 27, 8:59 am, Mutual Designs mike.f.griffi...@gmail.com wrote:
How do I prevent the content loading on my website before the
Javascript loads. It
My aspx page:
script type=text/javascript
$(function() {
$('#date0').datepicker({
changeMonth: true,
changeYear: true,
yearRange: '-30:+0'
});
/script
div id=tabs
ul
Hi,
I'm using Jquery to both Drag (and drop) and sort a visual list or
representation of VOIP phones.
The problem is that after I have dragged (and dropped) a DIV. It will
not sort at all anymore.
After you have dropped for sorting, the DIV goes back to where I
dropped it with dragging.
I
Hi Everyone,
I am trying to get images to animate from the center in height and
width.
I can get the animation to work but can't find anywhere how to get it
to work from the central point!
Hopefully someone can help me here.
Thanks
Sean
I think this article may help:
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content
On Jul 27, 3:51 am, Mushex Antaranian jesirobende...@gmail.com
wrote:
$(document).ready(function() { /* your code */ }) -this means that
code inside {} brackets will execute
I am sorry, I did not understand your answer. Do you have a solution
to my problem?
On Jul 26, 3:41 am, 刘永杰 liuyongjie...@gmail.com wrote:
easyer.
2009/7/25 mila mshneyder...@gmail.com
I have data that looks like that
a href='myURL/myapp?name=mynameparam1=val'23/a
a
Hi,
I have today started to mess around with the Treeview plugin, but I
have not been able to find a decent documentation. Am I just looking
in the wrong places?
I would have thought that by going here -
http://docs.jquery.com/Plugins/Treeview/treeview#options
I would see all the available
That page as an options tab:
http://docs.jquery.com/Plugins/Treeview/treeview#toptions
Jörn
On Mon, Jul 27, 2009 at 3:21 PM, SuneRsyko...@gmail.com wrote:
Hi,
I have today started to mess around with the Treeview plugin, but I
have not been able to find a decent documentation. Am I just
glad it worked!
On Jul 27, 12:15 am, Billy mail.billy...@gmail.com wrote:
Thank you for that hint - I changed the CSS to display:inline, and the
script now works fine on IE. :D
On Jul 21, 1:13 am, amuhlou amysch...@gmail.com wrote:
I don't know if this is part of the issue or not, but IE7
Hi,
Have you tried using the connectToSortable option for draggable?
Thanks Regards,
Dhruva Sagar.
On Mon, 2009-07-27 at 00:21 -0700, freq wrote:
Hi,
I'm using Jquery to both Drag (and drop) and sort a visual list
correction, I got the images showing now, but not the animation.
--
View this message in context:
http://www.nabble.com/page-sliding-jQuery-Javascript-code-not-playing-with-DHTML-page-tp24679601s27240p24682206.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
I was able to get this to work perfectly by removing the dataType. It
ran my success function and parsed as XML. Is this a bug?
On Jul 24, 3:01 pm, TCoakley ebun...@gmail.com wrote:
I am attempting a fairly easy ajax call within a zend framework, but
am getting a parseerorr. I have validated
Well I have sorted the problem of the span when there is a sucess on
the input. I have added these two lines to the success method:
label.prev('form :input').addClass('valid');
$('form :input').filter('.valid').prev('label').find('span').hide();
My problem is now that when there is an on the
To all:
I have created a plugin that handles International numeric formatting
on the fly by using a Reg Expression. Before I release this I would
appreciate comments and suggestions for improvements.
Demo can be viewed here http://decorplanit.com/plugin/index.htm
Thanks in advance.
Bob
Thanks Ricardo, that was exactly what I was looking for - just in the
wrong place I guess!
On Jul 23, 10:19 pm, Ricardo ricardob...@gmail.com wrote:
Guess what?
var e1 = $(#firstObject);
var e2 = $(#secondObject);
e1.add( e2 ) is exactly what you're looking for :)
Jack,
taking into account the need to control the width of the alphabet
list, my original suggestion of including a configurable list of valid
letters (to cover accented characters), might not hold water because
potentially you could have well over 26 letters depending on the
language.
The
who knows if it is possible to join two jQuery objects to make
a new object. For example...
var e1 = $(#firstObject);
var e2 = $(#secondObject);
var combined = e1.add(e2); // This is the expression I'm looking for
Thanks,
http://www.voguemalls.com
Hi..
i have some doubts in usage of jqgrid. I am trying to achieve fallowing
functionality.
I have insert and edit functionality in same form. Now i have one field
called UserName, which i don't want to edit. so for that i make it
readonly as following:
{ name: 'UserName', index: 'UserName',
Hi all,
I'm completely stuck and been trying to solve this all day! Any help would
be greatly appreciated...
Basically, I have a suckerfish type navigation. It works fine with CSS and
I'm trying to add some JQuery to animate the slide-down effect. I've got
that working, but I need to have the
divs, updated using ajax.
gnetcon wrote:
Hello, all!
Brand new to jQuery, although I have used some apps that use jQuery in it.
I have a page I have to build using PHP and (preferably) jQuery. I have an
immense array with anywhere from 100 to 10,000+ items in it. I'll have a
page with 3
appendTo()? What do you mean by join?
On Mon, Jul 27, 2009 at 11:40 AM,
www.voguemalls.comyuyuhua...@gmail.com wrote:
who knows if it is possible to join two jQuery objects to make
a new object. For example...
var e1 = $(#firstObject);
var e2 = $(#secondObject);
var combined =
And paginate the 1st div, using AJAX to refresh it with each page
for your list.
On Mon, Jul 27, 2009 at 11:58 AM, Liam Potterradioactiv...@gmail.com wrote:
divs, updated using ajax.
gnetcon wrote:
Hello, all!
Brand new to jQuery, although I have used some apps that use jQuery in it.
I
Hello, all!
Brand new to jQuery, although I have used some apps that use jQuery in it.
I have a page I have to build using PHP and (preferably) jQuery. I have an
immense array with anywhere from 100 to 10,000+ items in it. I'll have a
page with 3 panes. The first pane will list the basic
already been answered, his example was his answer.
brian wrote:
appendTo()? What do you mean by join?
On Mon, Jul 27, 2009 at 11:40 AM,
www.voguemalls.comyuyuhua...@gmail.com wrote:
who knows if it is possible to join two jQuery objects to make
a new object. For example...
var e1 =
Hi,
I am using jqModal (http://dev.iceburg.net/jquery/jqModal/#examples)
to open a modal div (some will argue it's an overlayed div since
I'm not forcing focus as code below shows).
An html form is loaded using ajax. I'd like to submit this form and
load the html response in the modal.
Here's
I considering input rewriting (transformation, conversion, etc, use
the verb of your choice) to be an essential part of validation.
This means phone numbers, SSN, dates, credit card numbers, etc should
all accept loose input types and should be standardized for backend
processing.
(Personal Pet
A letter count is FAR easier - just get the string's length.
L
Rick Faircloth wrote:
Is it as simple to do a letter count?
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf
Of Liam Potter
Sent: Friday, July 24, 2009 6:53 AM
To:
I takes about 3 hrs to display your first message. dunno why
- Original Message -
From: Jon Jackson j...@jon-jackson.co.uk
To: jquery-en@googlegroups.com
Sent: Sunday, July 26, 2009 5:23 AM
Subject: [jQuery] My messages don't show?
What could I be doing wrong?
I've joined the
I had 1 problem with ajaxSubmit and switched to using $.post and it
solved my problems, maybe it can be an alternative for you
On 26 juil, 01:49, anoop anoopkum...@gmail.com wrote:
After several attempts, I have been able to consistently reproduce
this problem. It appears that this is an issue
This:
(function() { do some stuff } )();
is known as a closure. It just runs once and it does not leave around
any global variables (that is, if you also don't set any inside this
function also).
Compared to this:
function doSomething() { // do some stuff };
The doSomething variable will exist
All messages are moderated - so it'll depend heavily upon when we're able to
review them.
--John
On Mon, Jul 27, 2009 at 3:19 PM, Cesar Sanz the.email.tr...@gmail.comwrote:
I takes about 3 hrs to display your first message. dunno why
- Original Message - From: Jon Jackson
You want to do this with jQuery (Javascript)? This should be done on
the server side.
A user can stop Javascript, you know. If the user submits the form and
doesn't wait for 30 seconds before going to another website, the email
will not be sent to them...
On Jul 24, 7:54 pm, bharani kumar
hi all,
I'm new to jQuery.
I'm making a website for a dance institute.
I've to embed around 20 3-4min videos in my website's showcase and an
image slideshow of 70-80 images.I've found a plugin for image
slideshow that'll fetch two images at a time from a flicker or picasa
a/c but i'll have to
This is probably simple, but I am new to jQuery and am trying to wrap
my head around things.
Basically what I am trying to do is a very basic quiz. I have 3 groups
of radio buttons (3 questions with 4 possible answers for each
question, so.. multiple choice).
Each answer has a number value
Something like this:
$(button).click(function(){
var total = 0;
$(input:radio).each(function(){
total += $(this).val();
});
alert(total);
return false;
});
On Mon, Jul 27, 2009 at 16:41, briggs81 brigg...@gmail.com wrote:
This is probably simple, but I am new to
It sounds strange that value=2 would be the number of points.
Usually, a value would be used to indicate a unique answer for a
question. Usually, 1, 2, 3, 4 if you have 4 possible answers for one
question. I would suggest using the ID or CLASS attribute, or
Javascript objects to store that type
var group1 = $('input[name=group1]:checked').attr(value);
var group2 = $('input[name=group2]:checked').attr(value);
var group3 = $('input[name=group3]:checked').attr(value);
This will grab the value of the selected radio button within each of
your groups.
Then do some math to add up your
I agree Liam. If you are doing a letter count then spaces punctuation
etc all count towards your supposed limit. Word Counts are typically
useless. :|
On Jul 27, 3:09 pm, Liam Byrne l...@onsight.ie wrote:
A letter count is FAR easier - just get the string's length.
L
Rick Faircloth wrote:
So, this isn't related to any one bit of code, but it seems to be a
problem I run into almost everytime i need to stop a form or link for
doing what it was originally intended to do (submit).
Now, i have used return false; many times, but it never works at
first.
I'm never sure what I end up
It looks like you're using the old liveQuery plugin. Why not just use
.bind() or .live()?
--John
On Mon, Jul 27, 2009 at 5:11 PM, pedalpete p...@hearwhere.com wrote:
So, this isn't related to any one bit of code, but it seems to be a
problem I run into almost everytime i need to stop a form
You could start by writing custom methods for each of these input
types, and where possible, delegate to the existing methods:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
What do you think?
Jörn
On Mon, Jul 27, 2009 at 8:42 PM, Brett Ritterswift...@swiftone.org wrote:
I
IDs in HTML are unique. You cannot have multiple elements with
id=removeSearchword.
You can use the CLASS attribute instead, or make unique IDs like:
id=removeSearchword_1, id=removeSearchword_2, ...
and then change your selector to:
$([id^=removeSearchword_]).click(...);
On Jul 26, 10:04 am,
If you want a global variable, set a global variable.
var isAuthenticated = false;
$(document).ready(function(){
// do your ajax here and set: isAuthenticated = true;
// in your success callback
});
On Jul 26, 5:27 am, FrenchiINLA mamali.sohe...@gmail.com wrote:
I would do like that:
On Mon, Jul 27, 2009 at 5:20 PM, Jörn
Zaeffererjoern.zaeffe...@googlemail.com wrote:
You could start by writing custom methods for each of these input
types, and where possible, delegate to the existing methods:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
If I'm following
Hi, i’m Vincenzo, a web developer from Italy. I use your ajax code
following the guide ad the example:
http://www.javascripttoolbox.com/jquery/?doctype=strict
. I have some question about my work with your code, if can answer me.
Here the question:
The problem is that my code do not run on
I racking my brain because I can't use PHP for this site.
:-(
I have used all the different variations of suckerfish and superfish
for a long time now.
With this version to help alleviate massive updating, I want to make
this one a global include and have the script pick up the page URL and
I need to make a change to a web page that has lots of JQuery
things in it, it appears. Not knowing anything about the actual use
of JQuery, however, while I will start looking at the doc, can someone
help me with what to look for in a 4000+ line file to find out where
the value is being set
Having JS sanitize for the backend is somewhat dubious, I'd not go
there, but you probably don't want to discuss that.
Anyway, a validation method has access to the validate element, so you
could as well write a method that just sanitizes, nothing else.
Combine that with a strict validation
I'm using a gallery scrollable component for thumbnails. When a user clicks
on the thumbnails it loads that larger version of the image into a div on
the same page. All the large images are already loaded into the div.
My problem is when a user goes to click on the larger version of the image I
Here is my simple bit of JS that isn't working;
$('#trigger').hoverIntent(function(){$('#info').slideDown('500')});
Maybe it is conflicting with the other plugins I am using; scrollTo,
localScroll and serialScroll? (I don't see why it would.)
Thanks in advance, Mat.
Hi,
If I focus on a field multiple times or submit the form multiple
times, I the script adds multiple error messages per field, both valid
and error classes, depending on the data entered.
Any suggestions?
Thanks,
John
Thanks John,
I wasn't familiar with the .live() before, but of course I'll use that
where I can.
Though I'm honoured and humbled by your response, unfortunately, in
this case, I'm using a 'submit', and the documentation says i can't
use .live on submit currently. (I did try and, and it didn't
If the return false fails, it's usually something wrong with parsing
your Javascript that causes the problem.
For example:
$(input#email).after(works);
It's missing a closing quote () after email.
On Jul 27, 12:28 pm, pedalpete p...@hearwhere.com wrote:
Thanks John,
I wasn't familiar with
On Mon, Jul 27, 2009 at 6:06 PM, Jörn
Zaeffererjoern.zaeffe...@googlemail.com wrote:
Having JS sanitize for the backend is somewhat dubious, I'd not go
there, but you probably don't want to discuss that.
I think we're in agreement there, actually. JS provides no security
and shouldn't be
On Jul 28, 5:09 am, Liam Byrne l...@onsight.ie wrote:
A letter count is FAR easier - just get the string's length.
The length of the string will give you a *character* count. I would
not inlcude punctuation, white space, etc. in a *letter* count. For
number of letters, try:
The most important part in my string is..it contains chinese characters...
For an example
I come from 香港---so totally 5 words instead of length = 15
Thx all of you.
On Tue, Jul 28, 2009 at 7:23 AM, RobG robg...@gmail.com wrote:
On Jul 28, 5:09 am, Liam Byrne l...@onsight.ie wrote:
A
Why post the question if you had the answer?
On Jul 27, 8:40 am, www.voguemalls.com yuyuhua...@gmail.com wrote:
who knows if it is possible to join two jQuery objects to make
a new object. For example...
var e1 = $(#firstObject);
var e2 = $(#secondObject);
var combined = e1.add(e2); //
That's a great explanation, James. I hope you won't mind if I nitpick a
point of terminology.
The code you were talking about is not a closure:
(function() { /* do some stuff */ })();
As you described, the advantage of this code is that any variables you
define inside the function won't
Thanks so much for the response - I was doubtful if my posts were even
making it into this list...
Yes - it is clear to me that there is a wierd and unknown issue with the
ajaxsubmit and I am trying other options - the $.ajax and the $.get/$.post.
I will try to debug a bit more if I can pinpoint
No problem, Michael. Thanks for the clarification regarding an
anonymous function and a closure, and the detailed explanation for
closures. I'll give some related resources a good read on closures. :)
On Jul 27, 1:46 pm, Michael Geary m...@mg.to wrote:
That's a great explanation, James. I hope
Anyone know how to create the slider effect, coda slider, so that it
opens up with something other than the first panel/div? I know there
is an option with serial scroll to do this, but for some reason its
not happening for me. Thanks in advance
Andy
Haven't you ever had the answer to a question, but not known you had the
answer? :-)
It's like the saying we had in high school:
Freshmen know not that they know not.
Sophomores know that they know not.
Juniors know not that they know.
Seniors know that they know.
-Mike
From: Kean
Since you didn't post your html and code, I would guess you don't have
name property specified on your html.
input type=text id=username/input
should be
input type=text id=username name=username/input
On Jul 28, 8:26 am, jckos johncar...@gmail.com wrote:
Hi,
If I focus on a field
personally i do not understand anything this guy says
back to the topic
i personally will put an extra/custom attribute in a like a ref=39
then $(a) and sort on the ref attribute.
If not mistaken, there is a sorting plugin somewhere or even in jQuery core.
Or you should be able to do it easily
On Jul 28, 5:53 am, James james.gp@gmail.com wrote:
This:
(function() { do some stuff } )();
is known as a closure.
You have a warped view of a closure. It is an example of the module
pattern, which can create closures, but doesn't necessarily do so.
URL:
As ButtersRugby said, usually you'll count characters because of a
string length limit for some field or display, so you'll want to take
all punctuation and spaces into account. Counting letters only is
rarely a real requirement.
s.match(/\w/g).length makes more sense at first sight, despite
Hi,
I am trying to dynamically load html into a table, i.e add new rows in
the table if a user clicks on an element in the table.
Calling code :
TDa href=# onClick=javascript:AddElement('someVal',
'someOtherval');return false;Click ME/a/TD
No problems there, I have a function :
function
Hi,
I am using the autocomplete on local client array , and want know how
can i allow user to key in the text if autotext could not find any
results.
your help is greatly appreciated.
Thanks,
sush
Try the most obvious method: '(#hiddenfieldId).val(' or
'(#hiddenfieldId)[0].value =' or '(#hiddenfieldId).get(0).value
='
assuming the hidden field is as specified below and the coder using
uniqueid.
input type=hidden id=hiddenfieldId name=hiddenfieldId /
If the code cannot be found, the
Figured it out, for those interested:
$(document.createElement('tr'))
.load('http://localhost:8080/admin/?page=moretabletest')
.insertAfter('.c_row' + i);
On Mon, Jul 27, 2009 at 9:30 PM, avrono avronolshew...@gmail.com wrote:
Hi,
I am trying to dynamically load html into a
Hi,
You could you the split function (assuming words are space sperated)
var mySplitResult = oXmlHttp.responseText.split( );
mySplitResult.length- Gives the array length, hence the number
of words - 1 (if I remember correctly)
On Mon, Jul 27, 2009 at 11:46 PM, Ricardo
That's seems to be exactly what I needed.
Unfortunately, live() only works with a limited number of events, and not
with sortable.
I saw there may be a plugin that could help : livequery.
No time to investigate further for now.
See you in a few weeks !
:D
On Fri, Jul 24, 2009 at 18:27, Jérôme
Hi,
I was trying out http://jquery.bassistance.de/treeview/demo/ Sample 2
with IE 8 in IE 7 mode. The menu animates and opens. When I click to
close, the menu collapsed instantaneously. However, it is working
perfectly in IE8 mode i.e. the menu animates while closing up. How do
I fix this for
81 matches
Mail list logo