Jesse--
Thanks. I had found a AjaxFormSubmit_${formId}_${compId}_submit method
from my AjaxSubmit component, and that seemed to do the trick. (Calling
the postXXXForm method did not work for me.)
I didn't know about the "enhanced events", though. So instead of setting
an onkeypress attribute in the html, I'm calling dojo.connect and hoping
I get the enhanced events for free. What is it about them that's
enhanced, btw? :)
It'd be cool if I could get the names of these functions from the
components themselves...
Thanks again,
j.joseph
On Wed, 2006-02-01 at 22:58 -0500, Jesse Kuhnert wrote:
> It's a little bit off the beaten path, but if you know your forms
> unique client id (ie doing a view source it would be form
> id="uniqueclientid" ) then you know the method that will be called to
> submit it via an AjaxForm which is(replace ${formId} with your unique
> client id):
>
> document.post${formId}Form = function(event) {
> //lots of stuff
> }
>
> The only catch is that you have to pass in a valid javascript event to
> that function, and not just any event, but a dojo enhanced event. The
> best way to assure this is by simply triggering the function that
> calls it via an dojo event listener :)
> ie
> dojo.event.connect();
>
> jesse
>
> On 2/1/06, J. Joseph Benavidez <[EMAIL PROTECTED] > wrote:
>
> Hello,
>
> I have search text field where I want to apply the principals
> described
> here:
>
> http://ajaxpatterns.org/Submission_Throttling
>
>
> Basically, on a set interval, I want to do an ajax form submit
> if the
> text in the text field has changed. Wiring up everything so
> that the
> text value is cached and a javascript function is called on an
> interval
> is easy enough... But the question is, how do I perform that
> actual ajax
> submit?
>
> Is there a component that will give me a pre-made ajax form
> submit
> function that I can call within javascript?
>
> Thanks,
>
> j.joseph
>
> p.s. thanks for everyone's hard work! this is a great
> framework!
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files
> for problems? Stop! Download the new AJAX search engine that
> makes
> searching your log files as easy as surfing
> the web. DOWNLOAD SPLUNK!
>
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Tacos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tacos-devel
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel