Html within wikidot type 2

Html within wikidot type 2

By Phil ChettPhil Chett on 1218322582|%e %b %Y|agohover, last edit by gerdamigerdami on 1234960534|%e %b %Y, %H:%M|agohover

Best way of demonstrating is by example. :-)
Note the url addy in the iframe. it has after it /code/n
where "n" is the number of the code block to look at.

++ first code block
[[iframe http://community.wikidot.com/blog:html-within-wikidot-type-2/code/1 frameborder="0" scrolling="no" width="100%" height="300"]]
++ second code block
[[iframe http://community.wikidot.com/blog:html-within-wikidot-type-2/code/2 frameborder="0" scrolling="no" width="100%" height="300"]]
++ third code block
[[iframe http://community.wikidot.com/blog:html-within-wikidot-type-2/code/3 frameborder="1" scrolling="no" width="100%" height="300"]]

The code must be between

[[code type="html"]]
insert the code here
[[/code]]

Mention the lowercase of the "html" ! Uppercase "should" work too ( soon) …

first code block

Notes.

Save the page

So you have added the html code between the code block and added an iframe.
If you preview it it may say in the iframe box, page does not exist! or similar error
You MUST save the page.
It may still say page does not exist! or similar error
DON'T PANIC!!!
its because its all stored wrong in your browser cache.
Clear it! i have found this to be the most frustrating thing in getting this to work. Every change you make to the edit box, clear your cache on refreshing.
better still close the browser, with options set to clear cache on closing, and then fire it up again!

Hide the code

You can hide the code block with the comments tags:

[!--
[[code type="html"]]
.
.
[[/code]]
--]

or use the collapsible method.

second code block

third code block

This one (at the moment) does not work in ie7

I have included it to demonstrate one of the limitations of including html in wikidot.
Because the code is magically shifted else where, and isn't actually on YOUR page, its shifted to a magical place called wdfiles.
Only trouble is, there is not direct communication between wdfiles and YOUR page.
to demonstrate this below is a social org gizmo.(not viewable in IE7 If you click it, and have a look at one the the social thingies that you are signed up for, you will note that its is talking about linking to wdfiles and not the page that you are actually on. Or in other words. For things like this is just isn't going to work

THE CODE BLOCKS

these can be anywhere on a page. i have just clumped them here for clarity.

1st code block

<html>
<head>
<title>This text appears in the browsers title bar</title>
</head>
<body>
 
<div 
align="center"> <marquee bgcolor="#000080" scrollamount="2" 
direction="up" loop="true" width="60%"> <center> 
<font color="#ffffff" size="+1"><strong> 
WIKIDOT ROCKS<br> Demonstration of including html<br> <br> 
via iframe using code block </strong></font> </center> </marquee></div>
 
</body>
</html>

2nd code block

<html>
<head>
<title>This text appears in the browsers title bar</title>
</head>
<body>
 
<div 
align="center"> <marquee bgcolor="#000080" scrollamount="2" 
direction="up" loop="true" width="60%"> <center> 
<font color="#ffffff" size="+1"><strong> 
Demo Two
<br>
this is the second
<br> <br> 
code block on this page
</strong></font> </center> </marquee></div>
 
</body>
</html>

3rd code block

<html>
<body>
<!-- SocialList.org BEGIN -->
<script type="text/javascript">
sociallist_url = location.href;
sociallist_title = document.title;
sociallist_text = '';
sociallist_tags = '';
</script><script type="text/javascript" src="http://www.sociallist.org/widget.js?type=1&cols=3&rows=5&button_dx=160&button_dy=24&lang=en"></script>
<noscript>
<a href="http://www.sociallist.org/submit.php?type=1&lang=en&url=refpage&title=refpage&tag=refpage&text=refpage" target="_blank" title="Bookmark this Website"><img src="http://www.sociallist.org/buttons/en160x24.gif" border="0" width="160" height="24" alt="Bookmark" /></a>
</noscript>
<!-- SocialList.org END -->
 
</body>
</html>

Tags: html iframe javascript

Related Community Blog Posts

The following posts have similar tags and may be related to this post.

New iframe Embed Snippet embed iframe wikidot
Iframe Link javascript link scheme uri url
Page Count count javascript listpages pages

Rate it up ?

rating: +1+x

Discuss

3. Code Block works ONLY on my FF 2 ( XP)
Helmuti_pdorfHelmuti_pdorf 1218352451|%e %b %Y, %H:%M %Z|agohover

Sorry, but the 3. Code Block with the social bookmarks works only on my FF2 and not in IE7!

In IE / I see nothing ( and nothing is here… .. not sure if this is my security switch or something like these options…


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold 3. Code Block works ONLY on my FF 2 ( XP) by Helmuti_pdorfHelmuti_pdorf, 1218352451|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Phil ChettPhil Chett 1218357312|%e %b %Y, %H:%M %Z|agohover

Oh F&^%!!!!
yep your right.
BUT i ma not going to try and fix it, because i dont know how to! :-)
i will edit the doc to mention this.

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Phil ChettPhil Chett, 1218357312|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Georges42Georges42 1224212594|%e %b %Y, %H:%M %Z|agohover

It doesn't work in my wikidot. I made Marquees in blogger and there, all is OK. In our forum too.

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Georges42Georges42, 1224212594|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Helmuti_pdorfHelmuti_pdorf 1224226508|%e %b %Y, %H:%M %Z|agohover

Sorry, Georges, I do not understand "where" the problem is - what does not work where?


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Helmuti_pdorfHelmuti_pdorf, 1224226508|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Georges42Georges42 1226842250|%e %b %Y, %H:%M %Z|agohover

It doesn't work at http://georges42.wikidot.com/marquee
Sure you'll give me the solution. ;)

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Georges42Georges42, 1226842250|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
gerdamigerdami 1226843062|%e %b %Y, %H:%M %Z|agohover

Georges42,
You just omitted to iframe your block with

[[iframe http://georges42.wikidot.com/marquee/code/1 frameborder="0"  width="100%" height="400px"]]
unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by gerdamigerdami, 1226843062|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Georges42Georges42 1226844441|%e %b %Y, %H:%M %Z|agohover

I tried it… Yes, it works for some marquee. But I look for mine ;)
I am from Namur and working in Guatemala from 1968. French is ok :D

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Georges42Georges42, 1226844441|%e %b %Y, %H:%M %Z|agohover
Re: 3. Code Block works ONLY on my FF 2 ( XP)
Helmuti_pdorfHelmuti_pdorf 1226847026|%e %b %Y, %H:%M %Z|agohover

Hi Georges!
Your Page source for revision no. 6 looks very good…

+ Marquee.
[[iframe http://georges42.wikidot.com/marquee/code/1 frameborder="0"  width="100%" height="400px"]]

[[embed]]
<div>
<MARQUEE SCROLLDELAY="30" SCROLLAMOUNT="2" BGCOLOR="#0000FF" WIDTH="418" HEIGHT="50" >Happy to see you here... </MARQUEE>
</div>
[[/embed]]

[[embed]]
<MARQUEE
width="50%"
BGCOLOR=yellow
DIRECTION=right
BEHAVIOR=ALTERNATE
>
testing testing 1...2...3.... 
</marquee>

[[/embed]]

[[iframe http://georges42.wikidot.com/marquee/code/1 frameborder="0"  width="100%" height="400px"]]
<html>
<head>
<title>This text appears in the browsers title bar</title>
</head>
<body>
 <div align="center"> <marquee bgcolor="#000080" scrollamount="2" 
direction="up" loop="true" width="60%"> <center> 
<font color="#ffffff" size="+1"><strong> 
WIKIDOT ROCKS<br> Demonstration of including html<br> <br> 
via iframe using code block </strong></font> </center> </marquee></div>
</body>
</html>

Wat you need is the <html> - </html> block INSIDE a [[code type="HTML"]] block!
And the marquee- cpdings inside the <body> - block

[[code type="HTML"]]
<html>


</html>
[[/code]]

I would change the page source to following:

[[iframe http://georges42.wikidot.com/marquee/code/1 frameborder="0" width="100%" height="400px"]

[[code type="HTML"]]

<html>
<head>
<title>This text appears in the browsers title bar</title>
</head>
<body>
<div align="center"> 
<MARQUEE SCROLLDELAY="30" SCROLLAMOUNT="2" BGCOLOR="#0000FF" WIDTH="418" HEIGHT="50" >Happy to see you here... </MARQUEE>
</div>
</body>
</html>

[[/code]]

And if you want to hide the copde block itself - put it on another page called "marquee-codes" to split the code from the iframed usage - or hide the code behind a little collapsible block..


Service is my success. My webtips:www.blender.org, www.zusi.de (Demo-Video)

Wollen Sie Wikidot helfen im deutschen » Handbuch ?

unfold Re: 3. Code Block works ONLY on my FF 2 ( XP) by Helmuti_pdorfHelmuti_pdorf, 1226847026|%e %b %Y, %H:%M %Z|agohover
ScorpiusScorpius 1247687723|%e %b %Y, %H:%M %Z|agohover

I am trying to add a simple HTML Amazon link to my page and am having quite a bit of trouble. I wasn't intending to have an imbeded page, just some code. Can someone take a look and see if I am missing something simple?

http://runelords.wikidot.com/the-books

unfold by ScorpiusScorpius, 1247687723|%e %b %Y, %H:%M %Z|agohover
Re:
graphmasturgraphmastur 1247689052|%e %b %Y, %H:%M %Z|agohover

add this line after that:

[[iframe http://runelords.wikidot.com/the-books/code/1]]

The problem is that [[code]] tags only displays it. You also might want to put this above the first code line:

[[div style="display : none"]]

and this under the end of the [[/code]] line:
[[/div]]

You might have to clear your browser cache.


"But sanctify the Lord God in your hearts, and always be ready to give a defense to everyone who asks you a reason for the hope that is in you, with meekness and fear;" ~ 1 Peter 3:16

unfold Re: by graphmasturgraphmastur, 1247689052|%e %b %Y, %H:%M %Z|agohover
Re: Amazon AStore
RobElliottRobElliott 1247691503|%e %b %Y, %H:%M %Z|agohover

Scorpius, I too have an Amazon Associates account and the wiki syntax on your page seems to be correct. You have the right closing tags for the div etc (although I would use comment tags [!-- --] rather than divs to hide the code) and it's not an issue of clearing the cache on this occasion.. But which part of Amazon Associates are you getting the code from? Because for me the code is very different and looks like this:

[!--
[[code type="html"]]
<html>

<body>

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_352f51b2-a56d-45cf-b19f-e324d0a3ede0"  WIDTH="300px" HEIGHT="250px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fstrathvconsul-21%2F8003%2F352f51b2-a56d-45cf-b19f-e324d0a3ede0&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fstrathvconsul-21%2F8003%2F352f51b2-a56d-45cf-b19f-e324d0a3ede0&Operation=GetDisplayTemplate" id="Player_352f51b2-a56d-45cf-b19f-e324d0a3ede0" quality="high" bgcolor="#ffffff" name="Player_352f51b2-a56d-45cf-b19f-e324d0a3ede0" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="250px" width="300px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fstrathvconsul-21%2F8003%2F352f51b2-a56d-45cf-b19f-e324d0a3ede0&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT>

</body>
</html>
[[/code]]
--]

which when put inside an iframe:

[[iframe http://strathviewconsultants.wikidot.com/support:amazon/code/1 frameborder="0" width="100%" height="300px"]]

gives:

My code and your code are both on my page at http://strathviewconsultants.wikidot.com/support:amazon so if you are able to provide any more info about which Amazon Associates page that code came from I'm sure we can gert it working for you.

Rob


ad5.png
last edited on 1247691879|%e %b %Y, %H:%M %Z|agohover by RobElliott + show more
unfold Re: Amazon AStore by RobElliottRobElliott, 1247691503|%e %b %Y, %H:%M %Z|agohover
Re:
ScorpiusScorpius 1247691863|%e %b %Y, %H:%M %Z|agohover

I edited the page several time since posting this because I didnt know how long it would take to get responses. I must say I am surprised at such fast and helpful responses.

The code from Amazon is

<a href="http://www.amazon.com/gp/product/0812541626?ie=UTF8&tag=runelo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0812541626"><img border="0" src="51WFJT1CH9L._SL160_.jpg"></a><img src="http://www.assoc-amazon.com/e/ir?t=runelo-20&l=as2&o=1&a=0812541626" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

I got it by creating a link, via the associate bar, from this page http://www.amazon.com/gp/product/0812541626?ie=UTF8&tag=runelo-20&link_code=as3&camp=211189&creative=373489&creativeASIN=0812541626.

I selected image only, large image.

unfold Re: by ScorpiusScorpius, 1247691863|%e %b %Y, %H:%M %Z|agohover
Re:
RobElliottRobElliott 1247692423|%e %b %Y, %H:%M %Z|agohover

The code I gave you above was the widget. For the store the code it gives me is:

<iframe src="http://astore.amazon.co.uk/strathvconsul-21" width="90%" height="4000" frameborder="0" scrolling="no"></iframe>
[[/code

This needs to be conveted to wikidot-speak which looks like this:

[[code]]
[[iframe http://astore.amazon.co.uk/strathvconsul-21 width="90%" height="800" frameborder="0" scrolling="yes"]]

and the result is this:

I will ,look at your code and the link and report back shortly.

Rob


ad5.png
last edited on 1247726800|%e %b %Y, %H:%M %Z|agohover by RobElliott + show more
unfold Re: by RobElliottRobElliott, 1247692423|%e %b %Y, %H:%M %Z|agohover
Re:
RobElliottRobElliott 1247692927|%e %b %Y, %H:%M %Z|agohover

Well if that was only page you wanted to display you could do a straight iframe:

[[iframe http://www.amazon.com/gp/product/0812541626?ie=UTF8&tag=runelo-20&link_code=as3&camp=211189&creative=373489&creativeASIN=0812541626 frameboder="0" scrolling="yes" width="800" height="600"]]

which would give you:

I'm still trying to find where that code came from you provided!

Rob


ad5.png
last edited on 1247726845|%e %b %Y, %H:%M %Z|agohover by RobElliott + show more
unfold Re: by RobElliottRobElliott, 1247692927|%e %b %Y, %H:%M %Z|agohover
ScorpiusScorpius 1247693354|%e %b %Y, %H:%M %Z|agohover

If you go to that page while logged into Amazon as an associate, you'll have a grey bar at the top of the page. You're 2nd option, if on default settings, is link to this page.

unfold by ScorpiusScorpius, 1247693354|%e %b %Y, %H:%M %Z|agohover
Re:
RobElliottRobElliott 1247694365|%e %b %Y, %H:%M %Z|agohover

OK I'm with you now (I was being a numpty as usual). Back shortly after some testing.

Rob


ad5.png
unfold Re: by RobElliottRobElliott, 1247694365|%e %b %Y, %H:%M %Z|agohover
Re:
RobElliottRobElliott 1247696588|%e %b %Y, %H:%M %Z|agohover

Linking to the page is no problem as you just need to adjust the code and put it in an iframe as follows:

[[iframe http://www.amazon.com/gp/product/0765341077?ie=UTF8&tag=runelo-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0765341077 width="100%" height="600" frameborder="0" scrolling="no"]]

which gives:

Does this give you what you want? If you want to show just the image that is more of a problem and I haven't yet done that successfully.

Rob


ad5.png
last edited on 1247726882|%e %b %Y, %H:%M %Z|agohover by RobElliott + show more
unfold Re: by RobElliottRobElliott, 1247696588|%e %b %Y, %H:%M %Z|agohover
Html Issue
VitesVites 1250963055|%e %b %Y, %H:%M %Z|agohover

I wish it were possible I add a cool html doc on my page. [Business Ideas]

I really need it, and since the e.g so far do not work on the browsers with the most of my visitors, I still need help. please I need your help?

unfold Html Issue by VitesVites, 1250963055|%e %b %Y, %H:%M %Z|agohover
Re: Html Issue
RobElliottRobElliott 1250963580|%e %b %Y, %H:%M %Z|agohover

Please provide a bit more information, you've not said what it is you are trying to put on your page.

Rob


ad5.png
unfold Re: Html Issue by RobElliottRobElliott, 1250963580|%e %b %Y, %H:%M %Z|agohover
Add a new comment

Share

Bookmark and Share

Community Blog feed-icon-14x14.png

Posts by date

Posts by tags

Posts by rating

Community CSS Overhaul
Rating: 9 (1257951261|%e %b %Y|agohover)

Google acquires Wikidot
Rating: 8 (1238566398|%e %b %Y|agohover)

Community Crime
Rating: 5 (1248535428|%e %b %Y|agohover)


Blogroll

Gabrys:
Nowa Strona -- Nowy Temat
1260472158|%e %b %Y at %H:%M |agohover

Squark:
Stare, acz prawdziwe...
1260541667|%e %b %Y at %H:%M |agohover

MyWikidot.local:
Draggable Slideshow
1258772476|%e %b %Y at %H:%M |agohover


Admin dashboard

Page tags: html iframe javascript
page_revision: 18, last_edited: 1234960534|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.