HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Iframe

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#21162 (In Topic #5107)
Avatar

Honoured member

silly me...

See next message... this one was phubar.... :s

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21163
Avatar

Honoured member

eehh somethign gone wrong with my message…. I'll check it…


Code i wish to use:

Code

[html]
<iframe name="tsviewer" allowtransparency="true" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=10692&bg=transparent&type=&type_size=11&type_family=1" width="" height="" frameborder="0" style="width: px; height: px; border:0px solid #268ED9;"></iframe>
[/html[

When using this code i get a error:

Code

Standards validation errors

XHTML: An unknown attribute ('align') was found in the tag <h1>. at line 2, character 19

XHTML: An unknown attribute ('size') was found in the tag <hr>. at line 3, character 28

XHTML: An invalid entity was employed or '&' was used instead of '&amp;'. at line 6, character 246

XHTML: An unknown attribute ('allowtransparency') was found in the tag <iframe>. at line 6, character 246

XHTML: An unknown attribute ('width') was found in the tag <iframe>. at line 6, character 246

XHTML: The value ('') of an attribute ('height') does not match the attribute requirements (((0)|((-?[0-9]+)(|in|cm|mm|ex|pt|pc|px|em|%))|(((-?[0-9]+))?\.(-?[0-9]+)(in|cm|mm|ex|em|%)))). at line 6, character 246

XHTML: A required attribute ('title') for the tag <iframe> is missing. at line 6, character 246

XHTML: Use of the 'name' attribute as a document-wide (as opposed to form-wide) identifier is deprecated; it is needed for compatibility, but an identical 'id' attribute is required to go with it. at line 6, character 246

XHTML-strict: There is an empty tag. Certain tags must contain something. at line 6, character 255
Code
1     <h1 align="center">TSviewer</h1>
XHTML: An unknown attribute ('align') was found in the tag <h1>.
2     <hr width="100%" size="2" />
XHTML: An unknown attribute ('size') was found in the tag <hr>.
3     
4     <br /><br />
5     <iframe name="tsviewer" allowtransparency="true" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=10692&bg=transparent&type=&type_size=11&type_family=1" width="" height="" frameborder="0" style="width: px; height: px; border:0px solid #268ED9;"></iframe>
XHTML: An invalid entity was employed or '&' was used instead of '&amp;'.
XHTML: An unknown attribute ('allowtransparency') was found in the tag <iframe>.
XHTML: An unknown attribute ('width') was found in the tag <iframe>.
XHTML: The value ('') of an attribute ('height') does not match the attribute requirements (((0)|((-?[0-9]+)(|in|cm|mm|ex|pt|pc|px|em|%))|(((-?[0-9]+))?\.(-?[0-9]+)(in|cm|mm|ex|em|%)))).
XHTML: A required attribute ('title') for the tag <iframe> is missing.
XHTML: Use of the 'name' attribute as a document-wide (as opposed to form-wide) identifier is deprecated; it is needed for compatibility, but an identical 'id' attribute is required to go with it.
XHTML-strict: There is an empty tag. Certain tags must contain something.

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21167
Avatar

The errors ocPortal is given out are authentic - these are real XHTML validation problems.
XHTML is very strict compared to HTML, and most of the problems you're seeing are due to 'deprecated' HTML attributes.

If you wish to disable the errors you can do so. I'm not sure if you're bringing them from a preview (in which case you can choose to not validate whilst you preview), or from viewing an actual page (in which case you can disable the ocPortal validator in your settings).
Disabling the errors is 'safe', as the browser still understands these attributes even if they aren't really meant to be used anymore.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21170
Avatar

Honoured member

This came from previewing the page i was creating.. have to see offcourse if its the way i want..

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21190
Avatar

If you want to bypass the warnings, click "No Validation" above the "Preview" button.

Back to the top
 
Posted
Rating:
#21226
Avatar

Honoured member

Roger that… Friggin warnings scared the hell outta me… I thought page wouldnt work.. But it did work so no problems with the warnings anymore… *pffew*

Now looking for a way to create a list that people can fill in and send to me.. No need for help atm, im going to look through the guides first.. If im stuck i'll create  anew topic.

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21227
Avatar

Honoured member

hmm still have this question, i want this page inside a comcode page: http://www.teamgfr.com/bf2stats/

Can i do that with a Iframe, or is there another trick?

If needed i can send the files to you with all the code in it.. ( i'll just remove the images out of the dir to make it smaller. )

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21231
Avatar

I guess a warning in your line of work tends to mean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).

We have a tutorial covering this kind of thing.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21232
Avatar

Honoured member

Chris Graham said

I guess a warning in your line of work tends to mean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).

We have a tutorial covering this kind of thing.

Uhm, yes most of the time it does mean run for cover.. :thumbs:

And that tut is exactly what i was looking for, i have it open in 1 of my tabs… Must have like 12 tabs open atm..

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21235
Avatar

Honoured member

if i use thos code i get scrollbars around the page, its like real small…

Code

[semihtml]<h1 align="center">GFR Scoreboard</h1><hr width="100%" size="2" />

[center]<iframe frameborder="0" style="border: 0px solid rgb(38, 142, 217);" src="http://www.teamgfr.com/bf2stats/index.php" name="bf2stats" />
[/center][/semihtml]

Page location: http://teamgfr.com/sit/site/index.php?page=bf2stats

How coudl i get rid of the scroll bars? I'd like it to have it fully on the page.. My html / php / webcoding sucks… I think that when i see the answer that i need the "slaps forhead button" again…..

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21237
Avatar

Honoured member

hmmm now looking into that javascript that is shown inthe tutorial

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21240
Avatar

Take a look at BLOCK_SIDE_SHOUTBOX_IFRAME.tpl:

Code

{+START,BOX,{!SHOUTBOX},13.3em,panel}
   <iframe title="{!SHOUTBOX}" id="shoutbox" name="shoutbox" frameborder="0" marginwidth="0" marginheight="0" class="shoutbox_iframe" scrolling="no" src="{$FIND_SCRIPT,shoutbox}?room_id={ROOM_ID*}&amp;{$KEEP*}">{!SHOUTBOX}</iframe>
   <script type="text/javascript">// <![CDATA[
      setInterval('resizeFrame(\'shoutbox\')',5000);
   //]]></script>
{+END}

The two main components of that file that matter:
  • A named iframe
  • Some Javascript that tells ocPortal to resize the frame (by name) according to it's height (resizeFrame is an ocPortal Javascript function that does this).
The setInterval bit tells Javascript to keep resizing every 5 seconds, so if something within the frame causes it to change size, it will get picked up upon automatically.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21241
Avatar

Honoured member

yay, i found it out, now i only need to look what causes the 404 error..

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21242
Avatar

Honoured member

ahum, i just notcied your post, lol. Thanks for that Chris.

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21243
Avatar

Honoured member

Im lost… cant find out why it doesnt load the page…

Code

[html]
<script type="text/javascript">
<!--
function resizeEmbeddedFrame()
{
   var frame=document.getElementById('bf2stats');
   if ((frame) && (top.frames['bf2stats'].document.body))
   {
      if (top.frames['bf2stats'].document.body.offsetHeight+'px'!=frame.style.height)
      {
         frame.style.height=top.frames['bf2stats'].document.body.offsetHeight+'px';
         frame.scrolling='no';
      }
   } else clearInterval(tid);
}
// -->
</script>

<iframe title="<GFR Scoreboard>" frameborder="0" marginwidth="0" marginheight="0" name="bf2stats" id="bf2stats" src="<http://www.teamgfr.com/bf2stats/index.php>" style="width: 100%; height: 900px;"><GFR Scoreboard></iframe>

<script type="text/javascript">
<!--
   var tid=window.setInterval('resizeEmbeddedFrame()',500);
// -->
</script>
[/html]

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
Posted
Rating:
#21244
Avatar

Why are you surrounding some of your HTML attributes with '<' and '>'? Oh, I think perhaps because I wrote so in the tutorial - that's not what I really meant. When '<whatever>' is written down, it means that you need to substitute something for the whole of '<whatever>': the angled brackets aren't HTML, they are just indicators that a substitution should be happening.

Remove those symbols around your attributes, especially the URL, and you should be ok.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21245
Avatar

Honoured member

need… that…. button….

thanks, i should be more carefull reading the tuts.. I think it even says it in them…

It worked, thanks again.. I just removed the brackets around the url and that did the trick


Last edit: by Leon

:D  Dont shoot the messenger!!  :D

How many of you believe in telekinesis? Raise my hand.

Chris Graham said

I guess a warning in your line of work tends tomean 'run for cover'. Fortunately it's not so severe when it comes to computers ;).
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: