Re: [Rails] problems with changing contents of a page

15 views
Skip to first unread message
Message has been deleted

azizmb.in

unread,
Jun 1, 2012, 7:17:09 AM6/1/12
to rubyonra...@googlegroups.com
Hi

Please format your question properly.

On Fri, Jun 1, 2012 at 4:20 PM, rocky <ashar...@gmail.com> wrote:
i have created a web page localhost:3000/subjects in rails and a
button is there.....if i click the button then only the content inside
the html changes....the whole page will not refresh...like if sample
button is there in the same page and when i clicked it it list of the
subjects but i am in same localhost:3000/subjects and i am using
jquery function to do this....can this be possible???if yes then how
will i do...if not then xplain why not???

--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.




--
- Aziz M. Bookwala

Colin Law

unread,
Jun 1, 2012, 12:53:02 PM6/1/12
to rubyonra...@googlegroups.com
On 1 June 2012 11:50, rocky <ashar...@gmail.com> wrote:
> i have created a web page localhost:3000/subjects in rails and a
> button is there.....if i click the button then only the content inside
> the html changes....the whole page will not refresh...like if sample
> button is there in the same page and when i clicked it it list of the
> subjects but i am in same localhost:3000/subjects and i am using
> jquery function to do this....can this be possible???if yes then how
> will i do...if not then xplain why not???

Look in development.log to see what it says is happening when you
click the button. Also see the Rails Guide on debugging for
techniques that can be used to debug your code.

Colin

dasibre

unread,
Jun 2, 2012, 11:17:07 PM6/2/12
to Ruby on Rails: Talk
Can you post the code you are using?
> Website <http://azizmb.in/> | Twitter <https://twitter.com/azizbookwala> |
> Github <http://github.com/azizmb>

rocky

unread,
Jun 3, 2012, 12:29:19 AM6/3/12
to rubyonra...@googlegroups.com
simply i want to use jquery in my rails apps so that the whole page will not refresh only the content part inside my page get changes...what is the solution for this and where i will have to use this...and any sample code for this???

Colin Law

unread,
Jun 3, 2012, 3:36:06 AM6/3/12
to rubyonra...@googlegroups.com
This shows the reason that one should ask a question clearly, using
complete sentences. Your initial post with a number of random phrases
interspersed with dots gave the exact opposite impression, that your
code currently refreshed only part of the page and that was what you
were trying to avoid.

Google for
rails 3 ajax jquery
and you will get multiple hits that should get you going.

Colin
Reply all
Reply to author
Forward
0 new messages