Rm Rm <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> How can I make a wap page with some data shown in a form. Form will have
> some links and the form has to be submitted to the server with some data
> picked up from the links. Now I can easily do this in rhtml using
> javascript and eruby. But how do I pick up data to be shown using RoR,
> and then do the equivalent of javascript in wap version?
>
> Any help is greatly appreciated.
To detect WAP, I''m *guessing* you could use respond_to, like:
respond_to do |format|
format.html ...
format.wml ...
end
You may need WML to be registered first in your environment.rb:
Mime::Type.register "text/vnd.wap.wml", :wml
As far as a "javascript equivalent" in WAP... no idea there, good
luck :)
- Tyler
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---