Ask questions and get good answers on jQuery

How can make an extruder consume a JSON file for the contents?

asked Nov 16 '09 at 05:02

Benedict%20Aluan's gravatar image

Benedict Aluan
1136

edited Nov 16 '09 at 10:41

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129


The jquery.mb.extruder content can be set directly on the page (not just via ajax); so you can inject whatever kind of content via javascript or directly as HTML; you can than have your own method that get the json and create the HTML to be inserted in the "content" DIV of your extruder (I'm going to rename the "content" class in next release to prevent common use of it to interfere).

answered Nov 16 '09 at 10:39

Matteo%20Bicocchi's gravatar image

Matteo Bicocchi ♦♦
1776129

Question 1

Could you please provide an example how to define primary and secondary content...

  1. Via HTML
  2. Via JSON

I would appreciate if both approaches would be in a single file.

Question 2

When I deploy my page via IIS it cannot parse expression url:'parts/extruderTop.html' correctly. How can I handle it?

Thank you very much in advance.

answered Nov 27 '09 at 14:02

Alexander's gravatar image

Alexander
1

Your answer
toggle preview

jQuery main site - Matteo Bicocchi