I think this is the most appropiate response for this recurrent
question:
http://docs.jquery.com/FAQ#Why_do_my_events_stop_working_after_an_Ajax_request.3F
--
Ariel Flesler
http://flesler.blogspot.com/
On Sep 26, 3:17 pm, thelemondropkid <[EMAIL PROTECTED]> wrote:
> Thanks to the help I have
As of now www.jquery.com and docs.jquery.com are loading faster than
ever, and I'm in Brazil!
- ricardo
On Sep 26, 12:21 pm, DejanNenov <[EMAIL PROTECTED]> wrote:
> John -
>
> There are quite a few of us who are big fans and have plenty of data
> center capacity. I am sure the community would be
Use the unload event:
$(myWindow).bind('unload', function(){alert("Closed.")});
- ricardo
On Sep 26, 11:52 am, Dan <[EMAIL PROTECTED]> wrote:
> I have a page with a popup that I want to raise an event for when the
> popup is being closed. Is there any event built-in to jQuery without
> any plu
Thank you kindly sir, that did exacly what I wanted. I only had to use the
navClass: 'my-ui-tabs-nav'
option.
Is looking at the noncompressed code the best way to figure that stuff out
with out having to ask?
On 9/26/08, Klaus Hartl <[EMAIL PROTECTED]> wrote:
>
>
> You can change the class na
Give the validation plugin a try instead:
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Just call $("#form1").validate(); and add a few classes to your form
elements, eg. class="required" for required fields, or "email" etc.
A list of available methods is here:
http://docs.jquery.
Yes, details can be found here:
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29
Jörn
On Sat, Sep 27, 2008 at 2:34 AM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> When trying to use the validator plugin, I get the following error:
>
>
Setup ajaxForm with dataType:"json". Then your success-callback will
get a parsed JavaScript object as the first argument.
$("#myform").ajaxForm({
dataType: "json",
success: function(data) {
// iterate over data.messages and display labels?
}
});
Jörn
On Fri, Sep 26, 2008 at 11:56 PM,
Could you file a ticket for this? http://dev.jquery.com/newticket
(requires registration)
Thanks!
Jörn
On Fri, Sep 26, 2008 at 6:30 PM, Jeff Papp <[EMAIL PROTECTED]> wrote:
>
> I've been using the validation plugin along with the masked input
> pluging and I am noticing a possible bug. When you
Random errors in IE6 can be caused by the packed version of jQuery.
Try to use minified(+gzip) to get around that.
Treeview works best with "small" trees. How big is your menu? I can't
find it on the URL you provided.
Jörn
On Fri, Sep 26, 2008 at 2:21 PM, bdct <[EMAIL PROTECTED]> wrote:
>
> Hell
You can call an internal API method, that should give you the desired
result, though its subject to change in future versions. Let me know
if it works for you!
var validator = $("#myForm").validate();
// to check, call
validator.checkForm();
Jörn
On Thu, Sep 25, 2008 at 7:36 PM, dl <[EMAIL PROTE
Hi,
When trying to use the validator plugin, I get the following error:
missing : after property id
edit-name: "required",
It seems like it has problems with the "-" that Drupal puts in the
id's of each form field. Is there a workaround possible?
Thanks,
Jeroen Coumans
Hi all,
I am going to use server-side Zend_Form data validation process and
its result show with jQuery. I send form data via ajaxForm(); function
and Zend controller validates data a returns information about
validation result in json format:
{"status":"error","messages":{"email":{"isEmpty":"Va
"var checkbox = $("#" + checkboxId) // this is being found as
> expected"
The part you are missing is that "checkbox" is a jQuery object, not a
checkbox DOM object
so:
"checkbox.checked"
sure would error because there is no ".checked" property of a jQuery
object
so:
checkbox[0].checked
wou
I was trying to put livequery in place on the site, but it seems to
attach to pre-known events, like click, instead of new events, like
editable.
For instance, I'm trying to do this:
$(".editable, .bline_measure caption").livequery("editable",
function(value, settings) {
Wantin
I would recommend using the attr() method of jquery like:
checkbox.attr('checked') = !checkbox.attr('checked')
On Sep 26, 12:01 pm, chris <[EMAIL PROTECTED]> wrote:
> I know there is a quirk with checkboxes, but I am under the impression
> that setting the check state to boolean values within ja
HTML:
First element
Second element
Third element
jQuery:
$('.some-class p:eq(1)' ).css('color', 'red');
--
jQuery pseudo-class :eq(i) targets the i-nd occurence
of the obeject selected. Counts start on zero (JavaScript based)
I'd guess it was something else, as this code works just fine, no
errors
http://paste.pocoo.org/show/86303/
If appending "" or null was an issue, 'Bob' would never get shown
On Sep 26, 3:15 pm, kape <[EMAIL PROTECTED]> wrote:
> I'm not sure if this is correct behavior or a bug, but if I app
Hi,
i am working in a site made with drupal . there i am using ajax
through jQuery for a polling options.
the first time code runs nice ... as soon as some one submit one vote
the poll section is loaded with the new result.
now nothing works in that section.
i am having these two major issues :
1
John -
There are quite a few of us who are big fans and have plenty of data
center capacity. I am sure the community would be happy to mirror the
site (you can have one of our small older server in our rack any
time). Furthermore - RIMU hosting are great (I am a former client) if
you need an app
I'm not sure if this is correct behavior or a bug, but if I append an
empty string it causes an error. So $('#someId').append('') causes an
error. In my case, I'm actually supplying a variable to append() but
this variable could be an empty string. I don't see why appending
nothing would cause
I actually *JUST* created enable & disable functions:
(function($) {
/**
* Disables the matched form elements, and adds the disabled class
* to them.
* @return jQuery The matched elements.
*/
$.fn.disable = function() {
$(this)
I keep seeing people talking about different ways to access the
document of an iframe. This method(after much hairpulling and testing)
works very well.
$('iframeID').contents()
The .contents() method will automatically handle the browser
differences between contentWindow and contentDocument. It
I've been using the validation plugin along with the masked input
pluging and I am noticing a possible bug. When you have a textbox
that has an input mask on it and click on the submit button it
validates the field correctly, but then if you focus into the field
and then leave it will mark the fi
Hi all,
I've written a new plugin for jQuery called jMailer which creates a
popup form for sending an email with. It's just the front-end, but
should be compatible with a back-end of your choice.
A demonstration (which has been mapped to a single email address to
prevent misuse) can be seen at:
I've got the following in the of my document:
$(document).ready(function() {
$(.bc-wrapper:empty").addClass("none");
});
and in the ,
The class that it's calling, "none" is simply a display: none from the
stylesheet. So basically, if the div doesn
I have a page with a popup that I want to raise an event for when the
popup is being closed. Is there any event built-in to jQuery without
any plugins that can be subscribed to for when a popup is closed?
I can't seem to figure out any way to do this even without using
jQuery. Is there any way to
Hi everyone, I'm hoping someone can help me learn the right way to do
this. Its experimental for me at this point. Example code is at the
bottom.
So what I'm attempting to do is to do input form validation by loading
a function which self-assembles an object that has its properties set
as the ID
I know there is a quirk with checkboxes, but I am under the impression
that setting the check state to boolean values within javascript takes
care of that. Unfortunately, this assumption is proving to be an
incorrect one.
// Here is a snippet of code
$("li#" + liId).click(function(event){
v
I've worked on a clean solution for this a while ago:
http://haineault.com/blog/37/
The examples above might not be up to date since the code has changed
a bit since then:
http://code.google.com/p/jquery-utils/wiki/AnchorHandler
Code:
http://code.google.com/p/jquery-utils/source/browse/trunk/src
Hi Joel,
finally i found time.
a "working" example can be found under
http://www.pbc-arnstorf.de/jquery/
Maybe it isnt working because we (you) changed
the hover effect!
I also now included the "superfish-navbar.css"
which wasnt included by default.
But it still doesn't work.
Hello,
I'm new to jQuery and have been partial to mootools, but wanted to
play with jQuery for a particular web project.
One thing that I've noticed is the following:
Using mootools slide effect
http://www.hovara.com/ocl/
Using jQuery slide effect
http://www.hovara.com/ocl/jqueryindex.php
Yo
Hello
I really like this script.
I was wondering , how would be possible to add a class to the middle
element ?!
I mean, by default there are always 3 elements, and i would like the
middle one to be different (to add it some css style).
Thanks.
Apologies if this has been asked before. I couldn't find any topics
on this when I searched.
I have some XML which looks like the following:
1
I'd like to be able to read the html in javascript with something like
this:
$.post("test.xml",
function(xml)
i have this set up:
users enter number in text field. .blur() I need to pass the entered value
to the value attribute. I'm able to get the value of the number entered in
the text box but I cannot seem to pass it to the value attribute of the
input
$('input').blur(function (){
var
Ok. Your instance of jQuery is living in the parent window, so you
need to reference it from inside the pop-up.
Use this inside your pop-up code:
$ = window.opener.$;
$(window).load(function(){
$('#message',document).val(window.opener.location.href);
});
Working on FF3 here
- ricardo
O
In this particular case event delegation might serve you better. Live Query
really only works if you are using jQuery methods to modify/manipulate the
DOM. The iui code does not use jQuery and that is why Live Query can't see
those particular updates.
--
Brandon Aaron
On Fri, Sep 26, 2008 at 12:25
LiveQuery would handle that
http://brandonaaron.net/docs/livequery/
On Sep 26, 2:17 pm, thelemondropkid <[EMAIL PROTECTED]> wrote:
> Thanks to the help I have received on this group, I am making
> progress.
> But now that all is working fine, the question beckons: Can jQuery do
> it all over a
Thanks to the help I have received on this group, I am making
progress.
But now that all is working fine, the question beckons: Can jQuery do
it all over again?
This is my code:
some header
Lorem ipsum dolor sit amet.
And the jQuery:
$(document).ready(function(){
$("div.
Let me add another option, you can either:
- Upgrade Scriptaculous
- Downgrade jQuery
- Upgrade jQuery to the version on the trunk.
This last option is the new one and I sort of announced that already
(on jquery-dev I think).
The version on the trunk patches (I wouldn't say fixes) the conflict
w
Hope you don't mind turning your thread into a discussion :)
now that sounds like a bug.
$(document).ready(function(){
$(frames.testframe2.document).ready(function(){
$('#test',frames.testframe2.document);
});
});
The inner ready() function is fired exactly at the same time as
Yay! Thanks Ariel, I'll keep that on mind.
For now we're dealing with the manager of the host-page because
everything is caused by a WP plugin known as mp3inline, they are using
old prototype libs.
Thanks for all everybody (if someday you came to México, you will get
a free shot of Mezcal) ;)
On
hi,
I usually don't work with iui (iphone) but have some code and wanna adapt it
to play with jquery.
The problem is to attache events to the new generated DOM at each ajax
request in iui (using jquery AJAX I would make a callback, but...). Finally
discovered livequery but seems not to work thi
Hi Rey,
Its not an easy option but its reasonable, so I'll test it.
For now, my tests confirm what Michael said, the array.call its the
picky line, I removed it and everything is working fine again, if
someone can make a call to John Resig :D asking if its ok if we remove
that :)
So I'm with 3 o
But can you upgrade it? The reason I had asked the version was for the
reason the Mike mentioned, the conflict in makeArray. Mind you that this
is not a bug in jQuery but an issue in several prior releases of
Scriptaculous where they decided to overwrite the default behavior of
the call metho
Hi Michael,
Sorry about the confusion.
I'll try your solutions, but as I'm just "invited" to the page I'm
working I can't downgrade scriptaculous.
But I'll try with an older jquery or with the little tweak. I'll we
back with the results.
On 26 sep, 10:34, "Michael Geary" <[EMAIL PROTECTED]> wrot
> Its important to know that I'm almost unable to change a bit
> of markup or other js libraries code, I'm being injected
> along with jQuery to this site, so I'm more like a "guest" in
> this uber-mix of js.
Could you quote the relevant text from previous message(s) in your replies?
For those
Its important to know that I'm almost unable to change a bit of markup
or other js libraries code, I'm being injected along with jQuery to
this site, so I'm more like a "guest" in this uber-mix of js.
This is a completely unrelated issue - we host jQuery.com (the
homepage, blog, and dev) on a separate server with Rimuhosting. There
was a power outage at the server facility and they're working ot bring
it back up:
http://rimuhosting.com/maintenance.jsp?server_maint_oid=68009362
The other sub-do
Its important to know that I'm almost unable to change a bit of markup
or other js libraries code, I'm being injected along with jQuery to
this site, so I'm more like a "guest" in this uber-mix of js.
Hi Rey
The jquery is 1.2.6 and scriptaculous is v1.7.0
Also an important note is: with prototype there's seem to be no problem, its
when scriptaculous is added when everything is screwed. :( I've been
debugging line by line (with firebug) the jQuery selector function and
there's a time when it ju
What version of jQuery and Scriptaculous are you using?
Rey
ricardoe wrote:
Hello,
First of all, I need to get this working without touching markup. I
really can't, only in very extreme cases.
I'm loading jquery at the bottom of the body and script.aculo.us is on
the head section.
The main p
svn checkout http://jqueryjs.googlecode.com/svn/trunk/tools/api-browser
jqueryapi
open jqueryapi/index.html
On Sep 26, 5:18 am, Richard W <[EMAIL PROTECTED]> wrote:
> Thank you for the response Richard.
> For me, (in London), the docs site takes on average about 3 minutes to
> load per page. (I j
Good greef Samy!
That works like a charm - I did not think it´s that simple.
Thanks a million.
Q.
On Sep 26, 3:18 pm, "Mauricio \(Maujor\) Samy Silva"
<[EMAIL PROTECTED]> wrote:
> Use wrapAll() method.
>
> Maujor
>
> -Mensagem Original-
> De: "thelemondropkid" <[EMAIL PROTECTED]>
> Par
You're complaining why?
Why should the jQuery site not loading affect your job in any way? The
jQuery site offers nothing to me that I can't find elsewhere. I can get the
most recent jQuery release from Google code, Remy Sharp has the API hosted
on his site (or his downloable AIR app), and I have
Use wrapAll() method.
Maujor
-Mensagem Original-
De: "thelemondropkid" <[EMAIL PROTECTED]>
Para: "jQuery (English)"
Enviada em: sexta-feira, 26 de setembro de 2008 09:13
Assunto: [jQuery] wrap function
I´m stuck, please help!
My code:
some header
Lorem ipsum dolor
Oh, and break everything that depends on the text method.
On Sep 26, 9:16 am, 703designs <[EMAIL PROTECTED]> wrote:
> I could also do something along these lines:
>
> $.fn.oldText = $.fn.text;
> $.fn.text = function() {
> return $(document.createTextNode(this.oldText()));
>
> }
>
> That is, o
I could also do something along these lines:
$.fn.oldText = $.fn.text;
$.fn.text = function() {
return $(document.createTextNode(this.oldText()));
}
That is, of course, if I'd like to confuse the hell out of future
maintainers :)
On Sep 25, 1:15 am, Balazs Endresz <[EMAIL PROTECTED]> wrote:
Hello i hope someone can help this is driving me mad.
Im using
jquery-1.2.6.pack.js
jquery-treeview.js
jquery-cookie.js
for a menu on www.bdct.nhs.uk
everything works ok apart from in ie6 where some of the links
disappear. but even this is inconsistent on different machines with
ie6 installed.
Thought someone might have done something like this.
HTML would be something like this:
Action 1
Action 2
I´m stuck, please help!
My code:
some header
Lorem ipsum dolor sit amet
The jQuery:
$(document).ready(function(){
$("div.box-two > *").wrap('');
});
The idea is to 'wrap' the , and the with a single .
The problem I have is that ALL the elements are individually wrap
Dear all,
I like jQuery much but I do not like the way the enabling, disabling
elements is handled. This is a pretty common task and the current
solution based on changing attributes is not in accord with jQuery’s
“write less” philosophy.
The enable() / disable() functions would be MUCH more eleg
"But in .js file it does not resolve the <%%> value. Any help would be
appreciated. "
As it shouldn't you've got a .js file, which IIS treats as plain
ol text and passes through untouched, it will never get seen or more
importantly processed by ASP.NET
You've got options through:
1) Keep a
Take a look at the metadata plugin:
http://plugins.jquery.com/project/metadata
- Richard
On Fri, Sep 26, 2008 at 7:09 AM, JQueryProgrammer
<[EMAIL PROTECTED]>wrote:
>
> Understand. But my issue is a bit different which i think i could not
> make it clear. I have a js file associated with every
The HTML is -
Contact
Us
Email Page
Print
Page
and this is part of what sits in my external file -
$('a[rel="video_demo"]').click(function(){
window.open(this.href,'mywindow','height=460,width=400,scrollTo,resizable=0,scrollbars=0,location=0','false');
retur
Understand. But my issue is a bit different which i think i could not
make it clear. I have a js file associated with every aspx page. Now
my code is like
I tried to use the code (which is in my .js file) as:
$(function() { //document.ready
$("#myid").click(function() {
alert( "Hello "
Thanks a ton. Although I had another way to do it like:
if($(imgID).attr("src").indexOf("expand") >= 0)
but using the way you mentioned is more accurate and specific to
JQuery. Thanks once again.
On Sep 26, 2:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> contains is a pseudo-selector,
Hi,
I have used vertical splitter along with JSF (facelets + richfaces) and YUI
- it is working fine and PERFECT. however, I am unable to integerate the
horizontal splitter in my code. Can any one plese help me out .. I am
attaching the code below. Please someone help me in it ..
> "http://
Thank you for the response Richard.
For me, (in London), the docs site takes on average about 3 minutes to
load per page. (I just tried again now.) The pages do eventually load,
it just takes forever for each page.
Unfortunately I see no difference.
I thank Remy Sharp for hosting a copy of the API
Also in the FAQ:
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
- Richard
On Thu, Sep 25, 2008 at 10:37 AM, MorningZ <[EMAIL PROTECTED]> wrote:
>
> Straight from the Docs (http://docs.jquery.com/Selectors)
>
>
It looks like jquery.com isn't up right now, but the fix that was put in
place recently (splitting each sub-domain off to its own server) *has* made
a difference. For example http://docs.jquery.com/ (the site which most
developers need most) is up right now, and quite responsive. If by chance
you w
Hello,
First of all, I need to get this working without touching markup. I
really can't, only in very extreme cases.
I'm loading jquery at the bottom of the body and script.aculo.us is on
the head section.
The main problem is:
(I'm using jQuery.noConflict() and even tried myJq =
jQuery.noConfli
I did not fully realize the issue with the duplication of the ids from
Thomas first post... Now I understand and have a working example to
base my code on.
Thank you very much for your help Richardo and Thomas.
contains is a pseudo-selector, but not a method. So you can use it like
this:
html before:
the quick brown
fox jumped over
the lazy dog
script:
$("p:contains('the')").remove();
html after:
fox jumped over
That doesn't really help in the scenario you've posed because contains
searches the text o
The same with jQuery looks like this:
$(function() { //document.ready
$("#myid").click(function() {
alert( "Hello " + $(this).val() );
}
});
You don't have to pass anything to the function since the 'this' context
variable is equal to the element to which the event was bound. If you
That's what I tried first but couldn't get it to work, so I switched
to using load function.
I've created a demo page with 2 iframes - one using each method and
only the load function works.
You can find it here if you want to have a look to see if I've done
something wrong.
http://jquery.sallil
I have an image tag as
I am trying as
if($("#myimg").attr("src").contains("expand"))
// do something
else
//do something else
but it gives an error "Object doesn't support this property of
method". Please help.
1. I have some simple queries with regards to function calling. In
plain javascript if I want to call a javascript function from my HTMl
tag i do it like:
Now my javascript function would be defined as
function sayHello(id) {
alert("Hello " + id.value);
}
Now I want to use JQuery to do such
Alright, I figured this out. I just bound a 'mousedown' event to the
main 'document'. It then calls the 'checkMouse' function:
$(document).bind('mousedown', checkMouse);
var checkMouse = function(element)
{
var element = $(element.target)[0];
var observe = $('#form-drawer')[0];
further reading: http://xkr.us/articles/javascript/encode-compare/
On Sep 26, 9:40 am, Richard W <[EMAIL PROTECTED]> wrote:
> You should use encodeURIComponent()
>
> From the jQuery core, they use this method to encode data for use with
> serialize():
> encodeURIComponent(string).replace(/%20/g,
You should use encodeURIComponent()
>From the jQuery core, they use this method to encode data for use with
serialize():
encodeURIComponent(string).replace(/%20/g, "+")
On Sep 25, 5:08 pm, uncleroxk <[EMAIL PROTECTED]> wrote:
> i know that .serialize will encode it to a "url safe" character, b
You can change the class names via options (undocumented):
$('#foo').tabs({
navClass: 'my-ui-tabs-nav'
selectedClass: 'my-ui-tabs-selected',
disabledClass: 'my ui-tabs-disabled',
panelClass: 'my-ui-tabs-panel',
loadingClass: 'my-ui-tabs-loading'
});
Althou
How long does it take to sort out hosting issues?
1 month, 2 months?
I've been reading all the comments from frustrated developers who are
unable to do their job because the jQuery site does not load. I
thought those people should understand the situation and be patient.
Now it's my turn to compla
Yes i found a solution, here it is:
I use prototype and lightbox with $ calls, and i enclose my other jquery
calls this way:
jQuery(document).ready(
function(){
jQuery('div#portfolio').innerfade({
speed: 'slow',
Hmmm...
Actually, after some tests I found my idea of this to be false. You
can indeed attach event handlers before an element is inserted into
the DOM. Sorry :D
But I don't know what's weirder: this construct for wrapping/attaching
a handler at the same time or that the wrap() function prevents
84 matches
Mail list logo