PDA

View Full Version : [Q] What's my alternative for IFRAME???


CyanBlue
10-14-2004, 01:34 AM
Howdy... :)

I am pretty much dume with the HTML... :(

I know I can call a script in IFRAME in my HTML page in mydomain.com like this...
<body>
blah blah
blah
blah blah

<IFRAME src="http://www.differentdomain.com/script.php"></IFRAME>

whatever whatever
whatever
</body>
Let's just say that the script.php on that differentdomain.com basically echos EMBED tag with Flash object...

Is there an alternative way of doing the same thing as I do with the IFRAME???

splict
10-14-2004, 02:51 AM
What are you trying to do? dynamically attach a flash object with javascrpt? to add a flash object without refreshing the page?

CyanBlue
10-14-2004, 03:49 AM
Basically what I want to do is to provide a Flash movie which can display some weather information so that an ordinary users(Tom, for example) can copy that HTML tag to display that Flash object in their own website...

So, in other words, blah blah and whatever whatever are Tom's site content and the Flash movie that is displayed by the script.php will be displayed in Tom's site from my company page... Know what I mean???

A mockup screen might looking like this... (will be deleted soon...)
http://www.flashvacuum.com/~cyanblue/AWS/WeatherSticker/testWS.html

There things the Flash content comes in from my company site which is being displayed in my domain...

splict
10-14-2004, 04:04 AM
Ooops - I guess the forum name HTML and JavaScript got me a bit confused. :o Anyways, are you saying that you just want to have them add html to their site that displays a movie from your domain? Why can't they just copy and paste the actual object/embed tags? Hotlinking should work fine unless the server is setup to not allow it. If thats the case then can your IT guys change it so that hotlinking just that file is allowed? Or am I missing the question again?

CyanBlue
10-15-2004, 12:17 AM
Hey... :)
Been busy at work... We've got to do something by tomorrow afternoon and I am nowhere near that line... :(

Okay... I think you are asking me to give the user the EMBED tag so that they can embed the Flash movie that's sitting on our end, right???
I cannot do that because there is FlashVars that's providing the dynamic data to the Flash movie so that it can be displayed within the Flash movie...

In other words, I need to pass the zipcode from the user's location to my server's script to query the database to generate that FlashVars parameters...

Any idea???

splict
10-15-2004, 01:57 AM
Well, I'll keep brainstorming, but, if they are just using html then I can't really think of another way to do it (without javascript). It seems like the best thing to do would be to have the flash movie call the php script to load the values from the database. But, if that is not an option, then I think the iframe may be your best bet. Is there something specifically wrong with using an iframe or did you just want to see if there was something better?

Gibberish
10-15-2004, 06:33 PM
My experience with this is either use an iFrame of a div tag.