TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,165
  • Total Topics: 21,346
  • Online today: 678
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 308
  • Total: 308

Iframe Automatic resizing

Started by Rocket, November 12, 2005, 01:06:53 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

aptd

This is the only thing in the HTML

<!-- ServerSpy.Net Flashy Monitor #ID 209757 | START -->
<script language="JavaScript" type="text/JavaScript" src="http://share1.serverspy.net/bin/smonV2loader.mpl?mid=209757"></script>
<!-- ServerSpy.Net Flashy Monitor #ID 209757 | END -->



Guess I should have just made it an actual HTML page.  But it showed up in the WYSIWYG editor of the articles.

_D

stigmartyr

That script looks fine.  Do this:  we want to turn csserver.html into its own webpage.  So copy that script to notepad then delete the html.


Make a new page with the same exact name.  Then, insert a table with no borders so its invisible.  Click inside, make it center aligned.  Then type: XXX in it.


Go to HTML view, find the 'XXX' highlight it and 'replace' it with the copied script in your note pad.  Save it to your fourms root folder and then you can start playing with it.

aptd

Ok well, in the article editor WYSIWYG viewer, you can see more of the whole thing...the whole top portion..., but you cant see the rest.

As far as th epublic viewing it, still no joy.  Doesn't work.

I changed the HTML to this.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><script language="JavaScript" type="text/JavaScript" src="http://share1.serverspy.net/bin/smonV2loader.mpl?mid=209757"></script></td>
  </tr>
</table>
</body>
</html>


Going to try it non-dynamically real quick.

_D

Rocket

The script you refer to as "lag-tastic" is actually a very useful and fast script.  Contrary to the way it was explained, the script will adjust for content.  This is useful for a list of users for example that changes over time.  You would not have to go back and adjust the sizing, neither would you have scroll bars.

I have used this successfully on about 3 TP/SMF sites now it works beautifully.  I would venture to say that it is FAN-tastic... :)

Rocket

aptd... this is your problem..

Turn off WYSIWYG, THEN paste your code in your article.

Sorry, didn't see it the first time.

aptd

Yes Rocket, I agree...sorry for jacking the thread, I didn;t know that the content I was trying to load was the problem instead of the script you rposted.  I love dynamc stuff, believe me, i'm a major flash junkie...but sorry for jacking the thread.

Anyways...I ended up just using the stand iframe call, with a tabled HTML file.  Changed the background color of that HTML to the background color of the forum and it works now.

Thanks a bunch stigmartyr.

http://www.dsull.com/smf/index.php

If you click on servers...then there you go.

Now I know how to put in all that stuff thanks to you both of you guys.  And I can size it myself or just make it dynamic.  

Hope this actually help ssomeone else.

_D

aptd

Quote from: Rocket on April 06, 2006, 01:34:43 AM
aptd... this is your problem..

Turn off WYSIWYG, THEN paste your code in your article.

Sorry, didn't see it the first time.

I will try this as well. Ill make it server test 2..

heh

Thanks

_D

aptd

WOW  ;D


Both of your guy's suggestions and solutions work!

Bravo!


Although the latter was quite a bit easier...

Thanks to both of you!

_D

Rocket

cool, glad you found something that works for you.

stigmartyr

#39
Awesome.  Hey Rocket, I didnt have time to look at the site while I was working, but I am generally wary of obvious auto-gens.  It sounds like by ur description that it would be useful if it doesnt cause the page to jerk around as you navigate the frame.  Ill have to look into it more, thanks.

This website is proudly hosted on Crocweb Cloud Website Hosting.