.getJSON problem in webapp?? - Web App Development

Hi guys, I'm making a webapp with a functionality that needs to display information dynamically.
I was trying out the .getJSON and tested it on my localhost website, it was running smoothly. But after I used cordova to convert the site to a app and clicked on the button to trigger .getJSON to get the list of items to display from my localhost with the emulator, but it didn't work.
Anyone have any idea why the getJSON wouldn't work inside the app?

Related

WakeAndShake utility for PC wakeup / shutdown

Little utility for waking up / shutting down / rebooting or Logging off from the PC's on your network via you wm device.
Requirements;
# Wifi active on wm and connected on same local network as PC's
# Wake-On-Lan enabled on PC's
# allow http traffic on Port 7777
# obtain MAC Address for all PC's you wish to 'control'
# Multi form factor - check CAB name for correct version for your device
1. Install cab on device
2. Install the service via the msi installer on any PC's you wish to 'control'
3. Edit the WakeAndShakeConfig.xml on the device OR use the settings screen from within the app - enter your PC's IP addresses (or host name) and their corresponding MAC addresses.
09/02/2010 - Settings screen added (still needs some tweaking, a few navigation bugs)
Any Q's shout.
If you find this useful & wish to donate please see my sig button.
-=-=-
20/03 - update service installer
VGA Version?
Is there any chance for VGA version?
various form factors added, see #1
cheers,
dan
man I've been dying for something like this for a while... eagerly awaiting a QVGA version
Wish someone can make a Video Tutorial
on how to set this & post on youtube
Please
pndragon said:
man I've been dying for something like this for a while... eagerly awaiting a QVGA version
Click to expand...
Click to collapse
will try and do one later today ;-)
Thanks for sharing
added QVGA cab - see post #1
updated the PC service - if user cancels shutdown subsequent shutdown requests will now be triggered
Hi dt_matthews,
it will be very amazing was it possible to skin it for DUSK.
I have seen the screenshot and i was thinking is this something what be possible in a future version?
added IP address to settings xml and config, this is required if your PPC doesnt have regsitry entries mimicking hosts file lookup, ip address will be shown in the machine drop-down list along with the machine name
added IP address to xml and to settings screen - this is required for PPC's that dont have registry entries which mimic hosts file lookups, these IP's are displayed in the machine dropdown along with the machine name
Been waiting for an app like this
To bad I can't get the settings screen to work, it won't save the data I type in to the host, ip and mac fields.
And the xml file is clean except from the settings tag so I don't know how to modify the parameters
Please help...
HTML:
<settings><machine name="machineName1" mac="071EB93CAD68" ip="192.168.1.87"/><machine name="machineName2" mac="0219DDAFC6B3" ip="192.168.1.85"/><machine name="machineName3" mac="001A437AA515" ip="192.168.1.65"/></settings>
This is a sample of a valid version of the xnml config. Just obviously change the name tags, the mac and the IP addresses to match your machines. then run the service installer on your machines and the cab on your device and you should be fine.
shout if its not clear
cheers,
dan
Thanx! Works a lot better when one knows the param names
Next problem
Can't get the HTTP Shutdown to run properly on the PC. It starts automatic but then stopps as it has no work to do (according to windows)
Suggestions?
240z said:
Thanx! Works a lot better when one knows the param names
Next problem
Can't get the HTTP Shutdown to run properly on the PC. It starts automatic but then stopps as it has no work to do (according to windows)
Suggestions?
Click to expand...
Click to collapse
that is as designed, its an http listener which wont be show as actively 'doing' anything by svchost.exe [service manager]. as long as you are connected to the same network (and workgroup) it should be ok. let me know
i've tried this on two machines now. on one of them it won't work at all. on the other i got it to reboot ones. but know it doesn't work anymore.
on both machines windows reports application error on shutdownpcservice.exe and wants to send an error report to microsoft.
in the application log (under computer managment) i used to see how the shutdownservice started to listen to port 7777, but not anymore. it's like it not running.
i've tried to reinstall the program but that didn't do it.
thanks for your effort Dan
240z said:
i've tried this on two machines now. on one of them it won't work at all. on the other i got it to reboot ones. but know it doesn't work anymore.
on both machines windows reports application error on shutdownpcservice.exe and wants to send an error report to microsoft.
in the application log (under computer managment) i used to see how the shutdownservice started to listen to port 7777, but not anymore. it's like it not running.
i've tried to reinstall the program but that didn't do it.
thanks for your effort Dan
Click to expand...
Click to collapse
hey dude,
i've updated the service installer (see post #1) - uninstall the last version (make sure the service is uninstalled fully, you may need to uninstall it from the cmd line if it wont uninstall via the GUI) then install the new version, that is the version i am running without problems, let me know how you get on, happy to help with any tweaking ;-)
Can this be used to put the PC to sleep (into standby) rather than shutdown? If not, could this feature be added?
Windows cmd line doesnt support sleep, but there is an alternative i could use (i think), but i cant do it straight away since my pc with the code on has just given up the ghost and it'll be a bit of time till i can get the data off it, but let me know if you can wait and i'll do it as soona s i can.
cheers,
dan

Little "non-useful" tips/hacks

Hi all.
This is a little collection of things that i have been noticing while testing hacking issues on the phone.
Remember that those are "non-useful" (not to jailbreak) the phone, and just curiousity as topic.
Easy Hidden Menu Call
Do you need a search on the net to remember the hidden menu code? No more!. Test this phone-number string instead:
(Edited now): ##PROGRAMNITT
Max size for an app name/web favorite
Seems to be no max per se, but after doing some test, where i created title as: "chunk1chunk2chunk......chunkN" i was able to load a 1691124 characters title. Further than that, the browser seems to crash.
That's about a 3MB text string, just for the title. Would work well, when testing if several of them pinned reduce our 8gb storage(use storage) or doesn't (uses other).
Btw, you can pip up to 67 apps, (51 new) so... that's a max anyway,
Application Menu "About:blank" hack
Test this in the browser bar as direction: "about:blank". Kin IE will yell that it's not a supported protocol. Yeah, that's right. Let's dev a page on a local webserver with:
PHP:
<html>
<head>
<title>Mad redirection!</title>
</head>
<body>
<h3>Mad redirection tool!</h3>
<p> Testing: <div id="testTab"></div></p>
<p> Errors:
<div id="errorsTab"></div>
</p>
<script type="text/javascript">
var urlToTest = "about:blank";
try {
var test = document.getElementById("testTab");
test.innerHTML = urlToTest;
window.location=urlToTest;
}
catch (error) {
var err = document.getElementById("errorsTab");
err.innerHTML = "Error going to " +urlToTest+"<br/>"+error.message;
}
</script>
</body>
</html>
Browse it with the kin and you will land in the about:blank page, with the ability to be pinned on the application menu. Of course it will work, having the App link on the App menu, with a non working link (Kin still yells if you use it from menu).
Useless, but weird...
I do know that this is pure thread necromancy and that those are old news but:
a) if you are able to do the trick (using the sample html i posted) you can see that indeed it comes to about:blank and is shown as that on the title: "ABOUT:BLANK".
b) if you are so smart to change it to "about:lame" it goes there but shows a "Action canceled" webpage, where it suggest you to press the "refresh" button or use menu opcion "File -> work offline".
Like if you could.. rofl.
That means:
1) "about:" protocol is supported (at least about:blank) to be navigated BUT is nerfed from the direction bar. So other protocols could work. For example, smtp and ftp does trigger a popup from the IE, but res:// file:// and rtsp:// do not (even if they crash later, and rtsp opening zune for streaming).
2) This is a pure IE (with file menu,hopefully )
3) some other things can be tested, and every person can!
I upgraded the posted code, so it outputs an error when the redirection doesnt work (almost allways).
If you try it, remember not to end your url with \ (backslash) as it interferes with the doublequotes.
I've just completed testing a couple of things.
First, I successfully tested the "about:blank".
I also tried "about:", "about:about", "about:cache", and "about:home". These each resulted in the action canceled page described above.
I also tried the "file://" protocol, with the address "file://localhost/c:/" and received the following:
Errors:
Error going to file://localhost/c:/
Could not complete the operation due to error 80070005.
[edit] It seems that error 80070005 is given when you do not permission. The solution? Log on with administrator privileges... (see link)
Upon further testing:
about:desktopitemnavigationfailure works and displays "navigation cancelled" page.
about:navigationcanceled works and displays "navigation cancelled" page.
about:navigationfailure works and displays "navigation cancelled" page.
about:noadd-ons displays "navigation cancelled" page.
about: offlineinformation works and informs the user that the current page can not be viewed off line.
about: postnotcached works and informs the user that to refresh the current page, information entered in a form will have to be re-posted.
about:securityrisk displays "navigation cancelled" page.
about:tabs (unsuprisingly) displays "navigation cancelled" page.
I read that about:mozilla works in older versions of IE. However, it displayed the "navigation cancelled" page. You can also supposedly access the about:mozilla page using the following URL: res://mshtml.dll/about.moz
However, while this "res" protocol appears to be supported, I received the same permissions error as referenced in the above post.
I tested the mms protocol on a couple of working mms streams, but received the notification that the protocol is not supported.
I tried view-source://(random web address) and unsuprisingly was told that the protocol isn't supported. While this protocol works with some browsers, it doesn't seem to work on internet explorer even on a regular computer.
I tried the javascript protocol and it seems to work, but is different than about:, http:, etc. Mainly, it processes the javascript without leaving the script "address" in the address bar like we see with about: and http:
I was a little disappointed in this one, hoping to bookmark a javascript to test the videohamster flash video viewer for ipods, or itransmogrify for other flash files.
very nice work here. I like what you have done with this.
I'm glad that other than about:blank works (apart of the "action cancelled").
I took my time to install a wm6.5 emulator and test where do this "Action cancelled" come from in the pocket IE url bar.
They are from " res://.....navcancl.dll ".
Maybe there's a way to bypass the restrictions (the permission error) by calling some parameter in the "about:XXXX", but i can't bet on it.
Edit:
about:version seems to work (it auto-says "cannot find server", although my python custom-made-for-exploits server says that it delivered my html). But it keeps loading after the javascript redirection happens.... lol, so random .
One thought I had, that I have not had time to experiment with yet, is how deep the permissions restrictions go. For example, at times I have been logged on to a windows-based computer and have access to certain user-specific files but not to system files or to files or folders closer to the root. So for instance, we may be able to access the WinCE equivalent of "C:\Documents and Settings\<UserName>" using the file:// or res:// protocols even though we don't have permission to access "C:\".
Here's another potential avenue for information related to the "res" protocol. Apparently, it can be used to enumerate the software on a machine by identifying certain executables or dlls. (see here).
Unfortunately, the example cited in the article is not available so I can't view the code on how it was done. However, the results can be viewed here, where incidentally you can see the software installed on the computer that crawled this webpage.
Luckily, a manual or how-to paper is available here. I will try to check it out and see if I can figure out something useful.
i checked, it doesnt yell at you if you use a res:// but either if using ftp:// so the big problem is that you must pre-know the res:// uri before testing.
And in the best case, you will just get an image shown, ad js cannot give you the binary data.
anyway, i'm interested in this things....
Here's a couple other likely non-useful tidbits.
The browser will attempt to open the following filetypes with the Zune player:
.avi
.3gp
.mov
.fli
.mp4
.wmv
.wmx
When you open a VBScript in the browser, the script isn't executed, but it is displayed.
The mailto: protocol works from the browser and opens up the email dialog.
The following script causes the browser to hang (and deleting temporary files does not resolve the problem--but restarting the Kin does):
HTML:
<html><body onLoad=Demo()><script>
// MoBB Demonstration
function Demo() {
var a = new ActiveXObject("Internet.HHCtrl.1");
var b = unescape("XXXX");
while (b.length < 256) b += b;
for (var i=0; i<4096; i++) {
a['Image'] = b + "";
}
}
</script>
</body></html>
I haven't played around with the logs at all, but would this provide an error that gives some useful log output?
After some further testing, I discovered the Kin does not yell about the following protocols as being unsupported (in other words, they seem to be supported):
gopher://
nntp://
telnet://
news://
snews://
windowsmail.url.mailto://
windowsmail.url.news://
windowsmail.url.nntp://
windowsmail.url.snews://
johnkussack said:
Maybe there's a way to bypass the restrictions (the permission error) by calling some parameter in the "about:XXXX", but i can't bet on it.
Click to expand...
Click to collapse
I tried playing around with about:____, such as with the following types of addresses:
about:<input%20type=file>
about:<a%20href=C:\windows\>Click-Here</a>
but without luck.
I also tried the shell handler "Shell:" which seems to be another supported protocol, but again without luck. I tried the following Shell commands:
Shellrofile
ShellrogramFiles
Shell:System
Shell:ControlPanelFolder
Shell:Windows
Shell:::{21EC2020 shell:::{21EC2020-3AEA 3AEA-1069 1069-A2DD A2DD-08002B30309D}
Here are a couple more that I found other people sometimes try that I haven't tried (at least not yet):
shell:ControlPanelFolder
shell:::{35786D3C-B075-49b9-88DD-029876E11C01}
shell:::{208D2C60-3AEA-1069-A2D7-08002B30309D}
shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
shell:::{450D8FBA-AD25-11D0-98A8-0800361B1103}
shell:::{E17D4FC0-5564-11D1-83F2-00A0C90DC849}
Ok, so this will be my last post in this thread tonight . For some unknown reason, you can access your emotes when in camera mode.... It doesn't do anything if you try to use one though.
great to hear about the shell::XXXX thing.
Does it trigger something? like about:blank or the other trigger a blank or a "cannot go" page.
btw, a real path on the phone (granted by the logs) is:
\Windows\eri.bin
That's assured , with the start backslash ("\\" if used on js code)
these hacks arent nonuseful
you should have called these hacks something other than non useful because we can use these little tips and tricks in combination with others to actually create an in browser jailbreak using the unrestricted protocols.
shell commands
try the net user admin <username> <password> console command in the shell protocol and see if you an bypass restrictions. theres no reason why console commands shouldnt work even though i havent tried this myself.
X-15D9W8491 said:
try the net user admin <username> <password> console command in the shell protocol and see if you an bypass restrictions. theres no reason why console commands shouldnt work even though i havent tried this myself.
Click to expand...
Click to collapse
Sorry, I'm not sure where you mean to do this. Unless I completely missed the revelation, so far, nobody has been able to get any type of shell/console access (as it doesn't really exist on a Windows Mobile OS anyway).
i called them as is, cause in first place, they were non useful, lol.
Although now, it could be a good try to get some "jailbreak" procedure.
as we dunno what windows mobile i6 can do, i guess we should/must try into a real mobile device (maybe my old pda too), or a win mobile 6.5 emulator, to test procedures (less restrictions), and then repeat on the kin (restricted).
I always though that the browser was the weakest part anyway
if you do tel: in the browser, and write anything after that it opens it up in a bubble....it lets you call letters, although it gives an error in the phone app
When using the TRACERT (Trace Route) in the programnitt menu I found a quirk.
Using 127.0.0.1 to Trace replies: WindowsCE
...that's obvious but interesting.
Using 127.0.0.0 to Trace replies: * 87 (30 times, hits limit and stops)
I have no idea why it would reply with the voicemail number....

4.2.1 - broke VNC daemon solutions

Needed on 4.2.1 - a working VNC daemon so that phone/tab display can be exported ( typical VNC screen sharing ).
'onaips' from Git is broken on 4.2
'vncs' from this thread also broke on 4.2
Options dont seem that good to me. Could use an emulator and standard 'x11vnc' but, the emulator response ( SLOW ) prevents a meaningful app demo .
I thought that i could get 'onaips' running in mode=framebuffer where the libs for 'flinger' and 'gralloc' would not need to be rebuilt with ASOP source. It builds right from git without much trouble and runs OK , allowing client connections. However , it does not 'send' any framebuffers and the client is just a black screen that will push mouse events back to the server.
Anyone have a working VNC daemon on 4.2
wrong forums, needs to go in Q&A. youre not developing anything

Kodi \ FireTV and MAME - ARGHHHHH!!!!

Hi guys.
I am really hoping someone can help!
I simply cannot get Mame to launch a game when selected from within the Rom Collection Browser.
I have installed KODI 15 on my FIRE TV box - i have also "sideloaded" MAME4DROID (0.139u1) onto the box.
I have all my MAME ROMS on a NAS which i have added as a source within KODI, that bit appears fine (they can all be scraped but nothing actually happens, apart from a load of .NFO files get created - i think the maws.mameworld.info might be dead, but hey ho) and they show up within RCB
My problem is, when i first launch RCB for the first time, and run through the wizard, it never asks me WHERE my emulator is located - a EMULATOR PARAMS box comes up with a load of code, but im sure this code is wrong, and it doesnt let me POINT to the actual path of my actual MAME version (i.e MAME4DROID) is located, I beleive this is the reason why games arent launching, as although the games are appearing (from the NAS) - when i click on them, it just doesnt know how where or what to open them with.
Does anyone please have any ideas?
Many thanks all!
ManikM
I was being thick - it need RETROARCH to be installed - not MAME itself.
Sorted!

KiLL code for com.microntek.dvd and com.microntek.ntv

I have a rooted Android 4.4.4 device (Modell S07, rk3188, 1024x800, Prozessor: ARM [email protected],6GHz (x4), MCU MTCB-KGL-V2.55). With the tasker app and the overlays floating widget app I have created floating toggle widgets which allow me to kill the standard media player, the wavesink app for DAB+, the radio.de app and the standard radio app (com.microntek.radio) even when these apps are running in the background and the navigation app (iGO) is running on the screen. Most of the apps can be killed with the Taskkill app plugin for Tasker in root mode. But this doesn't work for the the standard radio app, the standard DVD player and the Digital TV app. For the standard radio app I have found somewhere the "killing" task code run shell "am broadcast -a com.microntek.finish --es class com.microntek.radio". This code actually stops the radio app and works fine. Now my question:
Can anyone of the experts please provide the equivalent code which will stop com.microntek.dvd respectively com.microntek.ntv. Thanks for help in advance!
lemesmoos said:
...For the standard radio app I have found somewhere the "killing" task code run shell "am broadcast -a com.microntek.finish --es class com.microntek.radio"...
Click to expand...
Click to collapse
Whow ... where do I find such codes? I've been looking for a way to kill the radio with Tasker. So far I have always called the radio again (if it ran in the background) and then I simulated on the upper right with Tasker a tap to terminate the radio. Then called up with Tasker PowerAmp. This is of course much more elegant! Thanks a lot for this.
Hi can tell how you managed to root it?? I've been searching it's rooting method for a month and did not find anything.. Do you know it's factory settings (found in settings menu) password??

Categories

Resources