Contenu connexe
Similaire à Merb jQuery (20)
Merb jQuery
- 4. <form action=quot;/usersquot; class=quot;new_userquot;
id=quot;new_userquot; method=quot;postquot; onsubmit=quot;new
Ajax.Request('/users', {asynchronous:true,
evalScripts:true,
parameters:Form.serialize(this)}); return
false;quot;><div style=quot;margin:0;padding:
0quot;><input name=quot;authenticity_tokenquot;
type=quot;hiddenquot;
inline JS
value=quot;dcab4e1ab6a78f1f618b97008246df33340
75ca9quot; /></div>
<input id=quot;user_usernamequot;
name=quot;user[username]quot; size=quot;30quot;
type=quot;textquot; />
</form>
- 6. <center>
<font face=quot;Arialquot;>Hello</font>
</center>
we stopped
doing this
- 15. Difficulty quick... cancel
the launch
Time in Project
- 19. learn JS or
hire someone who
Difficulty knows JS
Time in Project
- 41. def link_to_remote(text, url, options = {})
if options.key?(:update)
options[:rel] = options.delete(:update)
end
options[:class] = options[:class].to_s.
split(quot; quot;).push(quot;remotequot;).join(quot; quot;)
link_to(text, url, options)
end
- 45. class Speakers < Application
provides :json
def index
@speakers = Speaker.all
display @speakers
end
end
- 46. class Speakers < Application
provides :json
def index
@speakers = Speaker.all
display @speakers
end
end
- 49. class Speakers < Application
provides :json
def index
@speakers = Speaker.all
display @speakers
end
end @speakers.to_json
- 53. try {
new Insertion.Bottom(quot;listquot;, quot;<li>Fox</
li>quot;);
} catch (e) {
alert('RJS error:nn' + e.toString());
alert('new Insertion.Bottom(quot;listquot;,
quot;<li>Fox</li>quot;);');
throw e
}