rmichnik / x2js

Automatically exported from code.google.com/p/x2js
0 stars 0 forks source link

unable to run published demo #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

When I try to open the x2js demo at http://jsfiddle.net/abdmob/gtLBx/15/, I'm 
presented with a page that shows two empty text areas -- one labelled "XML", 
one 
 labelled "JSON".

What is the expected output? What do you see instead?
I expect the contents of the "XML" window to show a sample XML string per the 
code:
$("#xmlArea").val("<root><child><textNode>First &amp; 
Child</textNode></child><child><textNode>Second 
Child</textNode></child><testAttrs attr1='attr1Value'/></root>");

Instead, the text area is empty.

What version of the product are you using? On what operating system and
browser version?
Windows 7, same results in both Chrome and IE.

Please provide any additional information below.

I notice that if I run the Chrome developer console, (F12) there's an uncaught 
exception when loading the app.

The text of the error is:
Uncaught TypeError: url.indexOf is not a function

This appears in the "jquery-git.js" tab.

Original issue reported on code.google.com by rhh...@gmail.com on 20 May 2015 at 9:02

GoogleCodeExporter commented 9 years ago
Looks like weird JQuery + JSFiddle + new chrome issue. If you change JQuery to 
1.11.0 (for example) it will work.
But anyway I'll update demo on JSFiddle.

Original comment by abdulla....@gmail.com on 20 May 2015 at 9:54

GoogleCodeExporter commented 9 years ago
I have the same issue. It works with Angular 1.2.x versions, but not with 1.3.x

Do you have a quick fix for that?

I use this example: http://plnkr.co/edit/Hpx8GPHt0IqKADj8K1Qc?p=preview and 
only change angular's line (#11) to test it.

Original comment by urgupluo...@gmail.com on 24 May 2015 at 9:35

GoogleCodeExporter commented 9 years ago
It is not issue in x2js library - it was issue about demo (written with JQuery).
X2JS itself doesn't require JQuery. So, you don't need a fix from X2JS - you 
need to check your JQuery library and browsers versions.

Original comment by abdulla....@gmail.com on 24 May 2015 at 11:11