I am using Scriptaculous beta and Prototype 1.5.1.1 to build a forum  
application. At the bottom of any thread, there is an empty div that  
I replace on page load with a form to reply to that thread. I am  
using Ajax.Updater wrapped inside a window/load observer.

This form that loads into the empty div has the following script at  
the end of its HTML:

<script type="text/javascript" charset="utf-8">
        $('log_in').observe('submit',function(evt){
                Event.stop(evt);
                new Ajax.Updater('reply_form','form.php',{parameters: $ 
('log_in').serialize(true),evalScripts:true});
        });
        $('start_signup').observe('click', function(){
                new Ajax.Updater('reply_form','form.php',{parameters: {form:  
'signup'},evalScripts:true});
        });
        $('start_recovery').observe('click', function(){
                new Ajax.Updater('reply_form','form.php',{parameters: {form:  
'recover'},evalScripts:true});
        });
</script>

The entire thing is working perfectly on Firefox 2 and Safari 2, but  
fails partially on the iPhone. The initial replacement happens, but  
from that point on, none of the handlers work correctly.

What appears to happen here is that the form is being posted, but  
none of its values are being passed along in the parameters. This  
only seems to happen on the iPhone.

I have not tried using 1.6rc yet, and would like to know if it would  
be compatible with Scriptaculous. I don't need much of Scripty, but  
that which I do I'd rather not have to re-write if it isn't compatible.

Any thoughts about this?

Thanks,

Walter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to