HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframes and Mozilla
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
skedius



Joined: 17 Sep 2005
Posts: 4
Location: http://skedsdungeon.netfirms.com

PostPosted: Sat Sep 17, 2005 2:05 pm     iframes and Mozilla Reply with quote

I am currently experimenting with different functions of iframes.

I am using a news updater, Coranto, which saves your news files in .txt form (complete with html tags within,) and it then loads them onto your main page as full html format with a simple inclusion script.

I am trying to make the updates show up in an iframe on my main page, which can be found at http://edwros.cogia.net.
This process apparently worked beautifully, as those of you with IE will notice...but I tried to show it to my friend, who uses FireFox, and he said it shows nothing but code in the frame.

I am wondering if anyone knows any special tags I would have to include for Mozilla to display it as the html it's supposed to be.

I have a workaround I can use, but it involves checking the identity of the browser, and changing the script to accomodate, and I want to avoid that if at all possible. (too confusing for me so far)

--->PS: Those who check out my site, could you at least let me know if it shows up in the frame as the list, or if it just shows up as code, because I've recently spoken to people who actually can view it on mozilla...
Thanks!
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8267
Location: Castle Rock CO USA

PostPosted: Sat Sep 17, 2005 4:09 pm     Reply with quote



On the page that your reference: http://edwros.cogia.net, I viewed it in Firefox 1.0.6 and I saw an iframe with some of this info
Quote:
17 September 2005
NOOOO -- Posted by Skedius at 1:01 AM

Not again
skedius



Joined: 17 Sep 2005
Posts: 4
Location: http://skedsdungeon.netfirms.com

PostPosted: Thu Sep 22, 2005 12:57 pm     Reply with quote

well, I've decided that the code that keeps showing up is no longer important. I've found a workaround for now. I just integrate the news.txt file that Coranto saves my updates to onto an html file by itself and save it as iframe.htm. Then I changed the source of the iframe to src="iframe.htm" It's only effective if you have a paid-for web hosting subscription that doesn't put a banner at the top of your page, though, because this banner will show up at the top of your page *and* inside the iframe.
jrdgames



Joined: 21 Sep 2005
Posts: 23

PostPosted: Thu Sep 22, 2005 3:33 pm     Reply with quote

skedius I suggest that you change to freewebtown for hosting then you wont have to worry about that and they provide 250mb of space for free and there ad free!

I used to use 100webspace until I was told about freewebtown (dont know that this was really on topic but i saw you were having trouble with the ads)
skedius



Joined: 17 Sep 2005
Posts: 4
Location: http://skedsdungeon.netfirms.com

PostPosted: Fri Sep 23, 2005 9:48 am     Reply with quote

Thanks for the tip. I'll try it out as soon as I get my web site's basic elements mapped out.
As for the previous problem, I have an update. I wanted to use iframes to create a window inside my site that had a scroll bar so you didn't have to get too far away from my menu when reading the news. I read several times that <divs> are far superior to <iframes>, but I thought, I already have iframes and know how to use them, so forget learning a new thing.

Let me tell you, I tried it with the div later, and it makes your life so much easier. I was able to enter a few lines less of coding to get it working than iframes. (which I filled back in later to make it better) And the best part is, you can make it have a scroll bar as well. Here's how:

(This goes between the <head></head> tags)
Code:
<style type="text/css">
<!--
div.divwindow {
   height: 350px;
   width: 50%;
   overflow-x: hidden;
   overflow-y: auto;
   background-color: #D3FFAA;
   padding: 8px;
   }
-->
</style>

(This goes between the <body></body> tags)
Code:

<div class="divwindow">Enter text here</div>

Where it says overflow-x: hidden, this was to remove the horizontal scroll bar, because even though I had it sized at 100%, it had about an eighth of an inch to scroll to the right. I think this is because of the padding, but for a more permanent fix, I'd rather disable the horizontal scrolling all together.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial