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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.