On 3/6/07, Remy Sharp [EMAIL PROTECTED] wrote:
A screencast for beginners to jQuery and/or AJAX showing how easy it is to
add an AJAX layer to submit a form.
Excellent job on that screencast, Remy!
Since you end the cast with a note about putting the script into a
plugin I would just like to
I can only imagine to make that a little shorter:
$('#dropdown').change(function() {
$.log( $('option:selected', this).text() );
});
I could imagine making it faster :-)
$('#dropdown').change(function() {
$.log(this.options[this.selectedIndex].text);
});
After the page is loaded and if I set the breakpoint, it works like
I expected. But, if I set the breakpoint and reload the page, it
breaks at the breakpoint even while the page is loaded--this is
confusing as it looks the event or function is been called even when
the page is been getting
showMsg($(#customer_name input).val()+ order + response.order_id +
successfully created. aView order/a);
Paul,
You do need to use a CDATA block for that code. How did it fail when
you tried it? Do you have a sample page?
Mike
___
jQuery mailing
Do I need to wrap the entire eval contents in CDATA, or can I include
CDATA around just the function in question?
Wrap it all.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
http://www.netwise.it/xml/perlmonks/?node_id=417872
Note that in digging this back up, I came across lots of great considered
harmful rants, including short circuit OR operator, tabs, AJAX, javascript
associative arrays, considered harmful essays, and of course the goto
statement.
This
Is it possible to get BlockUI to overlay an ActiveX control in IE?
I am using the XStandard XHTML editor plugin for a CMS; form
submission is via an AJAX call, while displaying a BlockUI message
over the page.
In Firefox and Safari, the BlockUI message appears over the plugin;
but in IE,
I use .post to send information to the server. How can I force the
checkbox information to be sent even if it is unchecked? I need a
generic solution.
You won't find a solution that degrades when JavaScript is disabled.
You really should modify the server code to process the data
correctly.
hey. i tried blockui and serval scripts, they are great, the problem that i
want to able to do somthing like
on user click on submit its open window like blockui has with loading...
then its checks the json parameters that given back and if status is 0 then
close the modal window and open new
The use case is an autosave for the form. I looked at the form plugin
and it seemed to want to take control of the form submit. In my use
case I want to save the form in the background and let the user
continue to work with the form.
I would recommend using the form plugin. Its primary
1) Will the form plugin work if only called through a function?
Yes.
2) Will I be able to maintain the normal ( non-ajax ) function of the
form submit button?
Yes.
3) What serialization options are available?
None. The form serialization is written to behave *exactly* the same
way as the
However, if XML is loaded through .get, it is passed to the
processing function as text, not as a document.
That is not true. If the server returns an XML document, that's what
is passed to your success handler. You need to make sure your server
is setting the response content type to XML.
jQuery BlockUI Plugin, IE crashes every time.
I am using jquery 1.1.2 + form plugin
Kush, do you happen to have any ActiveX controls on that page? The
current version has a problem related to ActiveX. I have a fix for it
but have not updated SVN with the change yet (still testing).
Mike
I am using the JQuery forms plugin and I have a problem. I would like
to post a form that containse a file, ie I have to use
enctype=multipart/form-data. How can I set this up when using
ajaxForm()?
Is there an example how you can upload files using ajaxForm()?
thanks in advance for any
Your second attempt looks the closest. I would try it like this:
$('.ajax-div-slide').click(function() {
var url = this.href;
$('#ajax-loader').animate({height: 375}, 'slow', function(){
$('#ajax-div').load(url);
});
return false;
});
But I've got to ask... why do you
Can you give us a url to look at?
What could be the problem?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
link has been clicked previously. It seems like Internet Explorer checks
it's cache to see if it has a copy of the ajax request already, which means
it shows it straight away without any delay.
Isn't that a good thing? Why impose an artificial delay?
// iframe height //
function setHeight(h){
if($.browser.mozilla) { $( function() { alert(h); } ); }
$('#myFrame').height(h);
}
I know Netscape is barely in existence, but I'd like to fix it just the
same. Any ideas?
Did you try adding a call to window.resize() after you set the
No, sorry. I thought maybe resizing the parent after the iframe had
loaded might work.
I just tried, but maybe I'm doing it wrong? Do you mean in the iframe or the
parent? Tried both, but I didn't get anywhere. Can you post an example?
Did you try adding a call to window.resize() after
I think he means crashes. The latest code in SVN *should* fix the
problem. Please let me know if it doesn't.
http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote:
By 'crushes' do you mean that you get a
not accept the focus.
So do you think your latest patch fixes this? (*hoping*):oD
Chris
Mike Alsup wrote:
I think he means crashes. The latest code in SVN *should* fix the
problem. Please let me know if it doesn't.
http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format
Did you try:
$('div:not(:hidden) .required').each(...
get all elements that have the class 'required' as long as the
container does not have the class 'hidden' but sometimes there are
loads of nested elements so its not always the parent as such. I've
tried 'filter' and 'not' but with
and put something together that can be publicly accessible.
Thanks,
Chris
Mike Alsup wrote:
I think we're dealing with two very different errors. Do you have a
url that exhibits the focus problem, that would be a big help.
Mike
On 3/19/07, Christopher Jordan [EMAIL PROTECTED] wrote
Sounds great, John. Will all the mailing lists be moving (web, dev, plugins)?
I hope everyone is ok with this move. I think it's for the best.
Please let me know if you have any serious concerns. Thanks!
___
jQuery mailing list
discuss@jquery.com
Aljosa,
You need to bind to the change event on the select element.
On 3/21/07, Aljosa Mohorovic [EMAIL PROTECTED] wrote:
i have a DIV.selection tag and inside SELECT with OPTION tags.
using jquery i can find and manipulate options with
$('div.selection').find(option).each and similar but i
right now. I'll download the 1.02
version and see if it fixes my problem. If it does, you'll be my hero! :o)
Cheers!
Chris
Mike Alsup wrote:
Christopher,
I think I may have fixed this. If you're able to duplicate the
problem could you test it with the latest rev (1.02)?
http
I've added file upload support to the form plugin and I could use some
help testing it out. If this feature interests you then go ahead and
grab the beta plugin at:
http://malsup.com/jquery/form/file/jquery.form.js
File upload support is baked right into the plugin and there are no
external
) 10 [name]= string(12)
hamsterdance [check]= string(2) on [pick]= string(3) one }
File: Mike Alsup Rules.rtf (332 bytes)
Form 2: UI never unblocks
Output: N/A
Form 3: seems to work fine
Output:
JSON (should be an object): [object Object]
On 3/22/07, Mike Alsup [EMAIL PROTECTED
One option is to listen to the new form events. The form plugin fires
a vetoable event called form.submit.validate prior to submitting the
form and a notification event called form.submit.notify after the
form has been submitted. Perhaps you could use these to drive the
desired external
On 3/22/07, John Resig [EMAIL PROTECTED] wrote:
Very very cool. I was curious as to how you had implemented - but I
like how you did. Excellent solution. Worked well for me in my small
test.
--John
On 3/22/07, Mike Alsup [EMAIL PROTECTED] wrote:
I've added file upload support to the form
Robert,
Check out jqModal: http://dev.iceburg.net/jquery/jqModal/
It's an excellent windowing plugin and it handles some things, like
focusing, much better than PWC.
Mike
On 3/22/07, Robert James [EMAIL PROTECTED] wrote:
On 3/22/07, Sean Catchpole [EMAIL PROTECTED] wrote:
Post your
I know I can use parents to get the ancestors of my input, but this
will get all forms on the page
Why would parents() get all the forms on the page? Your input can
only be in one form.
You can always use dom code:
var form = $(#myInput)[0].form;
Mike
Of Klaus Hartl
Sent: vendredi 23 mars 2007 16:47
To: jQuery Discussion
Subject: Re: [jQuery] Beta Testers needed for Form Plugin file upload
support
Mike Alsup schrieb:
I've added file upload support to the form plugin and I could use some
help testing it out. If this feature interests you
Nathan, you beat me to it!
That is best reference I've seen on identifier resolution and scope
chains. I *highly* recommend reading it as many times as it takes to
sink it. You'll be glad you did.
Mike
Here's a great article on closures, references, scope, etc:
Try this:
var securityCheck = mysecuritycode;
var formData = $(#myForm).formToArray();
formData.push( { name: security, value: securityCheck });
...
// replace security with whatever the correct name is.
On 3/23/07, Arne-Kolja Bachstein [EMAIL PROTECTED] wrote:
Hi there,
I am using the form
Kevin,
Can you send me a link to your page? I've never seen the won't
unblock problem before.
The height issue is a result of not stretching the body element. IE6
borks in certain situations when that happens and so I dropped that
code because it was becoming problematic. There were two
Kevin,
Can you give version 1.04 a try? It should fix the height problem in ie6.
http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt
Mike
On 3/23/07, Kevin Fricovsky [EMAIL PROTECTED] wrote:
Anyone else having issues with Mike's blockUI extension in IE 6.0?
amircx,
As I mentioned, the triggered events are not yet documented. You can
listen for the form.submit.notify event like this:
$().bind('form.submit.notify', function(event, jqForm, formOptions) {
// do something when form is submitted
});
Mike
On 3/25/07, amircx [EMAIL PROTECTED] wrote:
No. The document's root element must be named 'taconite' and there
can only be one.
Mike
On 3/25/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Hi, gang...
Can there be more than one set of
taconite/taconite tags on a single page?
Rick
___
Beta 2 is now available and once again I'd appreciate any feedback,
especially from Safari users.
http://malsup.com/jquery/form/file/jquery.form.b2.js
Test page: http://www.malsup.com/jquery/form/file/
This version introduces some changes inspired by dojo's
implementation. To support json and
Nope. I work mostly in Java (JSP) and PHP. And didn't I hear that CF
was being discontinued? Ha, just kidding - just trying to get Rey's
blood pressure up. :-)
Hey, Mike...
Do you use CF?
Rick
___
jQuery mailing list
discuss@jquery.com
Hi Chris,
Yes, that will work just fine. Within the root element you can have
as many commands as you like. And the commands are always processed
in order.
Mike
On 3/26/07, Christopher Jordan [EMAIL PROTECTED] wrote:
lol! ;o)
Mike, I'm assuming that code like this would work:
taconite
Kush,
You just need to bind the change event to the select element after
it's been inserted into the DOM.
Mike
On 3/26/07, Kush Murod [EMAIL PROTECTED] wrote:
Hi Sam,
Still didn't work, my guess is
The reason I guess, because that 'select' is loaded through AJAX,
and once loaded
Safari 2.0.4 has problems when a file is chosen to upload and the
return choice is xml. It looks like the form is sent, but the
'Submitting overlay never goes away, so it appears as if the callback
isn't happening. All other return types worked fine for me, and the
xml worked fine when no
Thanks, Harald.
On 3/26/07, Harald Dietrich [EMAIL PROTECTED] wrote:
Sorry for the delay, but my feedback for IE was missing. I did not have any
problems until now. So I think for FF and IE everything seems to be fine.
___
jQuery mailing list
This will also work:
var formName = elem.form.name;
On 3/26/07, Brad Perkins [EMAIL PROTECTED] wrote:
Solved. I had been trying parent() and not parents().
parentformname = $(elem).parents(form).attr(name)
-- Brad
On 3/26/07, Brad Perkins wrote:
I have a form template that is shared
Rick,
Anything you can do in jQuery you can do with Taconite. Just think to
yourself, How would I do that in jQuery? For example, to check a
checkbox you would write:
$('#myCheckbox').attr('checked', 'checked');
So in Taconite that becomes:
attr select=#myCheckbox name=checked value=checked
taconite
replaceContent select(#someID)
Error Message
/replaceContent
attr select=#HiddenStatusFieldID value=true)
/taconite
That should work shouldn't it?
If you fix the typo with the parens that is a valid taconite doc.
On 3/26/07, Daemach [EMAIL PROTECTED] wrote:
attr select=#HiddenStatusFieldID name=value value=true)
Thanks, Daemach. I didn't read it closely enough.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Except that they'll need to submit the form when the click the submit
button. I just don't want them submitted the form when they hit enter on
the keyboard.
But that is the default and *expected* behavior. Is there a good
reason to intentionally alter standard behavior?
What exactly is failing? It works fine for me in ie6. What is the
value of your 'value' variable?
Mike
On 3/27/07, Smith, Allex [EMAIL PROTECTED] wrote:
Sorry to bug folks... but does anyone have a suggestion for me on this one
or a hint as to where to look?
I'm a wee bit lost.
Thanks
You confirm that I'm completely nuts.
IE6 does that to all of us. :-)
BTW Your Taconite plugin makes me very happy.
Glad to hear it!
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Remy, you can use firebug lite to do timings (but not profiling).
Mike
On 3/27/07, Remy Sharp [EMAIL PROTECTED] wrote:
Does anyone know how and with what I can performance profile in IE6?
Firefox and IE7 are fine, it's just IE6 takes well over 10 seconds to load a
heavily jQuery'ed page,
later.
Mike
On 3/27/07, Roger Roelofs [EMAIL PROTECTED] wrote:
Mike,
On Mar 26, 2007, at 10:13 AM, Mike Alsup wrote:
Safari 2.0.4 has problems when a file is chosen to upload and the
return choice is xml. It looks like the form is sent, but the
'Submitting' overlay never goes away, so
I'm just wondering if we're getting into the toggleButton function,
which should fire after all the params pass validation and are posted.
Trying to make sure the syntax for the statement below looks correct,
Rick,
Please don't take this the wrong way, but why are you wondering?
Put a
Beta 4 is available now at: http://www.malsup.com/jquery/form/file/
Things seem to work well on ie6, ei7, ff2, and op9. I'm still trying
to sort out issues with op8 and Safari.
Mike
On 3/29/07, Kush Murod [EMAIL PROTECTED] wrote:
So when is it going alpha can't wait :)
of ideas for this problem and so the file upload feature may have
the caveat of not supporting xml responses.
Mike
On 3/29/07, Brandon Aaron [EMAIL PROTECTED] wrote:
On 3/29/07, Mike Alsup [EMAIL PROTECTED] wrote:
Beta 4 is available now at: http://www.malsup.com/jquery/form/file/
Things seem
Using jquery-1.0.4.js - NO PROBLEMS
http://www.dilltree.com/test/jtest104.html
Using jquery-latest.pack.js - CSS ISSUES ON REFRESH.
http://www.dilltree.com/test/jtest112.html
Jeremy,
Have you tried an unpacked version of 1.1.2?
___
jQuery mailing
So when is it going alpha can't wait :)
I've released it into the wild:
http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
, do you feel
it's a equal or better to the prior versions?
On 3/31/07, Mike Alsup [EMAIL PROTECTED] wrote:
So when is it going alpha can't wait :)
I've released it into the wild:
http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt
401 - 460 of 460 matches
Mail list logo