HTML nugget with iframe

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

HTML nugget with iframe

Post by deurk »

Hello everyone,

I have a trouble with an iframe from radio.blog that I try to have in a HTML nugget. It kinda works (as seenable at http://test.nizoux.com on the bottom right) but it has 2 troubles:

- I HAVE TO put it at the end of the plugins list or the next lpugins won't be displayed
- When going to the previous articles page, the nugget actually displays a part of the Archives page instead of the radio.blog thingie.


HELP :D
(My daughter is counting on you :P)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: HTML nugget with iframe

Post by garvinhicking »

Hi!

Into your 'src' of the <iframe> tag you must put an absolute URL! Like http://yourblog/radio.blog/index.php! Otherwise it thinks it is a relative link, and thinks you link to

http://test.nizoux.com/archives/radio.blog/index.php

!

HTH and best regards to your daughter :)

Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

I'll try that right away! :D
Will it correct the fact that it HAS to be the last plugin?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I hope this will fix the problem of it being the last plugin, but I can't really tell. Maybe you could set it to the top and show me the page again, then I could have a look at it?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Ok works for the change of page, but not for the plugin position. It still has to be the last plugin otherwise further plugins won't display.
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Just saw your answer, putting it to top.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

<iframe .. /> is not supported by most browsers. Try to use <iframe ...></iframe> instead! That should then properly be displayed!

If you look in your HTML sourcecode you'll see that all the other plugins are there; just your browser stalls at parsing the <iframe> tag.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Hmmm... I think I got it working but not sure why what I did did the trick:

In the iframe src, instead of an relative url (radio.blog/...) or an complete absolute url (http://test.nizoux.com/radio.blog/...), I tried the small absolute version (/radio.blog/...) and it worked.

Maybe you can guess why it worked :)
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Weird thing is that I actually copy/pasted <iframe></iframe> but some other plugin like XHTML must have changed it :)

Here is what I got that works:

Code: Select all

<iframe width="220" scrolling="no" height="320" frameborder="0" name="radio" src="/radio.blog/index.php">&lt;/body&gt;
&lt;/html&gt;&lt;/HTML&gt;</iframe>
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Weird though... I don't have any XHTML plugin except the Browser compatibility. Could it be it?

And that code pasted above seems WEIRD with the </body></html>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Are you posting that iframe code with the WYSIWYG editor? That one could mess up with your code. No other XHTML markup plugin or so would transform the <iframe> links...?!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Hmmm yeah. I should then disable the WYSIWIG and paste it eh?
deurk
Regular
Posts: 40
Joined: Wed Jun 21, 2006 5:36 pm

Post by deurk »

Forgot to say that of course it worked perfectly :P
Post Reply