PDA

View Full Version : dynamic src iframe?



pitviper
Apr 22nd, 2009, 04:38 PM
How can I make the src of my iframe dependent on data from previous/next buttons.

I got the previous and next buttons searching a list on my server, but when you click previous or next, the entire main browser (along with the prev and next buttons) goes to the designated url. I want the result of the button to appear in the iframe, not the main browser.

like a browser in a browser I guess.

Any tips? Thanks in advance!

Apostropartheid
Apr 22nd, 2009, 05:36 PM
Look into the target attribute.

pitviper
Apr 22nd, 2009, 06:51 PM
Seconds before i checked this post I just did that, and now i feel stupid! I had the target "_top" and I didn't name my frame!

something that simple, I was thinking I had to create some kind of form to submit the data to the frame . . .:rolleyes:

Thanks for the reply (and your tolerance) I am not even 5 months a coder! :D

Here's the result:
http://www.individualism.asia/Pages/Webring.html



BTW: "grammar Nazi" LOL! :D