problem calling iframe

Author Message

somnath sonawne

Monday 22 June 2009 2:14:51 am

hi,
I am newbie
I am using ez-publish version 4.1.0
I want to use iframe in my one of the page.
I've tried putting iframe tag in .tpl file.
but it is not working.
Plz,guide me how to use iframe in pages.

Seb gaillard

Monday 22 June 2009 2:38:34 am

It's difficult to help you without viewing your source code

somnath sonawne

Monday 22 June 2009 3:36:18 am

Thanks Seb,

Just tell me how will u use iframe tag ,if u want to use it for particular page?
forget about the things i told u about tpl and all that.
Tell me u r way to implement that.

Seb gaillard

Monday 22 June 2009 5:34:46 am

Somnath,

you can use it like in a html file.

	<div class="m-top-15 clear-block">
		<iframe src='http://IFRAMEURL.COM' width='990' height='380' frameborder="0" scrolling="no"></iframe>
	</div>

 

somnath sonawne

Monday 22 June 2009 5:54:51 am

Thanks buddy,
I'll try .I'll let u know if i get some issues.

somnath sonawne

Tuesday 23 June 2009 12:31:06 am

Hi Seb,

I 've created one form using step described in the link
http://ez.no/developer/articles/how_to_create_ez_publish_forms

In the form's tpl file I inserted code given by you along with form code.
the code is as below
----------------------------------------form.tpl-------------
{* Somnath_Iframe - Full view *}
<div class="m-top-15 clear-block">
<iframe src='http://IFRAMEURL.COM' width='990' height='380' frameborder="0" scrolling="no"></iframe>
</div>
<div class="border-box">
<div class="border-tl">
<div class="border-tr">
<div class="border-tc"></div>
</div>
</div>
<div class="border-ml">
<div class="border-mr">
<div class="border-mc float-break">
<div class="content-view-full">
<div class="class-Somnath_Iframe">
<div class="attribute-header">
<h1>{$node.name|wash()}</h1>
</div>
{* validation *}

{include name=Validation uri='design:content/collectedinfo_validation.tpl'

class='message-warning'

validation=$validation collection_attributes=$collection_attributes}
<form method="post" action={"content/action"|ezurl}>
{* Given Name *}
<h4>{$node.data_map.given_name.contentclass_attribute.name}</h4>
<div class="attribute-given-name"> {attribute_view_gui attribute=$node.data_map.form_name} </div>
{* Form buttons - Processing *}
<div class="content-action">
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="border-bl">
<div class="border-br">
<div class="border-bc"></div>
</div>
</div>
</div>
---------------code ends-----------------------

but it is showing only form at the site.
Please,tell is there anything missing from my side or
Is there any alternatine way to create control like iframe.

Thank You
Somnath

Seb gaillard

Tuesday 23 June 2009 12:40:20 am

Somnath,

You can't see your ifrrame because the src attribute value (in my exemple IFRAMEURL.COM) is an url that not correspond to a website.
If you want a correct exemple, try this one

<iframe src='http://www.nba.com' width='990' height='380' frameborder="0" scrolling="no"></iframe>

and for more information: http://www.w3schools.com/TAGS/tag_iframe.asp

somnath sonawne

Tuesday 23 June 2009 1:55:45 am

Hi Seb,

You are correct ,but I took the view source of same page
I haven't found any Iframe tag there .
And even after changing URL also.

Please give me alternate way.

Thanks

Seb gaillard

Tuesday 23 June 2009 1:58:12 am

Is it possible to have an online exemple?

somnath sonawne

Tuesday 23 June 2009 2:01:27 am

hi Seb

Do have yahoo id so v can chat and discuss the issue.

Seb gaillard

Tuesday 23 June 2009 2:09:15 am

No,

and I think it's better to discus here for helping the community

somnath sonawne

Tuesday 23 June 2009 2:29:59 am

No problem Seb,

It is not possible to have an online example because it is in initial stage.

Seb gaillard

Tuesday 23 June 2009 3:31:35 am

You are saying that the iframe tag does not appear on the "view source" of the html page ?
Are you sure that you have realised the good override of your object ?
Try to put the iframe in the page layout to be sure that the iframe is called.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.