Forums / Developer / problem calling iframe

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.

eZ debug

Timing: Jan 31 2025 00:22:06
Script start
Timing: Jan 31 2025 00:22:06
Module start 'content'
Timing: Jan 31 2025 00:22:06
Module end 'content'
Timing: Jan 31 2025 00:22:06
Script end

Main resources:

Total runtime0.1931 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.9063370.3047
Module start 'content' 0.00820.0140 958.21091,013.5000
Module end 'content' 0.02220.1709 1,971.71093,901.9141
Script end 0.1930  5,873.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00502.5933200.0003
Check MTime0.00140.7505200.0001
Mysql Total
Database connection0.00090.450610.0009
Mysqli_queries0.097650.52761410.0007
Looping result0.00120.61861390.0000
Template Total0.170488.310.1704
Template load0.00090.443310.0009
Template processing0.169687.814310.1696
Override
Cache load0.00060.288010.0006
Sytem overhead
Fetch class attribute can translate value0.00211.069410.0021
XML
Image XML parsing0.00030.149210.0003
General
dbfile0.00773.9721200.0004
String conversion0.00000.003530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs