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.

eZ debug

Timing: Jan 18 2025 16:08:35
Script start
Timing: Jan 18 2025 16:08:35
Module start 'layout'
Timing: Jan 18 2025 16:08:35
Module start 'content'
Timing: Jan 18 2025 16:08:36
Module end 'content'
Timing: Jan 18 2025 16:08:36
Script end

Main resources:

Total runtime0.7850 sec
Peak memory usage4,096.0000 KB
Database Queries87

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0109 587.9063152.6250
Module start 'layout' 0.01090.0052 740.531339.4297
Module start 'content' 0.01600.7672 779.9609593.5156
Module end 'content' 0.78320.0017 1,373.476620.1875
Script end 0.7849  1,393.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4516160.0002
Check MTime0.00140.1800160.0001
Mysql Total
Database connection0.00110.135210.0011
Mysqli_queries0.696688.7449870.0080
Looping result0.00090.1163850.0000
Template Total0.747895.320.3739
Template load0.00220.275420.0011
Template processing0.745694.990920.3728
Template load and register function0.00010.018310.0001
states
state_id_array0.00130.170310.0013
state_identifier_array0.00120.147920.0006
Override
Cache load0.00200.26061140.0000
Sytem overhead
Fetch class attribute can translate value0.00090.119520.0005
Fetch class attribute name0.00200.2592130.0002
XML
Image XML parsing0.00030.033920.0001
class_abstraction
Instantiating content class attribute0.00000.0035130.0000
General
dbfile0.00070.0873100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
22content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 49
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs