Forums / Setup & design / iframe in highslide

iframe in highslide

Author Message

Catherine Mollet

Thursday 25 March 2010 11:50:33 am

Hi,

I would like to put an iframe in a highslide. I think I'm very near to find the solution, but the frame still doesn't pop-up. Let me explain what I did.

First, I went to http://highslide.com/editor/ to have a nice configuration of what I wanted. I dowloaded it to my computer, and in pure html, everything is fine.

In extension/my_extention/design/my_design/javascript, I copied highslide-with-html.js and highslide.config.js. In extension/my_extention/design/my_design/stylesheets, I copied highslide.css and the folder named gaphics with all graphic element for HighSlide.

In extension/my_extention/design/my_design/override/embed, I created external_page.tpl with

{* External page (iframe) - Embed view *}
{section name=JavaScript}    
<script language="JavaScript" type="text/javascript" 
src={concat( 'javascript/highslide-with-html.js')|ezdesign}></script>
<script language="JavaScript" type="text/javascript" 
src={concat( 'javascript/highslide.config.js')|ezdesign}></script>
{/section}
<div class="content-view-embed">
<h2>{$object.data_map.title.content|wash}</h2>
<p>
<a href="{$object.data_map.url.content}" 
{literal}onclick="return hs.htmlExpand(this, 
{ objectType: 'iframe', width: '800' } ){/literal}">
Iframe</a><span> 
</span></p>        
</div>

(of course, no line return inside the js, that's just for presentation here)

Content of highslide.config.js is (exept language strings, not very intersting here)

hs.graphicsDir = '/extension/my_extention/design/my_design/stylesheets/graphics/';
hs.showCredits = false;
hs.creditsPosition = 'bottom left';
hs.outlineType = 'custom';
hs.registerOverlay({html: '<div class="closebutton" onclick="return hs.close(this)" 
title="Fermer"></div>', position: 'top right', useOnHtml: true, 
fade: 2 // fading the semi-transparent overlay looks bad in IE});

Update of the css list, update fo the override.ini, creation of a new class in the backend, insertion of a new object with this class on a test page, everything looks great.

Testing the page, code seems OK :

<div class="content-view-embed">
<h2>Google</h2>
<script language="JavaScript" type="text/javascript" 
src="/my_site/extension/my_extension/design/my_design/javascript/highslide-with-html.js">
</script>
<script language="JavaScript" type="text/javascript" 
src="/my_site/extension/my_extension/design/my_design/javascript/highslide.config.js">
</script>
<p><a href="http://www.google.com" onclick="return hs.htmlExpand(this, 
{ objectType: 'iframe', width: '800' } )">Iframe</a></p>
</div>

But when I'm clicking on the link, only "Loading" is showing, the highslide doesn't pop up. All files are loaded, js and css, and checking with Firebug, it seems that something is getting wrong and that table initialization is freezed somewhere.

Look at the normal condition here : http://img691.imageshack.us/img691/3397/normalcondition.png

Look at what I'm getting in eZ : http://img689.imageshack.us/img689/296/withez.png

Does someone ever tried to put html highslide in eZ ? Does anyone have an idea of what is going on and where I'm mistaking ?

Thank you in advance.

eZ debug

Timing: Jan 18 2025 02:03:40
Script start
Timing: Jan 18 2025 02:03:40
Module start 'content'
Timing: Jan 18 2025 02:03:41
Module end 'content'
Timing: Jan 18 2025 02:03:41
Script end

Main resources:

Total runtime1.3564 sec
Peak memory usage4,096.0000 KB
Database Queries184

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.6875180.8438
Module start 'content' 0.00741.2091 768.5313425.5547
Module end 'content' 1.21650.1399 1,194.0859333.8125
Script end 1.3564  1,527.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3114210.0002
Check MTime0.00160.1196210.0001
Mysql Total
Database connection0.00110.078610.0011
Mysqli_queries1.285694.77971840.0070
Looping result0.00180.12981820.0000
Template Total1.324297.620.6621
Template load0.00220.162320.0011
Template processing1.322097.460720.6610
Template load and register function0.00010.010510.0001
states
state_id_array0.00120.086510.0012
state_identifier_array0.00140.102520.0007
Override
Cache load0.00180.1316230.0001
Sytem overhead
Fetch class attribute can translate value0.00110.081720.0006
Fetch class attribute name0.00060.040810.0006
XML
Image XML parsing0.00040.027320.0002
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00670.4920210.0003
String conversion0.00000.000430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs