View Full Version : Huge problem with Iframes...Plz HELP!
Lattman
05-02-2006, 10:21 PM
Hi Everyone,
I just realized after finalizing my web site that I have a huge problem...As you can see, once you select a product on the left side of the home page, the items and the first page gets mixed/overwritten...(Web site is www.global-uniforms.com) , basically I'd like to know if there a function that deletes the target page before posting the source page on it...Hope I was able to express myself...
Thx for all your help...
Lat
djr33
05-02-2006, 10:58 PM
Well... looks like you've got it going just fine.
Make a new value for displaying that original stuff (cook/waiter), like you would setup a link to it.
But instead of using a link to go to it, use javascript in the body tag to load it:
<body onLoad="jsfunction">
Not sure... 'cause you need to go to an address.
But... maybe... document.frame.location? *I think*...
Lattman
05-02-2006, 11:26 PM
hmmm..I'm not too familiar with Java so I don't really understand what todo..
Bascially I need to erase the cook/chef when loading products that are selected on the right, as is, the cook/chef are part of the background, thus all sources for the target frame overwrite the chef\cook and everything gets mixed up!
djr33
05-03-2006, 05:34 AM
javascript... not java. different things entirely :)
Not to insult you, but that code is absolutely horrendous. What possible reason do you have for such insanely complex code?
It looks like you're using VML (IE only from what I understand) then, for like 40% of your visitors, using an alternate layout for them, all based in some language I'm not familiar with... ifs... html doesn't have ifs that I am aware of.
Anyway... DROP THE VML!.... not doing you any good. It's insane... not only is it complex and fairly messy, but the html code is translated into ampersand characters so that, I guess, it can be stored then displayed later. Weird.
It's so hard to read that... wow.
It took me about 5 minutes to find the iframe tag and get a basic understanding of how the page worked... heh.
Seriously, redesign the page using SIMPLE html and tables, and you'll be SO much better off. Really. Just trying to help... that VML isn't doing you anything, and is actually confusing the problem at hand.
As for your iframe,
<iframe name="FRAME1" width="500" height="570" frameborder="0" scrolling="no" allowautotransparency=true></iframe>
There's no src= bit in there. add <iframe ... src="defaultpictures.htm"> for the two pictures that load at the beginning.
Dump ALL the random junk that is displaying the pictures now... it's making it messy... those aren't even in the iframe from what I can tell, but rather, somehow, displayed on the page.. I guess since transparency is enabled, you are showing through to the page behind it, causing, yes, overlapping (surprise, heh) with these images when something IS in the iframe.
So... add the src=.
Then take out the extra code for the pictures.
Then, that src=url will be replaced with whatever you click as a link with a target of that frame. It WILL override it, just like the links right now override each other, just not the code at the start.
Also, probly take OFF allowtransparncy="true" 'cause that's why you have a layered effect.
Really... is there any reason for the vml?
Lattman
05-03-2006, 02:45 PM
Thx for taking the time to answer my questions...Yet I just used Microsoft Publisher to create the web site, so blame Bill Gates for making such a terrible program...lol, I'm just a newbie and found Publisher to be very user friendly..
Lattman
05-03-2006, 05:12 PM
Hey DJR33, took your advice on what was in my capacity of understanding. I've got the homepage working at least for IE, thx for your help!!! Was well apreciated..
Well, that's one major browser down... four more to go? :p
djr33
05-04-2006, 01:12 AM
Well... your answer... don't use a microsoft program EVER to make a webpage.
MICROSOFT publisher (like )
MIRCOSOFT internet explorer
they hate competition, and, yes, I do blame them... so don't use them :)
Glad it's working.
Just... really.. that code is so complex unneccesarily... just use tables and images and you're done... that code is crazy. If you didn't purposefully put VML (virtual markup language, IE only), then you ABSOLUTELY don't want that.
Look into dreamweaver.
Look into (free) netscape composer (not great, but free and it works)
or something else (I think twey has a favorite... can't remember the link)
And, as you get into this, start getting into the code... it's worth it in the end :)
Use WYSIWYG as a boost, but not as a crutch. :)
sleipner
05-04-2006, 05:43 AM
nvu is semi decent f/oss, and its a wysiwyg also, link is nvu.com (http://www.nvu.com), heck, it'll even work in linux
djr33
05-04-2006, 07:32 AM
Free too... probably worth checking out. Sure :)
nvu is semi decent f/oss, and its a wysiwyg also, link is nvu.comIt is better than FrontPage, at least, but remember it's still a WYSIWYG editor, meaning your site is liable to end up as valid DIV soup.
heck, it'll even work in linux"even?"
sleipner
05-04-2006, 02:41 PM
"even?"
you gotta acknowledge that most apps arent made for linux or mac, even quite a few open source projects on sourceforge dont do linux
Most development programs have a Linux version or clone. For those very few that don't, we have WINE (http://www.winehq.org/). :)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.