English 中文(简体)
using chain.js for complex templates and images?
原标题:

I m researching the possible use of the jquery plugin chain.js over other templating systems such as jTemplate.

the site is a large online retailer. We have a category page showing a large list of products, dresses for example. A user can click on a link on a nav bar te refine the results based on attributes such as colour, size etc.

We have an ajax call contacting the server and we use a template plugin to rebuild the page.

Anyway - our product template needs to have an image and various price fields underneath it. On jTemplate we have conditionals to alter the template slightly. We dont seem to be able to do this with chain.js.

Also I can t seem to bind to tag attributes using chain - for example binding a product image url to the image src tag.

is this impossible?

Any pointers would be great - finding a severe lack of online resources for using chain.js.

thanks,

bc

最佳回答

just closing this off - eventually we scrapped Chain as we found it wasteful compared to Trimpath JavaScript Templates (TrimpathJST). We used this method in the end.

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签