So, frames are considered bad?

  • uknightuss
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Sep 15, 2004
  • Posts: 198
  • Loc: Los Angeles
  • Status: Offline

Post October 4th, 2004, 10:56 pm

Wow! I got a lot of responses with this question :D


Well it looks like I'm going to be doing a lot of CSS cramming in the very near future.. From all that I've read on the web and all the replies posted here, I would say it seems like the most logical choice.

I appreciate all the feedback from everyone and links to references that were given. If anyone else has good links on CSS that they could share, that would be super cool!

Maybe after I have figured some things out in CSS I can re-do my personal website. (which is incomplete anyways..)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 4th, 2004, 10:56 pm

  • ctompkins
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 29, 2004
  • Posts: 32
  • Status: Offline

Post October 5th, 2004, 7:34 am

"The problem is too few people understand them enough to do a very good design with them."


This is probably the most intelligent thing I've heard about IFrames on the net (THE WHOLE NET). It's the root of the problem put into proper words! IFrames aren't bad. They only appear to be bad when used improperly. Oh, and that's a good use of IFrames with Flash by the way, good idea.
  • rottenberry
  • Newbie
  • Newbie
  • User avatar
  • Joined: Sep 02, 2004
  • Posts: 12
  • Status: Offline

Post October 5th, 2004, 9:52 am

how does css replace the use of frames?
  • Digitelle
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jul 25, 2004
  • Posts: 122
  • Loc: BRKLYN-NY
  • Status: Offline

Post October 8th, 2004, 12:25 pm

joebert wrote:
I've found iframes usefull lately for file uploads with Flash, it beats wondering about popup blockers & allows me to keep the interface feel rather than that of a normal submit the whole page upload.


Jobert, could you elaborate on this a bit, I have always simply embedded flash into my html files with a <embed src=""></embed> tag but I am very interested in understanding how iframes could help me serve flash better. (just got me a new jobby job)
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post October 8th, 2004, 9:42 pm

Best example I can give right now is part of a current project.
The end result of this project is to provide an online storage & interface to stash/manage everything from ringtones to Java applications for mobile phones, the example comes from the PC side of the project.
While I can cover every aspect of management from a single Flash interface I ran into the problem of keeping client session state without wasting bandwidth to resend all of the details of a users filespace. (queried & loaded via XML on initial load of the movie) when uploading new files.

I could use a new window to get the same results this gives but creating an iframe dynamically with the src set to my upload form makes for a friendlier interface.

The CSS,
Code: [ Select ]
body{background:URL("imgs/lineBG.gif"); margin:0px;}
div#upload{position:absolute; top:60px; left:50%; width:340px; height:490px; visibility:hidden;}
td#left{background:URL("imgs/lineEdgeL.gif"); height:100%; width:20px;}
td#right{background:URL("imgs/lineEdgeR.gif"); height:100%; width:20px;}
  1. body{background:URL("imgs/lineBG.gif"); margin:0px;}
  2. div#upload{position:absolute; top:60px; left:50%; width:340px; height:490px; visibility:hidden;}
  3. td#left{background:URL("imgs/lineEdgeL.gif"); height:100%; width:20px;}
  4. td#right{background:URL("imgs/lineEdgeR.gif"); height:100%; width:20px;}


The Javascript, (Flashs IE VBscript hook excluded)
Code: [ Select ]
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function default_DoFSCommand(command, args) {
 var defaultObj = document.getElementById("default");
 if(command == "showUpload"){
    //var myArgs = args.split("|");
    document.getElementById("upload").innerHTML = "<iframe id='uploadFrame' frameborder='0' style='width:100%; height:100%;' src='uploadForm.cfm?sid="+args+"'></iframe>";
    document.getElementById("upload").style.visibility = "visible";
 }else if(command == "hideUpload"){
    document.getElementById("upload").innerHTML = "";
    document.getElementById("upload").style.visibility = "hidden";
 }
  1. var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
  2. // Handle all the the FSCommand messages in a Flash movie
  3. function default_DoFSCommand(command, args) {
  4.  var defaultObj = document.getElementById("default");
  5.  if(command == "showUpload"){
  6.     //var myArgs = args.split("|");
  7.     document.getElementById("upload").innerHTML = "<iframe id='uploadFrame' frameborder='0' style='width:100%; height:100%;' src='uploadForm.cfm?sid="+args+"'></iframe>";
  8.     document.getElementById("upload").style.visibility = "visible";
  9.  }else if(command == "hideUpload"){
  10.     document.getElementById("upload").innerHTML = "";
  11.     document.getElementById("upload").style.visibility = "hidden";
  12.  }


The HTML,
Code: [ Select ]
<div align="center">
    <table cellspacing="0" cellpadding="0"><tr>
    <td id="left"></td>
    <td id="flash">
        <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ID="default" WIDTH="700" HEIGHT="600" ALIGN="">
            <PARAM NAME=movie VALUE="default.swf">
            <PARAM NAME=menu VALUE=false>
            <PARAM NAME=quality VALUE=best>
            <PARAM NAME=wmode VALUE=opaque>
            <PARAM NAME=devicefont VALUE=true>
            <PARAM NAME=bgcolor VALUE=#FFFFFF>
            <EMBED src="default.swf" menu=false quality=best wmode=opaque devicefont=true bgcolor=#FFFFFF WIDTH="700" HEIGHT="600" swLiveConnect=true ID="default" NAME="default" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
        </OBJECT>
    </td>
    <td id="right"></td>
    </tr></table>
</div>
<div id="upload"></div>
  1. <div align="center">
  2.     <table cellspacing="0" cellpadding="0"><tr>
  3.     <td id="left"></td>
  4.     <td id="flash">
  5.         <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ID="default" WIDTH="700" HEIGHT="600" ALIGN="">
  6.             <PARAM NAME=movie VALUE="default.swf">
  7.             <PARAM NAME=menu VALUE=false>
  8.             <PARAM NAME=quality VALUE=best>
  9.             <PARAM NAME=wmode VALUE=opaque>
  10.             <PARAM NAME=devicefont VALUE=true>
  11.             <PARAM NAME=bgcolor VALUE=#FFFFFF>
  12.             <EMBED src="default.swf" menu=false quality=best wmode=opaque devicefont=true bgcolor=#FFFFFF WIDTH="700" HEIGHT="600" swLiveConnect=true ID="default" NAME="default" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
  13.         </OBJECT>
  14.     </td>
  15.     <td id="right"></td>
  16.     </tr></table>
  17. </div>
  18. <div id="upload"></div>


Notice the "opaque" state of the swf & the emptiness of the div tag that will contain the iframe ?
My iframe has no border, it will hover above the centered swf positioned absolute at top:60px; left:50%; which will allow me to blend it in with the flash interface rather than open a new window.

If flash "fscommand" will be used from buttons to trigger javascript that writes the iframe to the page, when the iframes form is submitted the server saves the files, adds them to the database but instead of having flash reload the entire updated details later, the form submit also writes theese new details to a temporary area of that persons database entry & sends back the upload form with confirmation details on it this time.

When the user is done uploading files they press a gallery button which will trigger flash to load only the new details set aside in the database earlier (then delete them from the db) & append them to the existing details in Flash.
In this particular project watching filesize & other such restrictions between uploads wasn't needed, it's not like you need anything more than the confirmation page between uploads anyway..

Now if only everyone had Flash enabled phones, my life would be sooo much easier :lol:

(no I can't show a link to this yet.)
Strong with this one, the sudo is.
  • Digitelle
  • Graduate
  • Graduate
  • User avatar
  • Joined: Jul 25, 2004
  • Posts: 122
  • Loc: BRKLYN-NY
  • Status: Offline

Post October 9th, 2004, 4:55 pm

thanks, you are riding the crest of this technology wave I see. i will have to return to this post at a later date, when I am working on this flash site and see if I can use any of your methods

thanks again

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 67 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.