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

how do i pass the url as object?

$
0
0
This is my HTML template: <article class="mn_dotw mn_sect" data-title="Online Deal of the Week" data-url="group={$deal_of_the_week_group_name|urlencode}&amp;max=1&amp;pid=977&amp;sid=9081"></article>

and my model looks like : Dotwoff = can.Model.extend("dotwoff",{
        findAll: {
          url: '/api.php/specialoffers',
          type: 'GET',
          data: $('.mn_dotw').data('url')
        }
      }, {});

how should I call the data url in the data field of the model ???

The api is getting hit but not returning anything. ?? 

Viewing all articles
Browse latest Browse all 3491

Trending Articles