ezjscore how to call the run function from javascript

Author Message

Torstein Viddal

Friday 08 October 2010 1:15:46 am

Hi. I have sucessfully created my own ezjscore ajax functions using call /<my-class>::<myfunciton>.

My problem is that i would like to be able to use the run/content/view/full/nodeid part from javascript, but i am not sure how i would do this. i use jquery $.ez('mycalling'),'',function(data){ /*handleincoming data*/ }

Could someone help me out with the syntax so i can use the run function from ezjscore, or if that is not possible, allow me to return the content/view/full template.

If possible i would prefer not creating my own function to do this as it works when running ezjscore/run/content/view/full

André R.

Friday 08 October 2010 7:53:51 am

Something like

jQuery.get(jQuery.ez.url + 'run/content/view/full/'+ nodeId, function(data){} );

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 30 2025 00:54:33
Script start
Timing: Jan 30 2025 00:54:33
Module start 'layout'
Timing: Jan 30 2025 00:54:33
Module start 'content'
Timing: Jan 30 2025 00:54:34
Module end 'content'
Timing: Jan 30 2025 00:54:34
Script end

Main resources:

Total runtime0.9191 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 588.3750151.2422
Module start 'layout' 0.01040.0051 739.617236.7031
Module start 'content' 0.01560.9026 776.3203467.2500
Module end 'content' 0.91820.0009 1,243.57037.8125
Script end 0.9191  1,251.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00630.6870160.0004
Check MTime0.00260.2812160.0002
Mysql Total
Database connection0.00190.210910.0019
Mysqli_queries0.833390.6591540.0154
Looping result0.00060.0611520.0000
Template Total0.834490.820.4172
Template load0.00290.315220.0014
Template processing0.831590.464420.4157
Template load and register function0.00020.020210.0002
states
state_id_array0.00410.449910.0041
state_identifier_array0.00360.396920.0018
Override
Cache load0.00230.2494110.0002
Sytem overhead
Fetch class attribute can translate value0.00060.061120.0003
Fetch class attribute name0.00140.152430.0005
XML
Image XML parsing0.00440.482120.0022
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.02572.7989170.0015
String conversion0.00000.001040.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs