Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript html popup window

I am fairly a beginner with javascript. What I want to do is when I click on a button: enter image description here

I want it to popup a window. The content of this window is HTML (actually it's a .php) code. As follows: enter image description here

Then when you click next it scrolls to the next list of movies. What is the easiest javascript/jQuery library to do this?

This snippet of pitcure is taken from the website getglue. I tried to firebug the site, but can't seem to find the js code to do it.

IMPORTANT: The movie title and image is taken from a database, and therefore content is not static html. This is where I actually got confused on how to do a dynamic content generated window popup box

like image 352
aherlambang Avatar asked May 14 '26 03:05

aherlambang


1 Answers

This is a fabulous tutorial on popups with jQuery (the only way to code js)

http://yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/

A tutorial for AJAX

http://net.tutsplus.com/tutorials/javascript-ajax/5-ways-to-make-ajax-calls-with-jquery/

like image 153
ohmusama Avatar answered May 15 '26 18:05

ohmusama



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!