Parsing Error No Element Found Location Moz-nullprincipal
Contents |
here for a quick overview of the site Help Center Detailed answers to
Xml Parsing Error Syntax Error Location Moz-nullprincipal Line Number 1 Column 1
any questions you might have Meta Discuss the workings and xml parsing error no element found firefox policies of this site About Us Learn more about Stack Overflow the company Business Learn more
Xml Parsing Error: No Element Found Location
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community jsonp Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XML Parsing Error: no element found Location: moz-nullprincipal (not strong with ajax) up vote 4 down vote favorite I know this question has been asked many times and from what i have researched on this error it appears that it happens because cross domain ajax is only allowed for JSONP, not XML. But i am having trouble finding where this call is being made so I can't exactly find where the problem is. Everything is working fine until I added the following code @EventListener(targets="licensingStatus", events="onchange") public void onLicenseStatusChange(IRequestCycle cycle){ cycle.getResponseBuilder().updateComponent("licenceAuthRequiredDiv"); } This is the component that the above code is updating
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up “XML Parsing Error: no element found Location: moz-nullprincipal” in ajax response up vote 0 down vote favorite I http://stackoverflow.com/questions/12157215/xml-parsing-error-no-element-found-location-moz-nullprincipal-not-strong-with am unable to get the response from ajax. please guide me how to resolve this error, XML Parsing Error: no element found Location: moz-nullprincipal:{eba9a0c1-19c1-45a3-9bb3-457899f1aaac} Line Number 1, Column 1: $(".sub_cat4").change(function() { var s_class = $(this).attr('class'); $num = 5; var option = $(this).find('option:selected').val(); jQuery.ajax ({ url: '/products/get_attribute/' + option+ '/'+$num, success: function(data) { if(data != '' ) { // $('#attribute').append(data); jQuery( "#attribute").show(); jQuery( "#attribute").html( data ); } } }); }); jquery ajax share|improve this http://stackoverflow.com/questions/39666104/xml-parsing-error-no-element-found-location-moz-nullprincipal-in-ajax-respon question edited Sep 23 at 17:14 Sayali Sonawane 1,044624 asked Sep 23 at 17:06 Ashish 12 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote The error is from your JAVA server, post the server code for the AJAX call. Is the server in the same place as the js file? share|improve this answer answered Sep 23 at 17:09 Picko 1337 yes, i have added js file in same place –Ashish Sep 24 at 3:32 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged jquery ajax or ask your own question. asked 30 days ago viewed 94 times active 30 days ago Related 530jQuery Ajax error handling, show custom exception messages1XML parsing error in AJAX response from a servlet4XML Parsing Error: no element found9Cross-domain Ajax call gets no element found Location: moz-nullprincipal3Parsing XML JQuery Ajax Response with Namespace4XML Parsing Error: no element found Location: moz-nullprincipal (not strong with ajax)3ajax response error(X
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow http://stackoverflow.com/questions/13656970/xml-parsing-error-no-element-found-location-moz-nullprincipal-not-fetching-da the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XML Parsing Error: no element found Location: moz-nullprincipal. NOT fetching data from another domain up vote 0 parsing error down vote favorite I'm trying to use a PHP file to pull data from a database and convert it to JSON using a $.getJSON call, but I just get the following error: XML Parsing Error: no element found Location: moz-nullprincipal:{af08ce9b-940c-41a3-bd20-e4e5ad1a6d23} Line Number 17, Column 3: ?> --^ Everything I can find says this is because I'm trying to pull the data from another domain, but this isn't the case for me; the no element found website is a Maven web project that's running on a local Glassfish web server. Here's my PHP file: prepare("SELECT * FROM events WHERE type = ? ORDER BY date"); $stmt->execute(array($_GET['activity'])); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); } echo json_encode($rows); ?> Here's my JavaScript file: $(document).ready(function() { $.getJSON('php/query-database.php', {activity: 'Abseiling'}, function(data) { $.each(data, function(index, array) { $('.events').append(array['title']); }); }); }); UPDATE: The problem has been resolved, turns out it was simply the fact that my Maven web project couldn't run the PHP files, so the PHP files did not return any data. After creating a PHP project, everything is working fine. php json share|improve this question edited Dec 1 '12 at 7:22 asked Dec 1 '12 at 6:14 Jordan 2782925 When you access /php/query-database.php?activity=Abseiling do you get the JSON output? –cryptic ツ Dec 1 '12 at 6:37 No, this is what I'm getting: prepare("SELECT * FROM events WHERE type = ? ORDER BY date"); $stmt->execute(array($_GET['activity'])); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); } echo json_encode($rows); ?> –Jordan Dec 1 '12 at 6:49 The output of the PHP script is PHP code? If that is the case your server is not