jquery in html block

Permalink
hi people,

got an issue trying to use jquery in an html block to pull xml nodes from an external rss feed through a simple proxy. The proxy is working fine and i can view the atom feed no worries from within my domain. However, i can't seem to get jquery to parse the results into an html block?

presently in my block i have

<script> 
$(document).ready(function()
{
  $.ajax({
    type: "GET",
    url: "LOCALPROXYLINK",
    dataType: "xml",
    success: parseXml
  });
});;
function parseXml(xml)
{
  $(xml).find("NODE").each(function()
  {
    $("#output").append($(this).attr("CHILDNODE"));


it is a custom theme but the jquery asset is being called in the page_theme php.

what am i doing wrong???

running concrete 5.7.3.1 if its relevant :-)

thanks in advance for any help anyone might be able to give.

b1zki7
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi b1zki7,

Have you checked to make sure the jQuery asset is being included in your theme?
b1zki7 replied on at Permalink Reply
b1zki7
yeah, the asset is being called in page_theme.php ??
MrKDilkington replied on at Permalink Reply
MrKDilkington
Sorry, let me be more clear.

Did you check to see if the jquery.js file is being loaded on the page?
b1zki7 replied on at Permalink Reply
b1zki7
hi there. it is indeed.