Problems with changing contents of a page

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???

On 1 June 2012 11:50, rocky [email protected] 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

Hi

Please format your question properly.

On Fri, Jun 1, 2012 at 4:20 PM, rocky [email protected] wrote:

“Ruby on Rails: Talk” 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-talk?hl=en.

  • Aziz M. Bookwala

Website http://azizmb.in/ | Twitter https://twitter.com/azizbookwala |
Github http://github.com/azizmb

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???

Can you post the code you are using?

On 3 June 2012 05:29, rocky [email protected] wrote:

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???

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