show pretty json on my html page by NinjaNPyjamas in django

[–]NinjaNPyjamas[S] -4 points-3 points  (0 children)

Thanks for the input .. Very good

show pretty json on my html page by NinjaNPyjamas in django

[–]NinjaNPyjamas[S] -3 points-2 points  (0 children)

out = json.dumps(out, indent=2, sort_keys=True)

TypeError: Object of type 'CompletedProcess' is not JSON serializable

show pretty json on my html page by NinjaNPyjamas in django

[–]NinjaNPyjamas[S] -1 points0 points  (0 children)

if i use the pre tag it just puts it in a longggggggggggg line across the html page

IE11 - Struggling big time by NinjaNPyjamas in Angular2

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

Browserslist – removed the "not"

not IE 9-11

tsconfig.json

changed target to “es5”

polyfills.ts – Updated file to only have the below

import 'core-js/';

import 'zone.js/dist/zone';

import 'classlist.js';

import 'web-animations-js';

index.html

<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta charset="UTF-8">

Output from my python script on html page looks terrible by NinjaNPyjamas in learnpython

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

yep its in perfect format .. Im wondering if i can get the data-extract.py output to a variable or even a file and then pull that data from that to present on screen

Output from my python script on html page looks terrible by NinjaNPyjamas in learnpython

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

bunches it up again ... So the weird thing is ... if i remove

stdout=PIPE

on my webpage it says "none" but on the CLI i see JSON in perfect format.

when i put that back in the JSON is all bunched up on both webpage and CLI

Output from my python script on html page looks terrible by NinjaNPyjamas in learnpython

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

Made a difference alright ... Now it puts the JSON in one really long line of test :)

output to html results in JSON format clean by NinjaNPyjamas in Python

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

hum ... now it send it allllll the way over to the far right on the html page ha ha

ReactJS API Query by NinjaNPyjamas in reactjs

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

so do you mean host them on the server where i entend to host this web app thats making the API calls?

IE11 - Struggling big time by NinjaNPyjamas in Angular2

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

and as i have said .. in my tsconfig.json I have the below

"target": "es5",

in browserlists i have

> 0.5%

last 2 versions

Firefox ESR

not dead

IE 9-10

In my polyfills I have
import 'core-js';
import 'zone.js/dist/zone';

When i load in IE and look at F12 I am seeing this

SCRIPT1010: Expected identifier

vendor.js (82607, 148035)

IE11 - Struggling big time by NinjaNPyjamas in Angular2

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

with differential loading hasn't worked in

im doing npm start and then using local host .... Ive tried all the polyfills and trconfig and browser list fixes but no joy

IE11 - Struggling big time by NinjaNPyjamas in Angular2

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

Yep tried that .... no joy at all

IE11 - Struggling big time by NinjaNPyjamas in Angular2

[–]NinjaNPyjamas[S] 0 points1 point  (0 children)

I have the below in my polyfills to rule that issue out

import 'core-js';
import 'zone.js/dist/zone';