> In IE, innerHTML (aka .html()) will not retain the
> Well, while I'd still like to know if this selector was added to the API, I
> did find a solution to my problem.
It's been in core since v1.0.2.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> But in jQuery 1.1. it is not like that and submit() invokes the submit
> method of the form as well (at least according to the changelog). I was
> trying to describe the concerns I have with that.
No, that's not true. $(..).submit() does *not* submit the form.
_
> I found it right here ...
> http://docs.jquery.com/Ajax#.24.ajaxSetup.28_settings_.29
>
> or is there some global object that you can extend?
That was added in v1.1.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> FireBug say "$(this).id is not a function"
>
> What is to do?
You'll need to rewrite that as: $(this).attr("id")
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> Strangely, the element has no methods
> whatsoever[1]
>
> [1]
> http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-34812697
According to this spec they do:
http://www.w3.org/TR/html4/interact/forms.html#h-17.5
___
jQuery mailing list
discuss@jquery.
> According to this spec they do:
Sorry, Klaus, I think I misread your post.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> Plus, it's driving me crazy.
Be aware that thickbox also uses $(document).ready(). If it runs
before your code then things won't work. You may need to do this so
that your doc-ready is registered first:
$().ready(function() {
$(".list_images img").each(function() {
$(this).wrap(
> Therefore how can i use JQuery to return the html tabl element object?
$(..) is not a shortcut for document.getElementById. It returns a
jQuery object, not a DOM element. Use this to get the element:
$("#allProjects")[0];
___
jQuery mailing list
d
> $().blockUI();
That is correct for the version of blockUI on that test page. I've
since changed it to use the $.blockUI syntax so the documentation
you're looking at on malsup.com doesn't match the code you're running.
Mike
___
jQuery mailing list
d
> Try this:
>
> $.ajaxStart($.blockUI);
> $.ajaxStop($.unblockUI);
>
> It is $.ajaxStart not $().ajaxStart (these are not supposed to be
Klaus, that doesn't work. ajaxStart, and the rest, are bound to the
jQuery prototype. $.ajaxStart is not a defined function.
$.fn.ajaxStart is.
__
> I said I was confused yesterday... I have never used them and thought
> they work like $.ajaxTimeout. Ok, then make it:
>
> $(document.body).ajaxStart($.blockUI).ajaxStop($.unblockUI);
That will work. But I still prefer this syntax:
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
:-)
___
> If the example on that page won't work with the latest plug-in, shouldn't
> it be changed? Or is there a different site now that shows more current
> examples?
The example page and source code are in sync and always have been.
Your version is not in sync with the example page. Sorry for the
co
> Thanks for your help everybody, but I'm still having trouble. I've just
> gone out to the BlockUI page from jquery.com/plugins and re-downloaded the
> code (the packed version). Here's my code which still isn't working:
Ok, I see. It's a problem with the packed version. Sorry about that.
The
> Whew! I thought for a moment that I was going crazy. I'll download the
> unpacked version and use it for the time being. Thanks for looking into it
> for me Mike! :o)
No problem, Chris. That was my fault for not testing the packed
version. Lesson learned. I'll upload the new stuff tonight (c
> I thought I had this working, but now I'm getting the following error in
> the FireBug console:
Chris,
It's surely a bug in my code but do you have a test page where I can
test it? Thanks.
Mike
___
jQuery mailing list
discuss@jquery.com
http://jqu
> to cause the error in my small example available on my site. It seems that
> it has to do with two ajax calls. When the second one takes place before the
> first one is finished... at least that's what I *think* it is.
What's happening here is that "SecondCall()" is invoked as the
document is pa
> $.fn.isEmpty = function() {
> var isempty = true;
>
> this.each(
> function() {
> if (this.value.length != 0) {
> isempty = false;
> }
> }
> );
> return
> anyone know the difference between these two?
ajaxStop is triggered when the number of outstanding ajax requests
reaches zero. ajaxComplete is triggered after each response is
received. ajaxComplete is also passed the XHR and the settings
object.
__
> I'm trying to find out if there's a jQuery equivalent to this:
>
> form.ElementName.select();
Those DOM methods are still available to you:
$('#myInput')[0].select();
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> So in my refactoring, I have been doing this:
>
> function test(arg1,arg2){
> obj = (typeof arg1 == 'string') ? $('#'+arg1) : $(arg1);
> return obj;
> }
At some point you're going to bite the bullet and convert all the
calling functions to include the '#' right? Hope so. Until then you
could j
> jQuery.fn._find = jQuery.fn.find;
> jQuery.fn.find = function(t, context) {
> if (typeof t == 'string')
> t = '#' + t;
> return this._find(t, context);
> }
Of course that really limits how you can use jQuery but it may get you
over the hump.
_
Maybe this one make more sense:
jQuery.fn._find = jQuery.fn.find;
jQuery.fn.find = function(t, context) {
if (typeof t == 'string' && document.getElementById(t))
t = '#' + t;
return this._find(t, context);
}
It's sort of a "Prototype conversion" plugin I suppose. And probably
use
> I have a form with multiple checkboxes, each with their own unique id.
>
> How do I go about returning the ids of the selected checkboxes into an
> array?
This should do it:
var a[];
$(':checkbox').each(function() {
if (this.id) a.push(this.id);
});
> At the point of doing document.getElementById(t), you might as well just
> return that since that's all jQuery is going to do anyways.
No, jQuery will validate that the elem is within the given context (if any).
> You might consider something like (only tested on FF2/win32):
>
> jQuery.fn._fin
> I finally got around to finishing the pages and packaging the plugin last
> night. Enjoy!
Excellent work , Jonathan! Note that the compatibility plugin is
necessary for use with jQuery v1.1.
Mike
___
jQuery mailing list
discuss@jquery.com
http://jq
> Nicely done...
>
> This might be a setting you've got on the menu, but it doesn't seem very
> responsive. It's almost a whole second of wait onmouseover for the menu to
> popup.
Yeah, it's 500ms which is a bit sluggish for my liking as well. Just
mod the file if you want something different. I
> try to use jdMenu with jquery-1.1b.js i receive an error:
>
>
> $(this[0]).ancestors is not a function
> in jquery.jdMenu.js (Line 28)
Um, you quoted the answer to your own question.
> > > Excellent work , Jonathan! Note that the compatibility plugin is
> > > necessary for use with jQuery v
> because I'm only finding docs for a load function with a single func
> argument ... what is this.href doing?
I believe the online docs are accurate, but load is a flexible
function that you can pass one, two or three args. And href is an
important one - that's what you're loading!
$('#target'
> the docs say that load
>
> "Bind a function to the load event of each matched element."
But if you notice, the docs indicate there is more than one load
function. The one you're quoting is a bind for the load "event".
You're invoking a load action directly for which the docs say:
Load HTML
> function checkState(id) {
> if ($(id).className == "something") { etc
Use the "is" method:
$(id).is("something");
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> For example, reading through the code it is not obvious to me how the
> function $.blockUI() blocks continued execution of javascript ...
It doesn't. All blockUI does it put an iframe over the window and
capture/discard keystrokes. The idea is to block the user from using
the UI until unblockU
Stephen,
I put up a sample page that shows how to use blockUI to display a
modal dialog. This may help give you some ideas.
http://malsup.com/jquery/block/dialog.html
Mike
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> Pretty cool, Mike! Having the "hourglass" cursor inside the dialog is kinda
> annoying though...
Good catch, Aaron - thanks. That style was bleeding through because I
forgot to add the cursor style on the question dialog. It's fixed
now.
Mike
___
j
You need to use ajaxForm() for that functionality. ajaxSubmit() will not do it.
Mike
On 1/15/07, yi huang <[EMAIL PROTECTED]> wrote:
> I've found a similar question here
> (http://jquery.com/pipermail/discuss_jquery.com/2006-August/009469.html)
> .
> But it seems that it's still not resolved .
>
> I think it's really well done. Don't let them get you down Joshua...great
> job.
I agree. I think it looks quite nice.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi Lucas,
> Issue 2: $("#el").load doesn't support post params any longer
This is a bug and will be fixed. You can fix it in your own copy by
editing this line in the load function:
if ( jQuery.isFunction( params.constructor ) ) {
Change it to this:
if ( jQuery.isFunction( params ) ) {
> Is
> Anyone know if this is my doing or a bug?
There's a bug in the load function. See this thread for a temporary
work-around:
http://jquery.com/discuss/2007-January/021767/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> I like using the load method a lot, and with jQuery 1.1,
> I've noticed that now it doesn't post the object params parameter to
This has been fixed in SVN.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> Why jquery does not work correctly in IE6 ? Has Anybody else ever had this
> same issue ?
>
> Error: 'style' is null or it does not a object
> line 480 ]if (!force && elem.style[prop]) {
Can you please provide more information or a sample test page? Thanks.
_
On 1/16/07, Guntur N. Sarwohadi <[EMAIL PROTECTED]> wrote:
> I already downloaded the latest revision, 1073. but still found the
> "fn.apply is not a function" error after calling load(url, data). is this
> the right revision with that fix for load? sorry for being stupid.
No, it's not in 1073. I
> I second the request for a good understanding of what the JQuery object is.
The jQuery object is just a JavaScript object (like Date or Array).
It encapsulates zero or more DOM elements and lets you manipulate
those elements using the jQuery API.
var jq = $('.myClass');
The statement abov
> var arrElementos = $("p").get();
> var tempo = 1000;
> for(var i in arrElementos) {
> if (i == 0) {
>
> setTimeout($(arrElementos[i]).DropInRight(1000), tempo);
> }
> else {
> setTimeout($(arrElementos[i]).DropInLeft(1000),
> tempo);
> }
>
> I ran this to try to look at the Object (using 1.04):
> and learned quite a bit. (Although the page never fully loads, not sure
Yes, that's the API. Those are the properties and methods on the
jQuery object. You can view this information in a more useful format
online. Sam posted some very u
> Can anyone tell me how to solve this?
The code you have should work fine if it's moved to a doc-ready
function. But you can simplify it even more with ajaxForm:
$(function() {
$('#myForm').ajaxForm( { target: '#myForm' });
});
Remember, you need to wait for doc-ready before accessing dom
Harald,
I just re-read you post. You just need to run the ajaxForm code
within the callback method of $.post. In other words, after the new
form has been added to the dom you can prepare it using ajaxForm.
Sorry for the confusion.
Mike
___
jQuery ma
> Ahh, that explains it. There isn't a submit button on the form. I have an
> image that triggers the validation.
>
> So... is there a way to get the form to submit without that. Perhaps I
> should have a hidden submit button?
You don't *have* to have a submit button on the form, but you reall
> Anyway, grab it here:
> http://gsgd.co.uk/sandbox/jquery.easing.php
Nice! Great stuff, George.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Jeez Mike, way to make me feel even older.My eleven year olds
haven't a clue what JavaScript is, but they're pretty good at
linerider! (http://www.linerider.com/)
Mike
On 1/17/07, Michael Geary <[EMAIL PROTECTED]> wrote:
> > Guys, I don't appreciate the profanity. My 10 and 11 year old
> >
> Hi frieds,
> I am struggling with small query
> In a form there are mutiple checkboxes , i have to check on next button
> click that at least one checkboxes is checked or not
Using the form plugin you can do:
if (!$('#myFormId :checkbox').fieldValue()) {
// no checkboxes are checked
}
> I set up a google-groups archive of this mailing list.
For those that don't know, the mailing list is also available on
Nabble (and has been for quite a while):
http://www.nabble.com/JQuery-f15494.html
___
jQuery mailing list
discuss@jquery.com
http:
> I now have several div's i would like to selectively update depending on the
> response back from the ajax call. How can i do that?
One way to do that is with the Taconite plugin.
http://www.malsup.com/jquery/taconite/
___
jQuery mailing list
discuss
> This works fine for the first step (the form that is initially loaded), but
> fails to bind to the newly loaded form after submit. I tried moving the
> recursive call into the after/success callback of .ajaxSubmit, but it didn't
> make any difference. Not sure what else to try. Any suggestions?
> I have been using the deserialize plugin to fill forms with JSON. But it
> doesn't work properly with jQuery 1.1 Here are two test pages:
Bruce, the problem is a result of this bug:
http://jquery.com/dev/bugs/bug/804/
which has been fixed and is available now in SVN.
Mike
_
> That would still be a bad way to do it i'd say, because if theres more than
> one element with the id 'warningmsg' (I know there shouldnt be, but you cant
> count on these things), it would fire more than once. I would just use if
> ($('#warningmsg')[0]).
Not true. If you have multiple elements
> I would use $('#warningmsg')[0], it seems like the safest choice.
That's my preference also.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> I think IE (c'mon, do I even need to *finish* this sentence?) returns an
> array in those cases.
Just to clarify, the MS docs say that getElementById returns the first
object with the same ID attribute as the specified value.
___
jQuery mailing list
d
> Hope someone can help me fix this, i'm not sure wether its jQuery, or my
> javascript.
Try including Nifty before jQuery.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> what format does the return information need to be to get showResponse to
> execute when dataType is set json, and with that said, should I have the
> dataType set if I will be return information in the format of:
>
> logged: true, moreinfo: the text, someother: blahblah
I suspect you're getting
> I'd love to do that!
Excellent. Glad to hear it. Thanks, Klaus!
Let's get it moved into SVN too.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> i have now release a stable Version. Have a look at:
> http://olaf-bosch.de/bugs/jquery/faviconlinkmarker/index.html
Cool stuff, Olaf.
I love that the Nifty Corners favicon is distinctly square. :-)
___
jQuery mailing list
discuss@jquery.com
http:/
> I'm new to jquery, I'm trying to make something that work
> with jquery and form, but I'm in error and I don't know where:
You need to return false after your alert so that the normal browser
and page navigation is canceled.
I'm working on some major updates to my form plugin example page so
mo
> If you know some link where I can find good material, please let me
> know where.
There is some good material here, just updated tonight.
http://www.malsup.com/jquery/form/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> anyone?
When the responseXML is null that usually means the server returned
html. Are you setting the content type on the server?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> This may have already been dicussed, but I just now noticed it. Has
> anyone looked at http://joern.jquery.com/api-draft/cat.xml#cat recently?
> It now contains the different sections of the API in a collapsible
> tree-view.
I agree. It's really quite nice. And it makes great use of plugins.
For anyone seeking information about how to manage forms with jQuery,
I've just updated the Form Plugin example page at:
http://malsup.com/jquery/form/
You can find a quick start guide, API docs, examples, a FAQ and more.
Mike
___
jQuery mailing list
> Did you use a (modified) version of my docTool for the API?
Hi Jörn,
Unfortunately I already had that part done when you posted about your
docTool! When I get time I may update that page using the docTool
because it provides some extra bits that I didn't include (tooltips,
etc). But first I w
> I'd also like to use Chili for the API browser. Looks like I have the
> same problem that you had. What exactly did you modify to get it working?
Yeah, I like Chili a lot. I made a couple changes for optimization
because I didn't want unnecessary server calls and there were a couple
minor bugs
> Recently I've started using the form plugin and I've noticed in firebug that
> the X-Requested-With header is not being sended for POSTs requests. GETs
> work fine.
> I'm using last versions for both jquery and form plugin and Firefox 2.0
> is it normal behaviour or do I loosing something?
Jip,
> Is it important for us to be concerned with our Web portal applications
> degrading gracefully if the user has scripting disabled in their browser?
That's a question only you (and your team and your managers) can
answer. But don't code yourself into a corner if you don't have to.
Consider what
> So I thought, JavaScript or jQuery might be of help. If I detect the
> old domain name, use jQuery to force a change. We mainly use FF2, IE6,
You should handle this type of redirect on the server.
___
jQuery mailing list
discuss@jquery.com
http://jque
> I found the issue, it seems blockUI is hardcoded to have a width of 250px
Hi Gavin,
I optimized for what I anticipated to be the most common use case:
adding a simple text message. In cases like that any block element
will grab as much width as it can which makes it difficult to get the
"right
> Marc, you're right - this should be documented!
I updated the docs with the following:
IMPORTANT NOTE ON STYLES AND POSITIONING:
The default styling of the blocking message includes the following:
top:50%;left:50%;width:250px;margin:-50px 0 0 -125p
> What do you think of adding a third bool flag that if set, tells it to
> calculate
> the margin and dimensions?
Gavin,
How did you calc the dimensions in modalContent if there weren't any
specifically assigned. Or would the bool flag imply that the new
message has explicit dimensions that can
> IE6 freezes, and I need to kill the proccess. After that, I visited
Damn, it sure does. I'll have a look at it Juan.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> > IE6 freezes, and I need to kill the proccess. After that, I visited
>
> Damn, it sure does. I'll have a look at it Juan.
>
Interesting. It's this call that causes the problem:
var h = jQuery.curCSS(this, 'height');
Anyone know why that might be?
___
> I'm struggling with these global ajax callback handlers. The
> documentations states as follows:
>
> $("#msg").ajaxComplete(function(request, settings){
> $(this).prepend('Successfully loaded url: ' +
> settings.url + ' p>');
> }
> );
Tho
> Does anyone see a problem with what I have that keeps the
> rounded corners from working?
You don't ever invoke the corner method. You need to add a script
that causes the rounding:
$('.demo').corner();
___
jQuery mailing list
discuss@jquery.com
h
The IE6 bug in the corner plugin has been fixed. Apologies to anyone
that was having a problem with it! You can get the latest rev here:
http://jquery.com/dev/svn/trunk/plugins/corner/jquery.corner.js?format=txt
___
jQuery mailing list
discuss@jquery.
> That would result in adding the following code to the body:
>
>
> http://alterform.com Alterform
>
I think DOM tools are great for working with nasty things like tables,
but jQuery handles simple insertions quite well on its own. Your
example could be written more succinctly like this:
$('
Hi Nate,
I just reread my last message and it seems very negative - I didn't
mean for it to sound that way. Your plugin is cool and quite tiny!
Nice work.
Mike
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> This plugin is something I've just started working with, and I am very
> interested in community comments. The default CSS has some
> cross-platform issues -- IE fixed positioning, maybe more. I have to run
> IE under wine so I'm not seeing any transparency... nor can be sure it
> works. Safari u
> So, for instance, with that link inside that div, sometimes as I create it,
> I'd like to attach an event to JUST that anchor tag, rather than having to
> create a custom ID, assign it, then do another jQuery call to bring it up
> and attach an event.
Still doable, but less readable:
$('jQuery'
> It would be nice to allow clicks & presses ONLY if originating from
> within the modal window. Perhaps this could be accomplished by examining
> focus & parent? Would this block users from typing in the browser's
> address bar? The goal would be to allow a form within a modal window to
> be pop
> Bruce,
Ugh. I meant "Brice". Sorry!
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> The time has come:
> http://jquery.bassistance.de/api-browser/
Fantastic, Jörn. This is a really great tool.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> I want to submit the form on change of a dropdown selection rather than
> clicking the submit button.
Hi John,
ajaxForm is not the right method to use in your case. ajaxForm adds
event listeners so that it can submit your form data when the user
clicks a submit element. To submit the form dat
> It appears to not work at all in safari, all corners are black.
> At first I thought this was by design on the demo page, but now that
> I look at it in FF, corners are white.
Like Dave said, you need to assign background colors in Safari. What
demo page has this problem? This Safari screensho
> Keep in mind, that page has 448k in JS. Too big to use.
The dialogs aren't really modal either because you can activate other
links via keyboard.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> I have just updated the Tabs plugin, which now supports loading tab
> content via Ajax. As you would expect I did that in an unobtrusive manner.
As always, great job, Klaus. This is a great feature.
Watching it in FireBug it looks like there's a little issue with
double loading. Not always, b
> At long last, I have put together a downloadable Visual jQuery package.
Nice, Yahuda. I like the stream-lined UI.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> I can find no documentation on how to access the form data in a beforeSubmit
> function in the Form plugin. I can see in Firebug that all my fields is
> populated correct and it's no problem to fetch the data on the server. But I
> have no idea how the syntax is in the beforeSubmit function. I fe
> Whoa! What?!? Did you just update your site? All I've seen is the ajaxForm
> and ajaxSubmit tabs. Anyway, thanks - it was just what I needed!
Yes, I just added some more examples. I'm trying to get enough out
there to cover the common questions and some of the not-so-obvious
features. Glad that
> I'm really confused why this isn't working. I need serious help... asap!
Hi Christopher,
You code isn't working because $.ajax is an asynchronous call. You
invoke it and give it a callback method (success). That callback
method is invoked whenever the server response is received. You need
to
> Is there anyway to reference an element in the request page?
Sure. Just use the jqForm argument. For instance, if you need to
reference an element that has a name attribute of 'username' you would
write:
var element = jqForm[0].username;
You can also perform normal jQuery selections within t
> Am I right if I say that this only applies to input types that is submitted
> with the form? I've tried to get to a div with id="response":
> $('#response', jqForm).appendTo("Error message");
> return false;
>
> but in vain. I can write to a input element but not anything else, right?
No. The j
>$('#response', jqForm).appendTo("Nyhedsbrev type er ikke...);
This looks like the problem. I think you want append not appendTo.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> >$('#response', jqForm).appendTo("Nyhedsbrev type er ikke...);
>
> This looks like the problem. I think you want append not appendTo.
>
After looking at your page you probably want "html" instead of
"append". Looks like you've got it working though. Good job.
> Good points. You're right of course, key/mouse events should only be
> blocked for the underlying content. I'll try to fix that in blockUI
> (I found another bug in there too, so thanks for making me take
> another look at it.)
I just updated blockUI and added better event handling. Mouse and
> One thing that i noticed is, sometimes .css("width") returns 'auto' in
> IE, but .width() always successfully return computed width. Any plan
> about this? perhaps a .computed("width") ? :)
Brandon, please let us know if this behavior changes. The corner
plugin relies on testing for the 'auto'
301 - 400 of 542 matches
Mail list logo