Felix Geisendörfer wrote:
Hey, I'm currently doing a little series on JavaScript programming <http://www.thinkingphp.org/2006/12/30/a-php-developers-guide-to-javascript-part-i/> on my blog and I think this would be an excellent tutorial for one of my upcoming posts. So if you can wait I might write up an excellent how-to guide about this soon.

If you can't, here is the basic things you need to do (and I highly recommend you to use jQuery instead of prototype for it!):

   1. Attach an event to the <form>'s onSubmit event
   2. In the callback function, create an iframe on the fly, hide it and
      set the form's 'target' attribute to match the name (or id I
      forgot) of the iframe
The name I think.
   3. Attach an onLoad function to the iframe
   4. Then execute the form submit event yourself
   5. In the onLoad callback of the iframe you should be able to access
      it's content (I think). Otherwise return some JS in the iframe
      that will pass some variables to window.parent, making them
      available to your real site

Well. It is mean I must to send the all form to the iframe, not only the file... What an easy :) I thinked in a difficultest way. That was the problem.

Of course this isn't complete, but I hope it helps.


It helps thanks.


--
Ámon Tamás
http://linkfelho.amon.hu


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to