Thursday, November 29th, 2007
Nintendo relaunches with Dojo, Mootools, and more
<p>Nintendo.com has relaunched, and a view source shows you that it now sports Dojo, Mootools, and much more script.As you hunt around for where you will see fun stuff in action you will find the game guide:
Take a peak and you see how they use inline templating.
-
-
<textarea id="box_template" name="box_template" style="display:none;">
-
{for g in list}
-
{if g.renderOK == "yes"}
-
{if (g.system) == "Wii"}
-
<div class="gameHolder wii_back" id="_!{g.id}" onmouseout="clearTimeout(noa.command.games.calloutTimer);" onmouseover="noa.command.games.throttleCallout(this)" style="display:none;">
-
<a href="/games/detail/!{g.id}" onclick="try{mojo.Messaging.publish('/games/guide/gameChosen')}catch(e){}">
-
<img class="boxart_image_wii" id="_i_!{g.id}" onerror="this.src='/images/games/guide/wiibox.png';" src="!{g.small_box_art.url}" />
-
</a>
-
<p class="boxText">
-
<a class="boxTitle" href="/games/detail/!{g.id}" onclick="try{mojo.Messaging.publish('/games/guide/gameChosen')}catch(e){}">!{g.short_title}</a>
-
</p>
-
<p class="boxText boxDate">!{g.release_date}</p>
-
</div>
-
{/if}
-
{if (g.system) == "DS"}
-
<div class="gameHolder ds_back" id="_!{g.id}" onmouseover="noa.command.games.throttleCallout(this)" style="display:none;">
-
<a href="/games/detail/!{g.id}" onclick="try{mojo.Messaging.publish('/games/guide/gameChosen')}catch(e){}">
-
<img class="boxart_image_ds" id="_i_!{g.id}" onerror="this.src='/images/games/guide/dsbox.png';" src="!{g.small_box_art.url}" />
-
</a>
-
<p class="boxText">
-
<a class="boxTitle" href="/games/detail/!{g.id}" onclick="try{mojo.Messaging.publish('/games/guide/gameChosen')}catch(e){}">!{g.short_title}</a>
-
</p>
-
<p class="boxText boxDate">!{g.release_date}</p>
-
</div>
-
{/if}
-
{/if}
-
{/for}
-
</textarea>
-
Related Content:












That looks *very* sweet! Too bad IE 6 does not return any games here in the game browser…
no offense but the loading time also speaks its own when going to that url.
i mean, slow, really slow.
I’m not getting anything back from it in FF2 either.
Mhmm, turn jasvascript off and you will see: … nothing.
Which library provides inline templating capability?
Interesting references to “mojo” in the source code.
Works fine in Opera. not in IE & FF – thats a first !!
I think they’re having launch-day jitters.. It worked in IE and FF for me this evening.
Works in FF2 for me now but they should add for those with JS turned off.
short comment so I can plug something in my comment and my signature. try not to miss it
IE6 + CompanionJS —
Error: 'dojo' is not defined (line 1)Dojo seems to choke on a console.debug that CompanionJS doesn’t like. Why are there console messages on a production site?
I reloaded once and it worked. Then it didn’t work on next reload. ??
.
FF 2.0.0.10: “No Games Found” Ever.
Safari on Windows: Same. Fail.
Opera 9.02: Same. Epic Fail.
.
If it ran on Opera, that would make sense for all those browsing with a Wii. Looks like more than “launch day jitters.”
.
@Les: Inline templating can be done with jQuery using jTemplates. Can’t speak for other libraries, however…