[TYPO3-50-general] Javascript in plugin template load double time
Piseth Sok
piseth at web-essentials.asia
Mon Feb 18 10:32:03 CET 2013
Hi Christian,
It is plugin. and the javascript load two times.
Here is the template:
<f:layout name="default" />
<f:section name="Title"></f:section>
<f:section name="Content">
<div id="map_canvas_big_map"></div>
<div id="map_option">
<div class="map_status">
<ul>
<f:for each="{statuses}" as="status">
<li>{status.name}</li>
</f:for>
</ul>
</div>
<div class="map_region" style="width:200px; height: 180px; overflow:
auto;padding-left: 10px;">
<ul>
<f:for each="{regions}" as="region">
<li><a class="region" href="#"
rel="{region.identifier}">{region.name}</a></li>
</f:for>
</ul>
</div>
</div>
<div class="map_zoom_control">
<span class="map_zoom_in"></span>
<span class="map_zoom_out"></span>
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
console.log('test');
});
</script>
</f:section>
Best,
Piseth
On 02/18/2013 02:37 PM, Christian Müller wrote:
> Hi Piseth,
>
> it is in a Plugin? Not in an HTML Content element. We know of a problem
> with JavaScript inside HTML content that is executed (again) when the
> editor loads but not for plugins. Can you share the plugin template?
>
> Cheers,
> Christian
>
> On 15.02.13 04:08, Piseth Sok wrote:
>> Hi List,
>>
>> I have met one problem javascript load double time when we use
>> javascript within the template file of our plugin.
>>
>> Any ideas?
>>
>> Thnaks,
>> Piseth
>
>
More information about the TYPO3-project-5_0-general
mailing list