Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

What is the best way to open a a fragement of code in a new window

$
0
0
I am a newbie to CanJS. Currently, I need to open a window which contains one fragment of the codes.
I am using

window.open('fragment.html', '_blank', 'toolbar=yes, scrollbar=no, frame=true, resizable=yes, top=200, left=500, width=700, height=600');

What I did is that I created another html file and load all the libraries I need into the html file and insert my fragment into the html using

$('#fragment').html(template({}));
            can.route.ready();

Is there other way to implement this, like using can.route.url ??

Thanks,

CS

Viewing all articles
Browse latest Browse all 3491

Trending Articles