[jQuery] Re: Form Plugin

2009-10-18 Thread factoringcompare.com
Can anybody help? On Oct 16, 9:52 pm, "factoringcompare.com" wrote: > Hi > > Complete newbie now completely out of depth! > > I have built a form using form wizard pluginhttp://home.aland.net/sundman/. > It caters for the intergration of “Form Plugin”http://malsup.com/jquery/form/. > > I now wan

[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-03 Thread Evgeny
perfect, thanks I got it fixed. On Oct 3, 6:39 am, Mike Alsup wrote: > > Sure, here it is. Thank you! > > >http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/... > > Ok, so here is the source for one of your forms: > > Administrator (1) > >     >     >     >     >     >  

[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-03 Thread Mike Alsup
> Sure, here it is. Thank you! > > http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/... > Ok, so here is the source for one of your forms: Administrator (1) That is not valid markup. If you look at Firebug you will

[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-02 Thread Evgeny
Sure, here it is. Thank you! http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/people/moderate/ there are many identical forms with different data. javascript submission goes to a different url -> to wsgi application, which is set in the script /pywiki/media/scripts/people.js

[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-02 Thread Mike Alsup
> I've used $(#myform).ajaxForm(options) > method to make the form submittable with ajax. > > the problem is that no matter what button I click the > form data is the same and element is not > included > into the form data, as if it were not a "successul control". > > so at this point form doesn'

[jQuery] Re: Form Plugin issue

2009-09-11 Thread Mike McNally
If your AJAX call returns a fragment with a script tag in it, then dropping it into the page via the jQuery html(fragment) method should run the script. On Fri, Sep 11, 2009 at 9:36 AM, Jan wrote: > > I'm stuck with the same problem, i'm also trying return a 'partial > page' containing a script

[jQuery] Re: Form Plugin issue

2009-09-11 Thread Jan
I'm stuck with the same problem, i'm also trying return a 'partial page' containing a script tag with some javascript i would like to see excecuted .. I've tried the textarea suggestion but can't seem to get it to work (i tried the dataTypes 'json' and 'script' and even 'xml' out of sheer despera

[jQuery] Re: Form Plugin issue

2009-08-26 Thread Lay András
Hello! On Wed, Aug 26, 2009 at 9:04 PM, Mike Alsup wrote: > Kostya is correct.  Try embedding the response in a textarea element - > the plugin will automatically extract if for you and no escaping is > needed. This don't works, because response embedding in a textarea only needs, if the respon

[jQuery] Re: Form Plugin issue

2009-08-26 Thread Mike Alsup
> It looks like the problem is that the form is submitted into generated > Iframe, which doesn't have references to jquery or other JS libraries > that you might be using. Kostya is correct. Try embedding the response in a textarea element - the plugin will automatically extract if for you and n

[jQuery] Re: Form Plugin issue

2009-08-24 Thread kostjazz
It looks like the problem is that the form is submitted into generated Iframe, which doesn't have references to jquery or other JS libraries that you might be using. I'm not too sure if there is an easy way around it as my JS/jquery skills are far from perfect. One of the dodgy solutions that com

[jQuery] Re: Form Plugin issue

2009-08-24 Thread Lay András
Hello! On Mon, Aug 24, 2009 at 9:46 AM, kostjazz wrote: > Hi All, > > I also experience the very same problem. > > I also found that when it happens it submits the form twice. For me not need to submit twice the form, only one submit enough to produce the error. > I haven't tried upgrading the

[jQuery] Re: Form Plugin issue

2009-08-24 Thread kostjazz
Hi All, I also experience the very same problem. I also found that when it happens it submits the form twice. I haven't tried upgrading the version but the one I'm using is 2.10 (05/08/2008) Cheers Kostya

[jQuery] Re: form plugin not working

2009-08-12 Thread Scott Grizzard
- Scott Grizzard sc...@scottgrizzard.com http://www.scottgrizzard.com/ -Original Message- From: sunny Date: Wed, 12 Aug 2009 07:04:01 To: jQuery (English) Subject: [jQuery] form plugin not working New Organization Building Floor //wait for the DOM to be loaded $(document).ready(

[jQuery] Re: Form plugin - success callback not executed ?

2009-06-17 Thread Mike Alsup
> I found out it's because I need an existing element for option "target". > I didn't want any element to be updated by the result, that's why I put this > #dummy pointing to nowhere. > Well, I added an element display:none in my Html and point it to that one Why use the target option if you don'

[jQuery] Re: Form plugin - success callback not executed ?

2009-06-17 Thread debussy007
I found out it's because I need an existing element for option "target". I didn't want any element to be updated by the result, that's why I put this #dummy pointing to nowhere. Well, I added an element display:none in my Html and point it to that one ... debussy007 wrote: > > Hi, > > it see

[jQuery] Re: Form plugin asynchronous behavior

2009-06-09 Thread dann
Wow -- that answer turned out to be both 100% correct and completely off-topic for this forum! Thanks so much Dutch, I'm incredibly glad you happened to spot this post and comment on it. I'd been barking up the wrong tree and don't even want to think about how long it would have taken me to track

[jQuery] Re: Form plugin asynchronous behavior

2009-06-09 Thread Dutch
Are you using php sessions? The start session call blocks untill the other script finishes. Script A: -> session_start(); -> do stuff for 30 sec Script B: -> session_start(); // waits 30 secs untill Script A releases the session -> do stuff for 2 sec Suggestion solution: Script A: -> session_st

[jQuery] Re: Form plugin asynchronous behavior

2009-06-09 Thread Dutch
test

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-04 Thread Bob Schellink
Hi John, johnHoysa wrote: Actually I jumped the gun but hopefully soon I will figure this out. My understanding is that both ajaxSubmit and validate are registered on the Form submit event. So both events are fired at the same time. Thus when the form's beforeSubmit callback fires, the va

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-04 Thread johnHoysa
Actually I jumped the gun but hopefully soon I will figure this out.

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-04 Thread johnHoysa
Got it working with the below code! Had to move my validation to the top of the pre submit calls so it would validate first then do the rest of the ajax submit I think. Hopefully this works for me! Again Gustavo thanx for the help! John var options = { //meta:

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-04 Thread johnHoysa
Hmm still seem to be having some issue with it. The code is not properly posting to sessions.cfm I think. Looking at firebug every thing seems to be fine but when I then pull back in my tasks.cfm the data was never written to sessions.cfm properly. The validation is working currently. Appreciate

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-03 Thread johnHoysa
Can't wait to test it out tomorrow morning! You are correct with what I am trying to do, sorry I didn't explain it earlier. I really appreciate your help, have a good day/night.

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-03 Thread Gustavo Salomé
I did mistake my past code, now it seens to do what you want to: jQuery("#myForm").validate({ meta: "validate", submitHandler: function(form) { jQuery(form).ajaxSubmit({ success

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-03 Thread johnHoysa
Hi there, Gustavo, Thanx for the help, but it seems to not be posting anything to the file now. I will probably look more in-depth into the basics of what you recommended to see if I can figure out what I might be doing wrong. I am also trying to use the following code as well. There is a before

[jQuery] Re: Form Plugin and Validation, I am totally lost even after doing the research.

2009-06-03 Thread Gustavo Salomé
I dont know if i get what you want to do but Try to add a success function to your ajaxsubmit function, lke this: jQuery(form).ajaxSubmit({ target: "#newTasks", success:function(html){ $.get('tasks.cfm',{},function(data)

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread dann
> $.ajaxSetup({async:true}); I added that at the top of the $(document).ready(function() function, but I'm still getting the same result. > Btw, i work a lot with ajax and i've never had this problem. I'm wondering if maybe I'm not describing this problem properly... I feel like the trouble I'm

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread Gustavo Salomé
Try $.ajaxSetup({async:true}); I think its the only reasonable explanation. Btw, i work a lot with ajax and i've never had this problem. 2009/6/2 dann <00d...@gmail.com> > > Thank you both for the help! > > > Is the 30 second request a file upload? > > No file uploads involved: it's just a sing

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread dann
Thank you both for the help! > Is the 30 second request a file upload? No file uploads involved: it's just a single text input that's submitted, but the processes on the server can take awhile. > Be sure to set the ajax param 'async' to true. In the ajax docs it looks like it's set to true by

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread Gustavo Salomé
Be sure to set the ajax param 'async' to true. 2009/6/2 Mike Alsup > > > The problem I'm having is that the form submissions seem to be queued > > and submitted synchronously, so if a user submits a request that takes > > say 30 seconds and then immediately submits another request that only > >

[jQuery] Re: Form plugin asynchronous behavior

2009-06-02 Thread Mike Alsup
> The problem I'm having is that the form submissions seem to be queued > and submitted synchronously, so if a user submits a request that takes > say 30 seconds and then immediately submits another request that only > takes 2 seconds the latter results aren't displayed for 32 seconds. It > also s

[jQuery] Re: Form Plugin

2009-06-01 Thread Robbie Clutton
So when I added the error and complete callbacks I can see it working, but I'm getting an error. It looks like it's submitting 3 times and is timing out. On May 31, 7:00 pm, Robbie Clutton wrote: > Hey, I tried the form plugin, but I'm not getting the expected > complete event.  Below is the co

[jQuery] Re: Form Plugin

2009-06-01 Thread Robbie Clutton
So when I added the error and complete callbacks I can see it working, but I'm getting an error. It looks like it's submitting 3 times and is timing out. On May 31, 7:00 pm, Robbie Clutton wrote: > Hey, I tried the form plugin, but I'm not getting the expected > complete event.  Below is the co

[jQuery] Re: Form Plugin + FCKEditor + UI Dialog Button

2009-05-13 Thread dantan
Same problem. I have a working ajaxSubmit form. When I replace a textarea with fck the ajaxSubmit is not working anymore. console.log in beforeSubmit works but then the form is submitted without ajax but with a page reload.

[jQuery] Re: Form plugin: input elements excluded

2009-05-01 Thread Dan G. Switzer, II
Dennis, You could do a manual AJAX submit and then just manually serialize your form fields. Also, before doing the AJAX submit, you could do something like: $("#your_form").append("#your_dialog"); This would move the fields back into the element. -Dan On Mon, Apr 27, 2009 at 5:16 AM, dth wr

[jQuery] Re: Form plugin: input elements excluded

2009-04-27 Thread dth
Aha! I guess it must be because the dialog is moved to be the last element of the body element, and thus outside of the form. I guess that's necesarry for absolute placement etc. I'll see if I manually can pick up the extra field values. Suggestions are welcome :) -dennis On Apr 27, 11:11 am

[jQuery] Re: Form plugin: input elements excluded

2009-04-27 Thread dth
Hi, Is there someone on the list with detailed knowledge of how browsers handle input fields. Or somebody that knows in detail what the jquery- ui plugin actually does to a div. According to firebug not much is altered, and the fields should be included in the form as far as I can tell. But they

[jQuery] Re: Form plugin: input elements excluded

2009-04-26 Thread dth
As far as I can tell they should all be just fine. If I disable the jquery-ui-dialog and just display the fields (in tabs) in the page, they work just fine. So it must be caused by the dialog plugin somehow. I have text inoput fields and checkboxes. They all have names. None are disabled (unless

[jQuery] Re: Form plugin: input elements excluded

2009-04-26 Thread Mike Alsup
> Are hidden form fields not included? Any ideas on how to circumvent > this? No, hidden form fields are not excluded. What does your markup look like? There are several reasons that inputs would not be submitted: - the input does not have a name attribute - the input is disabled - the input i

[jQuery] Re: Form Plugin + FCKEditor + UI Dialog Button

2009-04-20 Thread lilo
I'm having the same issue. Anyone? On Mar 23, 9:29 pm, Joshua wrote: > I downloaded thefckeditorjquery plugin because i was told it would > resolve issues with submitting forms via Form Plugin ajaxSubmit. > > But everytime I do it, my form won't submit anymore... > > My dialog button appears to

[jQuery] Re: Form Plugin data return type

2009-03-16 Thread Mike Alsup
> Hello, I'm trying to submit a form via Ajax and receive a JSON return > type > > http://imgur.com/2KZ1.png > > As you can see in the screen shot, I call the method ajaxForm, and on > success of the ajax call, processJson is being invoked.  This method > only outputs a data.message alert. > > For

[jQuery] Re: Form plugin ajax file upload works in Firefox but not IE

2009-03-14 Thread Mike Alsup
> I was on v2.18 (still the latest rev listed on the jquery.com site).  I > downloaded v2.24 and the problem is gone. > > Thanks for the quick response though! Glad to hear it. Thanks for letting me know.

[jQuery] Re: Form plugin ajax file upload works in Firefox but not IE

2009-03-14 Thread John Scully
I was on v2.18 (still the latest rev listed on the jquery.com site). I downloaded v2.24 and the problem is gone. Thanks for the quick response though! John - Original Message - From: "Mike Alsup" To: "jQuery (English)" Sent: Saturday, March 14, 2009 7:18 PM

[jQuery] Re: Form plugin ajax file upload works in Firefox but not IE

2009-03-14 Thread Mike Alsup
> I am having difficulty tracking this down - there is no apparent > error...just nothing happens.  Nothing is sent to the server, so this > is not a problem with display the response - there is no response > because the form never submits. > > Does anyone know about problems with IE7 or IE8 using

[jQuery] Re: form plugin and file upload size

2009-03-11 Thread Mike Alsup
> I seem to be capped at 7mb or so in file size. Nothing seems to really > happen if I try and upload a file larger (smaller files work > flawlessly) and ideas? The form plugin does not impose any file size limitations. However, your server might.

[jQuery] Re: Form Plugin ajax

2009-03-05 Thread Rick Faircloth
Why are some inputs submitted later? Why not all at the same time? Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of makrohaus Sent: Thursday, March 05, 2009 3:42 AM To: jQuery (English) Cc: m.gillho...@makrohaus.de Subject: [jQuery

[jQuery] Re: Form Plugin with file upload

2009-02-21 Thread Susie Sahim
Thank you Mike for taking the time to trouble shoot this with me. I really appreciate it. Susie "BogusRed" Sahim http://www.PaperDemon.com On Thu, Feb 19, 2009 at 3:58 AM, Mike Alsup wrote: > > > Hooray! I'm so happy its fixed!!! > > Excellent, Susie. So glad to hear it! >

[jQuery] Re: Form Plugin Issue in IE (resolved, sort of)

2009-02-19 Thread James
Yeah, these are nasty alright. I had a hell of a time on someone's code where the input submit button's name was 'submit'. On Feb 19, 1:43 pm, Mike Alsup wrote: > > After spending literally hours tracking down the problem, I found it. > > One of the form's input name and id is set to 'length' in

[jQuery] Re: Form Plugin Issue in IE (resolved, sort of)

2009-02-19 Thread Mike Alsup
> After spending literally hours tracking down the problem, I found it. > One of the form's input name and id is set to 'length' in the HTML. > Once I changed it to something different, it worked fine. > > Has anybody seen this issue before? Ooh, that's nasty. You must have had fun with that one

[jQuery] Re: Form Plugin with file upload

2009-02-19 Thread Mike Alsup
> Hooray! I'm so happy its fixed!!! Excellent, Susie. So glad to hear it!

[jQuery] Re: Form Plugin with file upload

2009-02-18 Thread Susie Sahim
I FIXED IT I FIXED IT I FIXED IT I FIXED IT I FIXED IT *jumps up and down for joy* Ok there were two problems. FIRST problem: In my beforeSubmit option I was actually getting rid of the form before the plugin had a chance to create the iframe and submit it properly: b

[jQuery] Re: Form Plugin with file upload

2009-02-18 Thread Susie Sahim
Hi Mike, I took out the duplicate binding that was at the bottom of the page. but the file upload still doesn't work and no part of the submit goes through. Susie "BogusRed" Sahim http://www.PaperDemon.com On Mon, Feb 9, 2009 at 4:46 PM, Mike Alsup wrote: > > > Thank you again for working with

[jQuery] Re: form plugin and prettypopin/lightbox

2009-02-10 Thread spiderling
I am using prettypopin for the link on the index page to open updatephoto.php. The index page also uses some other jQuery features. I've included the jQuery in case you see something that may be wrong or conflicting, and the HTML link tag. Thanks Pasquale jQuery: $(document).ready(functio

[jQuery] Re: form plugin and prettypopin/lightbox

2009-02-10 Thread Mike Alsup
On Feb 10, 12:04 am, spiderling wrote: > I am using prettyPopin lightbox for a file upload form, and I am also > using jQuery Form Plugin to upload the image file and update it > accordingly. Unfortunately, the file is not being sent. The $_FILES > array is empty. I've included the jQuery and H

[jQuery] Re: Form Plugin with file upload

2009-02-09 Thread Mike Alsup
> Thank you again for working with me on this! I really appreciate it. > Hopefully we'll get to the bottom of this. > > Susie "BogusRed" Sahimhttp://www.PaperDemon.com One thing to do right away is to get rid of the duplicate submit binding code. You test page has an inline script block which ca

[jQuery] Re: Form Plugin with file upload

2009-02-09 Thread Susie Sahim
Thank you Mike for the quick response. I uploaded your latest version and am experiencing the same problem I had with v. 2.16 text only works just fine. using image attachment the form data does not get saved on the php end. the ajaxSubmit() makes it to the success call back even though it wasn't

[jQuery] Re: Form Plugin with file upload

2009-02-08 Thread Mike Alsup
> I just upgraded the plain page to the latest version of jquery and the form > plugin. And I noticed that with the new version, it does not make it to the > success callback and you'll see this when you submit the form it gets stuck > on the "loading..." text This was likely a bug fix of some kin

[jQuery] Re: Form Plugin with file upload

2009-02-08 Thread Susie Sahim
Mike, thank you so much for your patience with me on this one. I've created a simplified version of this page taking out all of the css and unnecessary javascript. all that is there is jquery, form plugin, and the few functions used for the page: http://www.paperdemon.com/tests/comments_plain.php

[jQuery] Re: Form Plugin with file upload

2009-02-02 Thread phicarre
If I resume the situation : text fields file field $_POST $_FILES Remark -- filledfilled empty filled abnormal

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread phicarre
Hi Mike, This thread seems to be similar to my problem submitted by email (subjet: about url) On 30 jan, 18:37, Mike Alsup wrote: > > No, you are not supposed to do anything at all with the iframe.  The > > plugin handles all of that for you.  I'll try to take a look at your > > page tomor

[jQuery] Re: Form Plugin with file upload

2009-01-30 Thread Mike Alsup
> No, you are not supposed to do anything at all with the iframe.  The > plugin handles all of that for you.  I'll try to take a look at your > page tomorrow. Well, I have to admit that I'm not sure why your page isn't working. However, I did create a very simple test case here: http://jquery.m

[jQuery] Re: Form Plugin with file upload

2009-01-29 Thread Mike Alsup
> But this is the exact part of the documentation that I don't understand. Am > I supposed to place an iframe somewhere? How does jquery know which iframe > in the page is the correct one? How do I tell it which php file to send the > file to so I can process the file upload? This is what I don't

[jQuery] Re: Form Plugin with file upload

2009-01-29 Thread BogusRed
BB san wrote: > > hey, you are right, the key point should be iFrame. > I guess your file has successful uploaded. > > The problem is your server responses to your iframe, not to your original > page. > that is why you don't see the POST action does not appear in Firebugs Net > > XHR panel >

[jQuery] Re: Form Plugin with file upload

2009-01-26 Thread BogusRed
I've set up a page here: http://www.paperdemon.com/tests/commentsclass.php log in with the following info: login: t...@yahoo.com password: p455w0rd After Logging in, click on "Post a Comment" and type a message and select a jpg image to upload. Then hit submit. > In Firefox, when a file is att

[jQuery] Re: Form Plugin with file upload

2009-01-22 Thread Mike Alsup
> Sorry for the delayed response. I tried taking a break from it and > coming back to it with a fresh mind. It's not easy for me to set up a > page for you to test because the app requires a log in. It is always helpful if you can simplify the problem down to a small test page. 90% of the time t

[jQuery] Re: Form Plugin with file upload

2009-01-21 Thread BogusRed
Hi Mike, Sorry for the delayed response. I tried taking a break from it and coming back to it with a fresh mind. It's not easy for me to set up a page for you to test because the app requires a log in. But lets see how far we can get without it. I tried submitting the form in a non-ajax environme

[jQuery] Re: Form plugin and ui-dialog issue (never submits)

2009-01-15 Thread cmulist
The form that is turned into a dialog is a separate form at the end of the main form. Relevant code below. It seems the combination of dialog + File element + Form plugin (ajaxSubmit() or ajaxForm() ) is a no-go. The ajaxSubmit() works fine when there is no FILE element OR the form is moved out

[jQuery] Re: Form plugin and ui-dialog issue (never submits)

2009-01-15 Thread Richard D. Worth
Your issue may be related to the fact the when you call .dialog(), it moves the element it wraps (the dialog content) to the end of the body (no other way to get it to be on top in IE). This trips up some people because they'll turn a part of a form (say a fieldset or a div inside a form) into a di

[jQuery] Re: form plugin and blockUI problems in IE7 with the ui not unblocking

2009-01-02 Thread tradeallday
I found the problem, it was an extra form tag that I had on the page nested in my other form tag. I copied and pasted in code for paging from the table sorter plugin and never removed the form tag from the example. Once I removed that it worked great. Thanks for your response. I have to say that t

[jQuery] Re: form plugin and blockUI problems in IE7 with the ui not unblocking

2009-01-01 Thread Mike Alsup
> I'm using the form plugin and the most recent version of blockUI. > > Here's my form initialization area: > >                 $(document).ready(function() { >                     var options = { >                         target:        '#search_results',   // target > element(s) to > be updated

[jQuery] Re: Form Plugin with file upload

2008-12-29 Thread Mike Alsup
> I am working on an ajax app that uses jquery's form plugin and it works just > fine until I add a file upload input into my form: > > > > If I take these input fields out, my form works fine and submits and saves > no problem. But once I added these parts to my form html, the jquery form > plu

[jQuery] Re: Form Plugin Returng JSON into a File For Download

2008-11-12 Thread Mike Alsup
> I am returning JSON from the Form Plugin using a file upload and it > returns a file with the value in it for download and does not his the > success callback.  Any reason for this?  It only does this when a file > is in the file upload. This sounds familiar! Check out this recent thread: htt

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Mike Alsup
> Ooooh, right, I didn't think of that (I am fairly new to making stuff with > ajax). I guess there is no way to make the ajaxForm function wait for this > particular response? But I guess this is a different topic now.. The way to do it is to return false from the beforeSerialize function; that

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Spikx
malsup wrote: > > This sort of thing comes up a lot so I've added a new callback > function called 'beforeSerialize'. You can use it like this: > > var ajaxFormOptions = { > beforeSerialize: function($form, opts) { > $("#hidden_input").attr("value","test"); > } > }; > > $('#f

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Spikx
malsup wrote: > > >> but for some reason the input field stays empty this way: > > Yeah, that reason is known as asynchronous programming. When you make > that ajax call you will get a response some time in the future, not > immediately. > > Ooooh, right, I didn't think of that (I am fai

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Mike Alsup
> but for some reason the input field stays empty this way: Yeah, that reason is known as asynchronous programming. When you make that ajax call you will get a response some time in the future, not immediately.

[jQuery] Re: Form Plugin Incompatible with Firefox 3

2008-11-06 Thread Mike Alsup
> I'm trying to use the jQuery Form Plugin (http://www.malsup.com/jquery/ > form/). The "ajaxSubmit" code sample works fine for me in IE7, but it > doesn't work at all in Firefox3. The form submits normally, without > any JS errors. Has anyone else run into this, and if so is there any > way to fi

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Spikx
Ok, it seems I still need help here. var ajaxFormOptions = { beforeSerialize: function(){ $("#hidden_input").attr("value","test"); } }; $('#form').ajaxForm(ajaxFormOptions); works fine now :). However, in reality, I don't want to set the value of the input field to an arbitrary value, I actua

[jQuery] Re: Form Plugin: editing/adding data before send

2008-11-06 Thread Mike Alsup
> I am using the jQuery Form Plugin to submit a form via AJAX. One thing I'd > like to do, is editing the value of a (hidden) input field, right before the > form is sent (or alternatively adding additional POST data in some way > before send). I defined a hidden input field (without a value) in t

[jQuery] Re: Form Plugin - JSON upload problem

2008-09-27 Thread Adam
It should be noted that the portion of the form is cloned and inserted when a user clicks a link. I think that part of the problem is that the plugin isn't detecting the value of the file input even though it is present in the data (seen via the console). On Sep 27, 11:06 am, Adam <[EMAIL PROTEC

[jQuery] Re: form plugin and a progress bar

2008-09-05 Thread andrea varnier
On 5 Set, 01:24, Mike Alsup <[EMAIL PROTECTED]> wrote: > Unfortunately there is no way to know the progress of the upload with > just HTML/JavaScript.  But you can do this with Flash.  Here's an > example: > > http://www.pixeline.be/experiments/jqUploader/ > > Mike thanks mike :)

[jQuery] Re: form plugin and a progress bar

2008-09-05 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: thank you, the post is really good, but the server here is running PHP 5.1 :( Without apc extension you can't do it in php/javascript. As mentioned from Mike Alsup the are a different solutions in flash. I've never used jqUploader, but I've used SwfUpload, and wit

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread Mike Alsup
> what I am trying to do is a file-upload form that uses ajax (and so > I'm using the form plugin) and that shows a progress bar while > uploading. > I've tried many solutions that I found over the internet but none > seemed to work. > possibly I am making mistakes somewhere in the process. > ques

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread andrea varnier
On 4 Set, 14:21, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > Hi andrea, it depends on what server side language you are using. > > Since you're italian I think this link can help you understand how to > work with the apc extension for doing it in php: > > http://forum.html.it/forum/showt

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread pedramphp
Dear andrea I have the same Problem If you found what to do please let me know On Thu, Sep 4, 2008 at 2:45 PM, andrea varnier <[EMAIL PROTECTED]>wrote: > > Hi :) > what I am trying to do is a file-upload form that uses ajax (and so > I'm using the form plugin) and that shows a progress bar while

[jQuery] Re: form plugin and a progress bar

2008-09-04 Thread Giovanni Battista Lenoci
andrea varnier ha scritto: Hi andrea, it depends on what server side language you are using. Since you're italian I think this link can help you understand how to work with the apc extension for doing it in php: http://forum.html.it/forum/showthread.php?s=45a4891980adf6a46be2e9801af5f034&thr

[jQuery] Re: Form Plugin: Pressing Enter on an ajaxForm skips event listeners

2008-08-21 Thread Mike Alsup
> Hi All, > > I'm having a problem with the form plugin. > > When I press enter in a type="file" input field, I'm brought to a new > page instead of the current page being updated. > > In the attached code, press enter in the type="text" field, and it > works as expected, but press enter in the ty

[jQuery] Re: Form plugin, add loading gif

2008-07-17 Thread Mike Alsup
> I am trying to add a loading gif to the form plugin, but each time I > do, it breaks. > > I am using: > > $(document).ready(function() { > > //Create function for ajax asset builder > $('#page_asset_builder_28031').ajaxForm({ >   iframe: true, >   success: function(html) { >   $("#loading").show

[jQuery] Re: Form Plugin - Feature Request

2008-06-16 Thread Mike Alsup
> All I'm trying to do is make the options persist into the success > callback - just like they do in the beforeSubmit callback.  This way > some information can be stashed on dynamically generated javascript. Since the form plugin uses jQuery's $.ajax method under the hood, you could use the 'co

[jQuery] Re: Form plugin problem - remote action

2008-05-23 Thread Pedro Mendonça
What is x-domain? out of localhost? On Fri, May 23, 2008 at 5:43 PM, Mike <[EMAIL PROTECTED]> wrote: > > > I have tried the ajax Form plugin. It works great if the email.php action > is > > in the same server/folder. When I use a remote one, from another server, > it > > just substitute the whole

[jQuery] Re: Form plugin problem - remote action

2008-05-23 Thread Mike
> I have tried the ajax Form plugin. It works great if the email.php action is > in the same server/folder. When I use a remote one, from another server, it > just substitute the whole page on the browser by the remote email.php. It > does send the email form, but show all the content I want to ke

[jQuery] Re: form plugin doesn't want to submit a file

2008-05-23 Thread Mike
> $('#sub_immagini').ajaxForm(); > > if I submit it while it's empty it seems to work (with firebug I see > the post request, even if I get no response, and that's strange), if I > try to upload a file, it does nothing (the page is reloaded, as if > there was no ajaxForm bind)... > > what am I doi

[jQuery] Re: Form Plugin

2008-04-30 Thread Mike Alsup
> Is there a way to make this dynamic? > > I have ~ 100 lines that need to be written into a table of data which > a check box indicating status of a project (complete or not). > Each checkbox has an id="check1" or "check2" etc. > What I'm looking to do is to trigger a function that submits >

[jQuery] Re: Form Plugin

2008-04-30 Thread finco
Is there a way to make this dynamic? I have ~ 100 lines that need to be written into a table of data which a check box indicating status of a project (complete or not). Each checkbox has an id="check1" or "check2" etc. What I'm looking to do is to trigger a function that submits ProcessThe Data.a

[jQuery] Re: Form Plugin

2008-04-29 Thread finco
Thanks - that's what I needed. On Apr 29, 4:34 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > > Can someone please point me in the right direction? I am using the > > form plugin and it works great on a form submit action. Is there a > > way I can use it on a click event on a checkbox or onbl

[jQuery] Re: Form Plugin

2008-04-29 Thread Mike Alsup
> Can someone please point me in the right direction? I am using the > form plugin and it works great on a form submit action. Is there a > way I can use it on a click event on a checkbox or onblur for a text > field to immediately save the user's data? Thanks in advance for your > help. >

[jQuery] Re: Form Plugin: new page

2008-03-09 Thread Maxime C. Dumas
For now what I found is I put a javascript redirect, since header('Location..') php function simply loads the content which is then returned in the div element. I use javascript function location.href, which seems to be a viable alternative for now. It does require javascript, but hey the form plu

[jQuery] Re: Form plugin and attaching extra stuff to query string

2008-03-06 Thread Mike Alsup
> You could also push more info into the data array, using the > 'beforeSubmit' right ? > Although, is Mike's option is a possibility, that's always cleaner. You can add extra data in the beforeSubmit handler, or more conveniently, in the plugin fn: $('#myForm').ajaxForm({ // use data pro

[jQuery] Re: Form plugin and attaching extra stuff to query string

2008-03-06 Thread Peter Bengtsson
On 06/03/2008, Mike Alsup <[EMAIL PROTECTED]> wrote: > > > Is that just because it's jQuery or does that apply in general to all > > browsers doing AJAX? > > > It's a technique used by all the major JavaScript libraries. > Thanks a lot! I didn't know that. -- Peter Bengtsson, work www.fry-i

[jQuery] Re: Form plugin and attaching extra stuff to query string

2008-03-06 Thread Mike Alsup
> Is that just because it's jQuery or does that apply in general to all > browsers doing AJAX? It's a technique used by all the major JavaScript libraries.

  1   2   >