Possible to Manipulate Chrome app "webview" dom with javascript/jquery/AngularJS or some otherway -
Possible to Manipulate Chrome app "webview" dom with javascript/jquery/AngularJS or some otherway -
hello fellow stack on flow geniuses. hope have hope simple question. creating packaged app , have access info not need parse javascript re represent info in new way plain jane view. more acceptable
so question is:
is possible access dom of "web view"( chromes packaged app reply iframe) java script or jquery or angular , manipulate , sense of info beingness projected in iframe( web view) ?
any sample code appreciated.
if above question not create sense have provided more elaborate explanation here ** ignore if don't care why setting way **:
i have page uses ajax update list of info dynamically internal systems. each scheme spits out info in no organized fashion. info supplied very... well... how set it.... bland haha. goal 1 remove browser side view tab not open; while keeping functionality , integrity of info intact server side. need team able access/manipulate view of info locally , provide easier view of info beingness provided , manipulate way. ensure info can reformatted per section without affecting everyone's view of info uses differently.
i have done ajax pulls , have parsed info , requires many calls made refresh info beingness done server side. sense easier load page live through web form , manipulate info there display how , want it.
any recommendations on how accomplish task appreciated well.
yes, can phone call executescript in webview:
var wv = document.queryselector('webview'); wv.executescript({code: "document.body.style.backgroundcolor = 'black';"})
although not practical way of doing need. if possible, rather convince server side developers generate json feed of info , having packaged app xhr'ing in , formatting appropriately.
update: if need reformat webview content, can utilize simpler insertcss
method:
var wv = document.queryselector('webview'); wv.insertcss({code: "body { background-color: black;}"})
javascript jquery webview angularjs google-chrome-app
Comments
Post a Comment