Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Serious question, /prog/

Name: Anonymous 2013-04-10 0:43

I want to create a standalone .html file that has some Javascript that loads a URL that contains JSON data, then uses that data to display some useful info. I'm getting shit about "cross-domain policies" in Chrome, though. There has to be a way to do this, right? Have they really made it impossible to use the browser to write local, personal "web apps?"

Name: Anonymous 2013-04-10 0:53

Stop using such a shitty web browser.

Gecko > Webkit.

Name: Anonymous 2013-04-10 0:55

>>2
Stop using such a shitty web browser.

non-using layout engine web browser > layout engine using web browser

Name: Anonymous 2013-04-10 1:23

>>2,3
Keep the browser wars choices in software use contained with /g/ please.

Name: Anonymous 2013-04-10 1:40

Opera > fuck you

Name: Anonymous 2013-04-10 2:24

wget > lynx > firefox with pentadactyl > emacs > other browsers > vi > microsoft word > Call of Duty

Name: Anonymous 2013-04-10 3:23

>>6
wget
*Pffggfuh*. I vomited all over my keyboard. Use curl.

Name: Anonymous 2013-04-10 3:42

>>7
cURL is larger and requires more libraries.  If you don't need its extra features, just stick with wget.

Name: Anonymous 2013-04-10 4:12

>I want to create a standalone .html file that has some Javascript that loads a URL that contains JSON data, then uses that data to display some useful info

baka

Name: Anonymous 2013-04-10 4:17

DONT HELP HIM

he is trying to hack websites!

Name: Anonymous 2013-04-10 4:27

>>9
Why?
>>10
Nope. I just want to write a little .html file to fetch mining stats from a Litecoin pool. My friends and I split the cost of a 7970, and I wanted to make a small, neat-looking page that would occasionally fetch stats from it, so that they can keep up with its progress.

Name: sage 2013-04-10 4:40

Name: Anonymous 2013-04-10 20:55

>>12
Yeah, I know why it's normally disallowed. The point is that there should be a way to override this if you need to.

Name: Anonymous 2013-04-10 20:58

>>13
Just have your server download the page and echo it to your clients.

Name: Anonymous 2013-04-10 21:48

Have you tried using frames?

Name: Anonymous 2013-04-10 21:50

Have you tried killing yourself?

Name: Anonymous 2013-04-10 22:00

>>13
That would allow you to have the visitor of your site send a shitpost on /prog/ every time he moves the pointer.
Do what >>14 said.

Name: Anonymous 2013-04-10 22:01

>>14

The whole *point* was that I didn't want to bother with a server, just e-mail an .html file to some friends. I did try setting up a simple Node server in Heroku, but for some reason HTTP requests to the JSON page weren't working (though requests to other servers echoed fine...) God, how I hate web programming.

>>15
Finally, a useful suggestion. Thanks!

Name: Anonymous 2013-04-10 22:13

Use a WebSocket server. Minimal bandwidth and is truly ENTERPRISE QUALITY

Name: Anonymous 2013-04-10 22:29

>>18
My bad. I didn't catch that the page was viewed locally.

Name: Anonymous 2013-04-11 0:48

>>13
There is: http://en.wikipedia.org/wiki/Cross-origin_resource_sharing

You can also embed IFrames and use window.postMessage for cross-domain communication.

>>18
When loading an HTML file off your local hard disk, XMLHttpRequests will fail in lame ways. Use a server, even if it's just a trivial local one.

Don't change these.
Name: Email:
Entire Thread Thread List