YUI3_config not defined

Author Message

Mischa Markus

Wednesday 20 January 2010 3:15:32 am

heya, I get this style error in IE...

I am using ez4.2 with ezwebin, tried to override the ezjscore folder with ezjscore-1.0.1-2 and tried to use

{ezscript_require( 'ezjsc::yui3' )}
<script type="text/javascript">
{literal}
YUI( YUI3_config ).use('node', 'io-ez', function( Y )
{
 Y.on( "contentready", function( e )
 {
 // Parameters can be sent as post data ('arg1=hi!') or as 
 // call parameter (eg: "ezjscdemo::search::hello" )
 // Use post for string values to not end up reaching url path limit..
 Y.io.ez( 'ezjscdemo::search', {
 data: 'arg1=hi!',
 on: {success: function( id,r )
 { 
 if ( r.responseJSON.error_text )
 Y.get( '#hello-world-id' ).setContent(
 r.responseJSON.error_text
 );
 else
 Y.get( '#hello-world-id' ).setContent(
 r.responseJSON.content
 );
 }
 }
 });
 }, '#hello-world-id' );
});
{/literal}
</script>

without my scipts but without success, YUI( YUI3_config ) produced always this error in IE... thanks for help!

------------------------------

if I use this, I get "object expected"

<script type="text/javascript">
{literal}
var YUILoader = new YAHOO.util.YUILoader({
loadOptional: true,
combine: true
});
{/literal}
</script>
<script type="text/javascript" src={"lib/yui/3.0/build/yui/yui-min.js"|ezdesign}></script>
<script type="text/javascript">
{literal}
var YUI3_config = { modules: {} };
{/literal}
</script>

Laurent Dorier

Thursday 28 January 2010 5:08:54 am

Check this issue:

http://issues.ez.no/IssueView.php?Id=15729

It solved the problem for me. ;)

Mischa Markus

Wednesday 03 February 2010 7:06:39 am

yeah, if ( window.YUI !== undefined ) YUI( YUI3_config ) do it...

so simple... thanks =)

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 29 2025 23:51:32
Script start
Timing: Jan 29 2025 23:51:32
Module start 'layout'
Timing: Jan 29 2025 23:51:32
Module start 'content'
Timing: Jan 29 2025 23:51:33
Module end 'content'
Timing: Jan 29 2025 23:51:33
Script end

Main resources:

Total runtime1.0935 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1250151.2109
Module start 'layout' 0.00490.0020 739.335936.6484
Module start 'content' 0.00691.0857 775.9844439.2344
Module end 'content' 1.09260.0009 1,215.21887.8594
Script end 1.0934  1,223.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2802160.0002
Check MTime0.00130.1197160.0001
Mysql Total
Database connection0.00090.078810.0009
Mysqli_queries1.059796.9092570.0186
Looping result0.00040.0362550.0000
Template Total1.061597.120.5307
Template load0.00230.214320.0012
Template processing1.059196.860520.5296
Template load and register function0.00020.016610.0002
states
state_id_array0.00130.118610.0013
state_identifier_array0.00200.185320.0010
Override
Cache load0.00190.1722170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.054920.0003
Fetch class attribute name0.00070.067930.0002
XML
Image XML parsing0.00020.021120.0001
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00200.1855100.0002
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs