I know you wouldn't dream of it - but that is what Booth is doing (apparently).

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Henrik Rützou
Sent: 11 November 2016 13:24
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] JSON and the IFS

Kevin

first of all - I couldn't dream of serving data from static xml-files for data but I do use static XSLT files that may be shared in pages.

The problem in IE is different, in IE 9 in 'compability mode'
ajax.responseXML property works but IE
10 + 11 it doesn't while it works in all other browsers



On Fri, Nov 11, 2016 at 10:36 AM, Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx
wrote:

The file encoding on the IFS also has to be right. So for us we use
UTF-8 so the static content files should also be ccsid 1208 or, as you
say, IE especially will have issues. To be honest it is not good
practise to store data in files in htdocs on the IFS and let the
browser be able to download it directly. The data should only be
accessible via your application, and streamed to the browser by your
program(s). That way you are in full control of the data and have no security loopholes.

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin
Turner
Sent: 11 November 2016 09:28
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] JSON and the IFS

It shouldn't have any problem as long as the data is correctly encoded.
With JSON the typical mistake is with the braces ({}) especially when
hardcoded in RPG source. If your job ccsid is 37 (using the US
example) and your source files is ccsid 37 then what you key in will
look fine in the source and any file you spew out to the IFS, but that
doesn't mean that it actually is correct when converted by Apache to
(for example) UTF-8. We never hardcode those characters for that
reason. It would be useful to see what Booth gets on the browser and
if indeed it is the braces that are screwed.

Sent from my iPad

On 11 Nov 2016, at 09:00, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

I have had the same problem with IE loading external XML via AJAX
into DOM

On Fri, Nov 11, 2016 at 9:30 AM, Kevin Turner
<kevin.turner@xxxxxxxxxxxxxxx>
wrote:

"First, its telling me the file is badly formed and points to row 1,"

What is "it" in this sentence? Your browser? If so what does the
JSON look like when it is downloaded? For example you can use the
Google Chrome developer tools - Network tab to look at it.

Sounds to me like you have a ccsid issue with the file.




[https://www.netcracker.com/assets/img/netcracker-social-final.png]
ƕ
On 11 Nov 2016, at 05:34, Booth Martin <booth@xxxxxxxxxxxx> wrote:

First, its telling me the file is badly formed and points to row
1,



________________________________
The information transmitted herein is intended only for the person
or entity to which it is addressed and may contain confidential,
proprietary and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the
intended recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any computer.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/web400.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/web400.



________________________________
The information transmitted herein is intended only for the person or
entity to which it is addressed and may contain confidential,
proprietary and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from any computer.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.



________________________________
The information transmitted herein is intended only for the person or
entity to which it is addressed and may contain confidential,
proprietary and/or privileged material. Any review, retransmission,
dissemination or other use of, or taking of any action in reliance
upon, this information by persons or entities other than the intended
recipient is prohibited. If you received this in error, please contact
the sender and delete the material from any computer.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.



________________________________
The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential, proprietary and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.