Ajax load from LAN's mysql using chrome app -


i trying ajax load lan's mysql using chrome app.

i proposing ajax because need chrome app load update in sql instantaneously.

since app used in lan network, presume there no need maintain web server (aka running apache). can provide hints answer found on forum not me (an absolute newbie) much.

https://developer.chrome.com/extensions/xhr

thank you.

yy

since app used in lan network, presume there no need maintain web server (aka running apache).

ajax refers making http request to.. something.

something can answer http requests called web server.

so, need some sort of web server. may component of mysql server, it's still web server.


that said, doesn't mysql has supported http interface. there experimental http plugin provides rest api, it's experimental. therefore, need separate server application need.


that said,

i proposing ajax because need chrome app load update in sql instantaneously.

ajax not magic bullet. works requesting data, not adapted receiving updates initiated server you're talking to. it's request-response cycle, , while there some techniques use push data hacks.

websockets evolved cover bidirectional, persistent communication needs. however, again require web server sit proxy between db , app - time, websockets-capable.


that said, building chrome app allows connect database directly - since chrome apps capable of using chrome.sockets api. need javascript library adapted task, exist.


that said, , noting i'm not expert on databases, but..

databases not designed notify updates. need poll them see if data has changed. not instantaneously no matter interface use. you'll need periodically monitor changes.

considering this, depending on you're trying may choosing wrong instrument.


there's lot of "buts" here, , seems complex task. should re-evaluate readiness "absolute newbie" undertake it.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -