Advertisement
saasbook

ajax_js1.js

Aug 15th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. RP = {
  2. setup: function() {
  3. // when click on any <a> within element id="movies":
  4. $('#movies a').click(RP.getMovieInfo);
  5. // add invisible 'div' to end of page for popup window:
  6. $('<div id="movieInfo"></div>').
  7. hide().
  8. appendTo($('body'));
  9. },
  10. getMovieInfo: function() {
  11. // code to be filled in later
  12. return(false); // prevent default link action
  13. },
  14. }
  15. $(RP.setup);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement