- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Folks,
Some time ago I was having problems with whitelisting and was advised (Paul I think) to use the old methods. However, I'm having an issue with the following:
arr = '[' + arr + ']'; var i = 50 ; var out = ''; out += '<div class="panel-group no_wrap widget uib_w_' + i + ' d-margins" data-uib="twitter%20bootstrap/accordion" data-ver="1" '; i++ ; out += 'id="bs-accordion-11">'; out += '<div class="panel widget uib_w_' + i + ' panel-info" data-uib="twitter%20bootstrap/collapsible" data-ver="1">'; i++ ; $.each(JSON.parse(arr), function(idx, obj) { out += '<div class="panel-heading"><h4 class="panel-title">'; out += '<a class="accordion-toggle" data-toggle="collapse" href="#bs-accordion-group-' + i + '" data-parent="#bs-accordion-11">'; out += '<small>' + obj.sent + '</small><br><strong><big>' + obj.title + '</strong></big><br>'; out += '</a></h4></div>'; out += '<div id="bs-accordion-group-' + i + '" class="panel-collapse collapse">'; i++ ; out += '<div class="panel-body"><div class="col uib_col_' + i + ' single-col" data-uib="layout/col" data-ver="0">'; i++ ; out += '<div class="widget-container content-area vertical-col">'; /* if (obj.picture.length > 0 ) { out += '<div class="widget uib_w_' + i + ' scale-image d-margins" data-uib="media/img" data-ver="0">'; i++ ; out += '<figure class="figure-align"><img src="' + obj.picture + '"></figure></div>'; } */ out += '<p>' + obj.body + '</p><br><br>'; out += '<span class="uib_shim"></span></div></div></div></div>'; }); out += '</div></div>'; alert(out); $(".recent").html(out); $(".uib_w_8").modal("toggle");
If the commented code is left out, the code works fine, but the moment I try to include obj.picture I get nothing. Is there a Whitelist issue I'm missing? The url is something like:
http://weekend.forgottencoastnetwork.com/wp-content/uploads/sites/4/2012/02/chili.jpg
obj.picture.length always works and gives me the length of the string, which is fine, but the js doesn't get passed.to alert(out)
Thanks,
Ed
- Tags:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, it was a whitelist issue using the build settings..
Please disregard.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page