You can mimic the same sort of display functionality of an iframe with a div (i.e. fixed width, scrolling on overflow), however you can’t just load a remote page into a div like you can with an iframe. But you could use <embed> in some situations, however it must be an object, not just a remote page.
umm that doesn’t really help all too much. it’s not an object. it’s a php file. if you got to this url you’ll see what the file is. it contains 2 smaller versions of youtube videos with buttons attached to them for voting.
hmm. so the only way i’d be able to do this is by turning this whole thing into an object, and use embed or something of the sort?
The reason I ask is because i’m extremely un-experienced with Object Orientated Programming (OOP) and doing so will be extremely difficult. i’m pulling data from mysql.
The script itself is pretty small. but at the same time the iframe is calling box.php?idx=112 - where idx is the variable of the item in the db. so even making it an object i’d sill have to find a way to allow that to be dynamic allowing me not to have to create 2000 pages and a new one each time something is added into the db.
I’m not asking anybody to make this into an OOP file, though that would be nice, i can’t expect it to be done through a forum. i’m just wanting to know if anybody knows any good methods or an easy way to do this while remembering that i know absolutely nothing off OOP. never done it.
In this context when I say “object” I am not referring to classes created through Object Oriented Programming. I mean an object in its original sense - i.e. a video or flash file or something else that you can embed in a page. Using OOP won’t solve your problem - a webpage is a webpage is a webpage, no matter if it’s written through OOP or procedural or whatever.
Do you know any flash? That would be a simple way to solve this.
I don’t really know flash all too well at all. I’ve played with it for probably a grand total of 3 hours. so no, not really. How would i be able to use flash for it though, i’m always up for learning new things and flash is on my List To Learn (yes i actually have one). Would i just have to turn the entire thing into a video playing image of some sort?.. wow. i just confused myself with that one.
I can’t help you with flash, I’m sorry - don’t know any of it myself. However, although I am not familiar with AJAX either, it seems like this might be a situation that it could solve. Try looking into that.
You can embed the iframe code into a MySpace application.
You find the steps for creating a MySpace application in the MySpace developer wiki/platform.
Then you can add the application to your MySpace profile.