阅读背景:

Ruby on Rails - 使javascript函数与ajax一起工作

来源:互联网 

I have been trying to figure something out for a while and am not sure the best way to go about my current problem. First I will let you know what I am trying to do. A user enters text into a text box and then are brought to the next page where their input is split up into words and each word is turned into a link (the link will be a search but that does not matter at the moment). The thing is that I want this to work with ajax. Now I have the page with the textbox successfully using ajax to go to the "show" page, but I cannot find the best practice online for getting my javascript that splits up the words to be executed alongside the ajax render call for "show". Here is my current code.I have been trying to figure something out for




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: