There isn't any example integration code, by the datejs.com library
provides very good date parsing.
Writing a custom method
(http://docs.jquery.com/Plugins/Validation/Validator/addMethod) using
datejs should be easy enough!
Jörn
On Tue, Jul 14, 2009 at 3:27 AM, Mr Fett wrote:
>
> I've been con
this.parentNode is null
init()()jquery-12.min.js (line 12)
init()()jquery-12.min.js (line 12)
init()()jquery-12.min.js (line 12)
(?)()()editInPl...jquery.js (line 40)
F()()jquery-12.min.js (line 19)
F()()jquery-12.min.js (line 19)
F()()jquery-12.min.js (line 19)
init()()jqu
jquery.autocomplete.js:
http://pastebin.com/f22965a21
jquery-1.2.6.min.js :
http://pastebin.com/d1b52208c
autocomplete.css:
http://pastebin.com/f673adaae
auto.html :
http://pastebin.com/f729bfa7b
On Jul 14, 10:07 am, jazz wrote:
> Hi Folks,
>
> i have an issue with the autocomplete focu
Hi Folks,
i have an issue with the autocomplete focus...
i am unable to focus on the selected value..the value is when i
selected one value it is displaying the previous one..i tried somany
ways but found no luck..
Please refer my code once:
jquery.autocomplete.js : http://pastebin.com/f22965a
Ohh.
Guys, thanks a lot for the help.
It DOES work.
Problem was:
The #foo element on the sample page is in IFRAME so it is not
available from main page.
Sorry, I missed this.
Cheers.
James,
> You forgot a closing quote on:
> onclick='return false;
This does not work either for me:
$("newly added").appendTo("#foo")
Tried on the same page in Firebug.
http://docs.jquery.com/Manipulation/appendTo
Does it work for you?
Am I doing something wrong?
Cheers,
Dmitriy.
Is there any way to encode the value of the flashvars VALUE attribute
of the PARAM element with the standard jQuery Flash plugin?
Basically I am trying to work something like the following into my
jQuery flash code:
On Mon, Jul 13, 2009 at 10:32 PM, jjshell wrote:
>
> Hi,
>
> In the below code, the ajax-loader disappears before the html returned
> by .load is actually visible in the browser. How can I correct it?
>
>
> $.post("registerClient.php", data, function(returned){
> $("#client").html(returned);
>
Thanks guys
that was a lot of valuable information. Answers my question, i will
check if it works and post it back here.
Thanks a bunch again for your effort and time
Vru
Wow, thats what I just wanted!! thx!!
On 7월14일, 오전10시47분, Charlie wrote:
> http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F
> sixthmatrix wrote:If I use ajax to load a new page within a DIV called
> "test"... It seems that all the
http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_event_work_on_a_new_element_I.27ve_created.3F
sixthmatrix wrote:
If I use ajax to load a new page within a DIV called "test"...
It seems that all the classes and ids that are loaded within that
'test' div does not work wit
If I use ajax to load a new page within a DIV called "test"...
It seems that all the classes and ids that are loaded within that
'test' div does not work with my preloaded header jQuery functions.
Do I also have to reload my header jQuery functions?
I've been continuing my search on this but still haven't found
anything - anyone else?
On Jun 23, 5:37 pm, Mr Fett wrote:
> Hi all,
>
> I've been using the fantastic validate plugin for a while now but I've
> always found the support for date validation sorely lacking as it
> really only checks
Thanks a lot for the help James. I'll give that a shot. I am re-
tooling this little application and I'm beginning to think I may not
need tables at all. I'll keep you posted.
Thanks again
On Jul 13, 8:24 pm, James wrote:
> I think there's some issues with fadeIn/fadeOut for .
> Try something
Yes, it's a little different. Calling click() will not do an auto-
mouseclick on the link.
You'd have to do something like:
// set click callback
$("#clickme").click(function() {
location.href = this.href; // goes to link
});
// trigger click callback
$("#clickme").click();
On Jul 13, 7:0
The jQuery UI Dialogs are pretty decent.
Is there any style in particular that you're interested in?
On Jul 13, 7:45 am, reneara...@gmail.com wrote:
> can anyone suggest some good jquery alert windows/dialogs?
You forgot a closing quote on:
onclick='return false;
On Jul 13, 2:00 pm, dnagir wrote:
> Hi Cody,
>
> > $("").text
> > (data.Name).appendTo("#prods-list");
>
> I tried this:
> $(" link').appendTo("#foo")
>
> just on the jQuery doc page:http://docs.jquery.com/Manipulation/appendTo
>
> But it doe
I think there's some issues with fadeIn/fadeOut for .
Try something like the following:
var html = 'hello';
$('#groups').append(html).find("td").fadeIn("fast");
The class "hide" on the is style with display:none;
Add this to all your if you have more than one.
On Jul 13, 2:05 pm, Nate wrote:
Hi Peter,
> var ContentTypeHeader = this.contentType;
"this.contentType" is the content type of the REQUEST.
I need to get the ContentType of the RESPONSE.
No chance of getting it?
Cheers,
Dmitriy.
LOL - I swear I thought of almost the exact same thing when I went out
and took a drive...it's amazing what time away from the computer
does...and of course, a little help.
Now I seem to be missing something (yeah, I am new to jQuery...)
I still want that table row to fade in...but neither metho
still not sure if this is 2 tables and exactly what you are trying to
do,
david wrote:
Dear Charlie,
I mean if i have a table
and then i enter in a david and b michael
i want at the end
The same i want also for selected. Is there a way to make it ?
Thanks,
David
On Jul 13,
Hi Cody,
> $("").text
> (data.Name).appendTo("#prods-list");
I tried this:
$("http://docs.jquery.com/Manipulation/appendTo
But it doesn't seem to work for me.
Cheers,
Dmitriy..
How about just removing the empty and use something like the
following for your insert row after your AJAX response:
$("#groups").append('');
On Jul 13, 1:00 pm, Nate wrote:
> Also, James, each table row has a unique id. it will be called
> something like id="group34" or id="group35" - no
It looks like you've both misunderstood how versioning works on Google Ajax
Libraries server.
The link you have below specifically loads version 1.3.0 of jQuery. It
doesn't load the "latest version", it's 1.3.0 and will always be the 1.3.0
code with no changes.
In fact, it's not even 1.3.2 - you
Well, $( $(x)[2] ) is exactly the same as $(x).eq(2), and eq() is way
slower cause it needs to preserve the object and stuff. The point
everyone missed is that $(x)[2] gives you a DOM element, not a jQuery
object, that's why you need to "rewrap" it in jQuery.
Also, IDs should be unique (only one
Also, James, each table row has a unique id. it will be called
something like id="group34" or id="group35" - no two are the same.
It's info that is related to the ID of the database.
So when my jQuery posts to addgroup.php, it inserts the data into the
database, and then I use the mysql_inser_id
What is the other script that adds the class, does it involve ajax/get/
load?
On Jul 13, 10:49 am, zorba wrote:
> Hi,
>
> I'll do my best to explain the following.
> I simply want to do this:
>
> $("myDiv p").find(".highlight:contains(someText)").doSomeStuff...
>
> where the class ".highligh
Here is the PHP code that generates the entire table, plus the empty table
row.
I don't see anywhere in the code where you're setting an ID to the
. And if you're cloning an existing that has an ID, that may
cause issues because IDs are suppose to be unique on a page.
Is there any reason you're cloning an existing instead of
just appending it in with all the other content?
I have a table that is dynamically populated by PHP and MySQL.
At the bottom, I've created an empty table row:
I have a jQuery function that posts data to a PHP file. When the PHP
file returns "true", I want it to clone that emtpy table row, and then
manipulate it by giving the table row an ID
You have a copy of both jQuery 1.3.2 and 1.2.6 loaded on the page at
the same time. That will probably cause issues... Use one or the other
(preferably the latest version).
On Jul 13, 3:45 am, erin_mcg wrote:
> I've been searching for days for help on this and cannot find it
> anywhere and if I
Bill schrieb:
The padding still exists in all browsers except IE 6, 7, and 8,
because those are the only ones exhibiting the issue. A conditional
IE- only stylesheet applies the following style:
Ah, sorry, i look not to deep in your Code ;)
I played now direct in IE with webdeveloper-tools,
got it to work
had to move
$(function() {
$("#pro_edit_profile").dialog({
bgiframe: true,
autoOpen: false,
modal: true,
buttons: {
Cancel: function
I've made a bit of progress on this.
If I break the html from var getSelected=jQuery(this).parent
('li.show').html(); , and grab each piece seperately, it works. Like
this
var name=jQuery('#'+eventid+' a.artist').html();
var place=jQuery('#'+eventid+'span.address').html();
etc..etc.
then inser
On Mon, Jul 13, 2009 at 15:49, Matt Zagrabelny wrote:
>> The glitch is probably caused by the fact that the two input fields
>> *do* share the same name; then when you touch one, you *do* alter
>> both! Bug or feature?
>
> Having two DOM elements with the same name attribute is still valid (see
>
I'm not sure what the problem exactly is, but just pointing out what I
see:
var vtid=jQuery(this)..parent('div.controller')
Do you have two dots there, or is that a typo?
On Jul 12, 7:43 pm, pedalpete wrote:
> I've been trying to make my very ajaxy site more SEO friendly, lots of
> the returned
parseInt():
http://www.w3schools.com/jsref/jsref_parseInt.asp
Example:
var sNum = "1234";
var n = parseInt(sNum, 10); // 10 means base-10 number sytem
On Jul 13, 11:20 am, macjohn wrote:
> It worked!
> Thanks a million!!
>
> OK now that I am asking syupid questions:
>
> I pick up variables fro
nevermind my last reply, eq() works great, I just forgot to change my
code... here is the code snipet that works (for future reference)
jQuery.get("http://www.online-health-insurance.apollobackstage.com/
includes/seniorFreeQuoteBody.php", function(data){
$(
It worked!
Thanks a million!!
OK now that I am asking syupid questions:
I pick up variables from the form using Jquery:
var element = $(this);
var Id = element.attr("id");
var item = $('#vare_'+Id).val();
var other_item = $('#other
>Is there another way to accomplish this?
$(".post").hover(function () {
$(this).find('.category,.comments').show();
}, function () {
$(this).find('.category,.comments').hide();
});
On Jul 13, 9:50 am, aakoch wrote:
> I find it frustrating that the transversing add function (
Ok, so eq() seems to work fine, I tried nth-child but im not sure if
it worked the way I wanted. When I console.log eq() for the code
snipet I provided i get "[p]" does that look right?
Here is a DOM example from my page:
...
...
..
...
...
...
...
...
Here is my goal with eq(), Im trying
$('td').click(function() {
context = $(this).parents('table')[0];
var cells = $('td.a', context);
})
Maurício
-Mensagem Original-
De: Brad
Para: jQuery (English)
Enviada em: segunda-feira, 13 de julho de 2009 16:39
Assunto: [jQuery] table cells selector question
I c
If linking to the google api works, that's no problem.
I tend to have a particular version on my server so if a new
version comes out that breaks functionality in some code or
another plugin, I'm not affected by the change and can test
the new code before it affects my sites.
As far as using the
I use http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js
Instead of keeping a version of the library myself. Is that a bad
idea? (I just thought Id always have the latest version this way)
BUT
This is where it REALLY shines thorough that I dont know what I am
talking about:
I dont k
If you're using jQuery 1.3 or above, it has a built-in function, .live(),
that
does almost the same thing are the .livequery plugin. However, .live() is a
little
more limited as to the type of events it effects, such as blur. Go with the
.live()
function if you can and avoid having to use anothe
oh, ok. I need a plugin to do this? Ok, great Ill check it out. Thanks
On 13 Jul., 22:16, "Rick Faircloth" wrote:
> Check out the .livequery plug-in or, for jQuery 1.3 and above, the .live()
> function.
>
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegro
Check out the .livequery plug-in or, for jQuery 1.3 and above, the .live()
function.
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of macjohn
Sent: Monday, July 13, 2009 4:12 PM
To: jQuery (English)
Subject: [jQuery] Why does my Jquery
Thanks again for looking at this.
The padding still exists in all browsers except IE 6, 7, and 8,
because those are the only ones exhibiting the issue. A conditional IE-
only stylesheet applies the following style:
.advanced-search #smart-filters li .added-criteria UL LI {
padding: 0;
}
Hi all!
I am a newbie in Jquery.
And I have encountered a problem:
Using Jquery, I am replacing a submit button with a different submit
button.
So far so good. It works and looks right, in the generated sourcecode
(when checking it in Firebug).
HOWEVER:
The new generated submit button does NOT
It's probable that your chat script is adding #cometchatbase to the
DOM in the "onload" event handler, if it's not happening at script
evaluation time. Check it's source to confirm. If that's the case, you
should be able to use
$(window).load(function(){
$('#cometchatbase').
});
instead of $(do
I should have mentioned this site is still on 1.2.6, so I can't use
closest.
However, replacing closest w/ parents does work for me.
Thanks!
On Jul 13, 1:54 pm, James wrote:
> Try closest():http://docs.jquery.com/Traversing/closest
>
>
> text 1
> text 2
> text 3
>
>
> $("td.so
Try closest():
http://docs.jquery.com/Traversing/closest
text 1
text 2
text 3
$("td.someclass").click(function() {
var parentTable = $(this).closest("table");
// and you can get the cells in several ways, here's one
var cells = parentTable.find("td.someclass");
});
Something like this could achieve what you want:
$("a.link").click(function() {
var id = this.id.split('-')[1]; // -> 1, 2, or 3
foo(id);
return false; // prevents follow through of link
});
On a side note, if you want to do a click and directly call a function
without passi
I can do this to select all td's with a class of someclass
var cells = $("td.someclass");
My page my have more than one table so this would select all matching
td's. What I need to do is isolate the selection to only the cells in
the table where a row was clicked.
I've tried
var cells = $("td.
In strarting a proyect using PHP+Xajax+Jquery.
In traying to use 2 sortable lists into a portlet.
It work fine in FF, Safary and Opera, but not in IE8.
When I try to drag an element form a list, the portlet moves and the
elment gets mad.
Can see an example in http://www.unycorn-systems.net/jqu
can anyone suggest some good jquery alert windows/dialogs?
I find it frustrating that the transversing add function (http://
docs.jquery.com/Traversing/add) doesn't allow passing in a context
like the jQuery function (http://docs.jquery.com/Core/
jQuery#expressioncontext).
Here's a use case: I want to select two different classes under the
same element.
I've been searching for days for help on this and cannot find it
anywhere and if I am posting in the wrong place, accept my apologies,
I am desperate for help My project is due to the client today.
I am building a form using a jQuery contact form slider. Got that
working, no problem. I need a
I have a problem whereby on IE8 (also 6) the jQuery width/height on a
div is wrong.
I have the w/h set through a style.
This works correctly: div.style.height.split('px')[0]
While jQuery(div).height does not
It is worth noting that IE returns the wrong value for div.height
Should I log a bug
Hi,
I'll do my best to explain the following.
I simply want to do this:
$("myDiv p").find(".highlight:contains(someText)").doSomeStuff...
where the class ".highlight" has just been appended by another script.
It works great with FF but not with any of the IE navigators.
I verified with the
When writing plugins and such, what is your preferred style for
encapsulation? I know of two styles:
var PublicObject = function () {
// Private
function Function1() {
}
// Exposed
function Function2() {
}
return {
PublicM
Hi,
I am trying to remove every Javascript reference from my HTML data
(except the inclusion headers of course).
I would like some advice regarding event listeners when parameters
come into play.
Here is the typical example:
For event handlers in HTML like:
I would have no problem replacing wit
The eq() selector is one way of doing it:
http://docs.jquery.com/Selectors/eq
On Jul 13, 9:09 am, Matthew wrote:
> So it seems like everyday I learn a new way to code the same thing.
> What I am trying to do is add some code after a paragraph depending on
> how many paragraphs are in the content
$("p", "body#seniors #text")[2].
does not mean "third paragraph"
"nth-child" would be what you could use
http://docs.jquery.com/Selectors/nthChild#index
On Jul 13, 3:09 pm, Matthew wrote:
> So it seems like everyday I learn a new way to code the same thing.
> What I am trying to do is add
On Mon, 2009-07-13 at 12:09 -0700, Matthew wrote:
> So it seems like everyday I learn a new way to code the same thing.
> What I am trying to do is add some code after a paragraph depending on
> how many paragraphs are in the content. I'm not to worried about logic
> right now just syntax. Here is
So it seems like everyday I learn a new way to code the same thing.
What I am trying to do is add some code after a paragraph depending on
how many paragraphs are in the content. I'm not to worried about logic
right now just syntax. Here is my code:
My questions is regarding this syntax: $("p",
> From: Matt Zagrabelny
>
> My main question is how does both the 'if' block and the
> 'else' block get executed in the same pass through the function?
I haven't been following the thread in detail, but the simple answer to that
question is they don't, and they can't.
Fundamental JavaScript op
figured it out had to mode autobox to have unique input box names as
autoobox does not put in any names or id's on the input bummer I hate
moding plugins
Mean Mike
On Jul 13, 2:30 pm, Mean Mike wrote:
> I've been trying to figure out how to add validation to jquery.autobox
> and it works except
I've been trying to figure out how to add validation to jquery.autobox
and it works except if I have more than one on the page it only
validates the first one on submit though it will validate all other
fields around it ! I can get it to validate the remaining autobox
inputs if I give them focus a
Ah, finally you ask the *real* question.
Let's start with that next time, OK? ;-)
Don't feel bad, it's a good thing to provide a simplified test case - but in
this case the simplified example obscured the essential problem. The problem
isn't the order of execution of
I've been working on this for quite a while trying to figure out why I
can only get a click to be recognized by IE once. If a user clicks on
another element, and then goes back to the original one, nothing
happens.
I've gone right down to this
jQuery("ul.showList li.show div.showData, ul
OK, found a solution that I think will work:
$(".swatch").draggable({
revert: true,
helper: "clone",
opacity: .5,
zIndex: 100,
drag: function(event, ui) {
$(ui.helper).appendTo("body");
$(ui.helper).addClass("swatch-helper");
}
});
I had to use the helper opt
It wouldn't matter if document.ready did fire before all tags are
loaded, because it wouldn't affect the case you were talking about: