Hi Pierre,

There is a way that is 7.x - 11.x compatible, but it has its drawback, as 
you will see in a bit.

When switching from SmartEdit to SmartTree, CMS will load the last 
requested CMS page.  When you load a page in CMS, first the page loads, 
then due to <STYLE> or <SCRIPT> reference tags, those pages then are 
requested.  Hence, will switching to SmartTree, you get jumped to those 
pages instead.

Also, we stopped using &script=1 since version 9.x and started using 
container or media placeholder because the resulting implementation is 10x 
better and works in multiple browsers in SmartEdit.

Anyways, here is the code using JavaScript without using container or media 
placeholder.

<IoRangeRedDotMode>
<script type="text/javascript">
 $( document ).ready(function() {
  $.get('<%inf_page_url%>', function(){});
 });
</script>
</IoRangeRedDotMode>

Basically, in SmartEdit only, on page finished load, using AJAX to request 
current page again, ensure current page is the last requested page.  The 
drawback is obvious, currently page is requested twice in SmartEdit.

Best regards,

-Jian
On Wednesday, December 11, 2013 4:50:47 PM UTC-5, Tim D wrote:

> Another work around publishing CSS & JS to file system can actually bump 
> your page load significantly (dramatically cuts concurrent requests) and 
> address this.
>
> On Wednesday, December 11, 2013 6:54:24 AM UTC-5, Pierre Kruppik wrote:
>>
>> Hi,
>>
>> in version 10 we added "&script=1" behind anchors for js files. The 
>> result was that you jump to the last opened page when switching from 
>> SmartEdit to SmartTree, instead to the js files. In version 11 this no 
>> longer works. Are there any other workarounds (except using containers or 
>> media elements)?
>>
>> Regards,
>> Pierre
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/reddot-cms-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to