Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   Tech Help (http://zelaron.com/forum/forumdisplay.php?f=329)
-   -   [html/possible other] <iframe> help... (http://zelaron.com/forum/showthread.php?t=45304)

Goodlookinguy 2008-04-04 06:27 PM

[html/possible other] <iframe> help...
 
Alright, here's the question...

I have a page that I've set up an <iframe> on. Now, that works and is fine and dandy, but, I need to know if there is a way to open up another page within it.

Basically, I have this, <a href="#000">1</a> <a href="#001">2</a>, now how exactly could I make clicking on number 2 anchor to page two?

<iframe id="000" name="000" width="85%" height="100px" src="page0.html"></iframe>

<iframe id="001" name="001" width="85%" height="100px" src="page1.html"></iframe>

I have a feeling it is possible, but I think it may require other scripting methods. By the way, if you know of a way to do it in php, that will work as well, or even python and perl for that matter.

WetWired 2008-04-04 11:35 PM

I believe that the name attribute on an iframe is used as the window name, so simply adding a target attribute to the link indicating the name attribute of the iframe you want to target should do the trick. That said, iframes suck.

Goodlookinguy 2008-04-05 12:05 AM

Quote:

Originally Posted by WetWired
I believe that the name attribute on an iframe is used as the window name, so simply adding a target attribute to the link indicating the name attribute of the iframe you want to target should do the trick. That said, iframes suck.

WW, that is the most sense you've ever made, iframes suck. Yes they do, I decided, not long after posting, that I was not going to use them. Too much work just for a bloody little bit, I will just make 28 pages of the same template I made. Much easier. By the way, I have successfully been a cheap rip off of phpBB3. Basically to skip any need for me to create a join script, I just use the forums script to join. Then I now have designed the site to read from the phpBB3 users, and that logs you in! Problem...I can't figure out how to simply display a name on each page if you are logged in, and if you are not, then another message. Err...I'll get around to it at some point, I think.

WetWired 2008-04-05 11:55 AM

Are you pulling from the same template for all the pages, or are there 28 copies? What problem are you having with displaying the name?

Goodlookinguy 2008-04-05 04:32 PM

Quote:

Originally Posted by WetWired
Are you pulling from the same template for all the pages, or are there 28 copies? What problem are you having with displaying the name?

Yes, I made a template, and now am just replicating it on 28 pages.

Now, I've learned to use the login from phpBB3 to log in. Issue, I haven't figured out how to display a name such as, "Welcome Goodlookinguy" "Logout," in the top right or left corners.

WetWired 2008-04-05 06:39 PM

Well how can you tell if they're logged in?

Goodlookinguy 2008-04-05 08:03 PM

Quote:

Originally Posted by WetWired
Well how can you tell if they're logged in?

I can't. I should have stated that, "I think" I've figured out how to log a person in, now I need to display the proof of this.

WetWired 2008-04-05 08:50 PM

Sounds like fun. I know for vB, you pretty much just have to include gobal.php to get access to all the good stuff.


All times are GMT -6. The time now is 10:22 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.