Hi!
I am searching for a solution to get the current position of a mobile device with the help of javascript. I dont want to install any extra software for this, it should be possible by just using Javascript. It would be nice to have access to the GPS position, but Cell ID or WLAN ID would also be nice.
I know there exists google gears and the geolocation API by W3, but these have to be downloaded and installed - or have to be implemented in the webbrowser, which is not the case for Internet explorer or opera.
So is there any possibility to achieve this with just javascript? Any ideas?
Thanks for input!
push......
no ideas? every hint can help!
as far as i'm aware, javascript only lives within the browser, so can only manipulate the DOM and has no access to the operating system.
JavaScript isn't capable of accessing anything outside the browser, unless if you have a plugin (Gears or GeoLocation API) that hosts the service to your script. For example if you use JavaScript you can manipulate the HTML (Dom Object) but you can't use AJaX, unless the browser hosts the Assync Library!
Both Google Gears and GeoLocation API (plus a hand full of other solutions) host a set of functions in the browser which can be accessed by JavaScript (new XMLHTTPObject() [for examle]).
Shortly: Without (a) the host you can't access any function outside the browser itself!
str0nz0 said:
Hi!
I am searching for a solution to get the current position of a mobile device with the help of javascript. I dont want to install any extra software for this, it should be possible by just using Javascript. It would be nice to have access to the GPS position, but Cell ID or WLAN ID would also be nice.
I know there exists google gears and the geolocation API by W3, but these have to be downloaded and installed - or have to be implemented in the webbrowser, which is not the case for Internet explorer or opera.
So is there any possibility to achieve this with just javascript? Any ideas?
Thanks for input!
Click to expand...
Click to collapse
Related
can anyone help.
is there another browser / IE add on that will handle java script better than the one in ppc2003 on the xda2 does, i need full implementation of java script to allow me to assess a number of sites i must use for work
any help aprechaited
thanks
henny
anyone ?
Think NetFront support it..
ftxpbrowser is amazing, but one drawback: doesn't support cookies
help
I want to log into a University site and access network resources.
I was able to log into the whole of the site using IE but when I got to the bit which uses Java Script displaying the files I got a blacnk script. The IT people have told me tat my problem is the Java Script.
Following on from you guys on the thrread I installed ftxPBrowser. I can't even log in to the University website using this. Does anyone know what the problem is and can anyone help me.
its all fine on the PC and I know I can log in with IE.
The service I am trying to access says
'they have java script but not the proper java engine, that is why they can't perform some functions.'
I don't know enough about modern programming methids to be able to know what I need. I have tried Opera to no avail.
I want to try Netfront but the trial doesn't support java at all and I don't want to pay and then be left with seomthing tat won't do the job - can anyone help me?
minimo
http://www.mozilla.org/projects/minimo/
Rudegar said:
minimo
http://www.mozilla.org/projects/minimo/
Click to expand...
Click to collapse
I have tried this thanks but I can't even log into the university library website on this one?
help
help - my unit is overheating since I downloaded the software
:shock:
if you go into memory and stop the program
then there is no way in the world that a installed program
which is not running should be able to cause anything like that
or you can softreset
if it still get hot it's pure chance
much like if your pc blow up while you are typing
a doc in word dont mean that word have a terrorist module
Rudegar said:
:shock:
if you go into memory and stop the program
then there is no way in the world that a installed program
which is not running should be able to cause anything like that
or you can softreset
if it still get hot it's pure chance
much like if your pc blow up while you are typing
a doc in word dont mean that word have a terrorist module
Click to expand...
Click to collapse
thanks - It was being very badly behaved yesterday!
With all the talk of AJAX at the moment, I've had a play with it in mobile IE. I wanted a local homepage that could load when I start IE and give me access to most of the services I use.
So from that homepage, I can get to:
Searching multiple search engines (Google, Wapedia, dictionary.com, etc)
My del.icio.us tags
My del.icio.us bookmarks tagged as 'mobilefavorites'
My favorite RSS feeds
And some standard "bookmarks"
I've also set it up so I can go to the full webpages or view them via Google's gwt.
I've attached a copy if anyone is interested (either to use it or just to see how it works).
To customise for your own RSS feeds, favorites and searches just edit "config.xml" - When you edit this, make sure it is valid XML (try loading it into IE to see if it displays OK - I usually forget to replace '&' with '&')
Martin
Martin
I'm working on a website that is very similar. It's not ajax yet, because i'm focusing on the lowest common denominator such as mobile phones running browsers like netfront or ones that are to slow to really run javascript code at a reasonable rate.
the site is at http://wampad.com. I'm also working on a uk centric version but i haven't released that yet.
The only thing it haven't added yet is rss feeds, but i'm working on it. The tag I use for del.icio.us bookmarks is mtag.
I'd really like to here what you think.
There's a nice right up at, http://wapreview.com/blog/?p=100
I am pretty sure that PIE doesnt support the xmlhttp control.... This could be why you have commented out methods like getXML and added comments like "This doesnt work in PIE"
Thanks gurok, I'd forgotten I'd left those comments it.
PIE doe support the xmlhttp control (It is actually used in the code to retrieve the RSS feeds) - what it doesn't seem to support is basic authentication with the xmlhttp control.
Thanks
Martin
This might not be completely Wizard related, but thats what I have so I'll shoot. I was wondering if anyone had any idea on where to start looking for an ap to view Video Feeds from Security Cameras that are normally accessed via a Java Applet in IE. Like is there possibly a Java app that can display a feed that would be seerate of PIE? Maybe a program that can be changed or slightly modified?
The provider/manufacturer of the equipment doesn't offer anything. Their newer equipment uses ActiveX Controls rather than Java so maybe an upgrade could help? Any ideas/help would be appreciated.
The Company has a Demo of the Java Applet that is used to view the feeds. Same as we use for the bar but we only have 9 feeds. Viewing one feed at a time would be perfectly fine and probaly desired on the smaller screen.
See the demo here...
http://208.50.31.214/ Java VM Page. Login for the Demo is admin : admin
Any Ideas??
Cliffs: Can anyone think of a way to view the feeds in the demo above on a PPC? Java VM related...
ANy good places to go for Java related resources for the WM5? I would like to at least play around with it. Maybe try to tweak and work up a different solution. Any help would be appreciated.
pookrat said:
Maybe try to tweak and work up a different solution. Any help would be appreciated.
Click to expand...
Click to collapse
I'd just hold out for a real browser than can display your java-based feed. Never fear, one's coming...
See: Skyfire.
Take a look: http://webcam-holmes.en.softonic.com/pocket
If your desired feed is actually a "Webcam" then this might be the ticket for you...
SkyFire looks promising. Can't wait to get my hands on a copy. Maybe a Beta a little early?
pookrat said:
Maybe a Beta a little early?
Click to expand...
Click to collapse
Good luck. I think they've passed them all out already, and the licenses are utterly non-transferable, so any beta copies that have been shared out have been unusable by anyone but the authorized recipient.
There's a thread on this board (somewhere, you search...I don't want to) that includes a copy. Your mileage may vary, but I don't think anyone's been able to use it yet.
One last note of caution: Skyfire's license agreement clearly states that they can, if they wish, capture all data transferred to and from (this includes keystrokes, BTW) websites. Privacy on their browser is not reality. This means, for example, if your camera feed was providing illicit or illegal images (like a voyeur cam in a public restroom, for example), they can, and presumably will, point the finger at you. This may change in the future, but hey, they've gotta protect themselves, if they're acting as a go-between for the web and dirty, untrustworthy end-users.
pookrat said:
This might not be completely Wizard related, but thats what I have so I'll shoot. I was wondering if anyone had any idea on where to start looking for an ap to view Video Feeds from Security Cameras that are normally accessed via a Java Applet in IE. Like is there possibly a Java app that can display a feed that would be seerate of PIE? Maybe a program that can be changed or slightly modified?
The provider/manufacturer of the equipment doesn't offer anything. Their newer equipment uses ActiveX Controls rather than Java so maybe an upgrade could help? Any ideas/help would be appreciated.
The Company has a Demo of the Java Applet that is used to view the feeds. Same as we use for the bar but we only have 9 feeds. Viewing one feed at a time would be perfectly fine and probaly desired on the smaller screen.
See the demo here...
http://208.50.31.214/ Java VM Page. Login for the Demo is admin : admin
Any Ideas??
Cliffs: Can anyone think of a way to view the feeds in the demo above on a PPC? Java VM related...
Click to expand...
Click to collapse
Most Java VM's for Windows Mobile are not robust enough to handle Java webcams. At least that's been my experience. I have a Toshiba IK-WB11A webcam in my house. It also uses Java and I've tried PIE, Opera, Minimo, and other WM browsers - none will work.
The only work around I'm aware of is to deconstruct the Java Script to see where / how the webcam is streaming the "video". I was able to do that by loading up and opening all the HTML pages that my webcam served to my PC browser (Firefox > View > Page Source). Typically the video stream is in fact just a JPG that's refreshed every fraction of a second. Once you identify the JPG path / name you can open it directly. Or if you're ambitious you could create your own simple HTML page, add the JPG image, and add some code to auto-refresh in PIE. Something like this code should do the trick...
<meta http-equiv="refresh" content="10;url=http://path/to/my/image/page.html"/>
Ok I am looking for the same thing mate and doing a little search for web goodies to work on the phone . If anybody has any ideas or software let us know.
http://www.getjar.com/products/11112/QSpyCam
http://www.getjar.com/products/13204/LiveStream
wyzepro said:
http://www.getjar.com/products/11112/QSpyCam
Click to expand...
Click to collapse
Nice link I will test it out .
Hi Guys!
I'd like to create a webserver on wm6 so I can contact to Localhost (127.0.0.1) to retrieve Phone info.
Purpose is a Flash app which uses GPS and Camera (Those or not accessable with actionscript)
I want the server to put GPS and Camera information on the localhost.
I know Freestyl (aka WhoNeedsAnIphone) uses a http server to pass some device variables to their flash app. But the project stopt and no code was released.
For Nokia Phone there's a Tool called KuneriLite to acces phone info with Flash.
I Also found Depeche But I don't really understand it....
Any Help/Code/App is welcome.
Jeff
Hi, take a look here: http://goahead.com/products/webserver/download.aspx
I played around with it some time ago.
It has a lot of features like cgi and so on.
Nice Solution....
It Works but im more into C# then C++..
Is there a C# solution for this?
All help is welcome
Depending on how many of the HTTP verbs you really need to support (ie, do you just want to respond to a HTTP get for a certain url?) you could knock up a simple HTTP server in C# in an hour or two tops.
There's tonnes of examples of simple HTTP servers in C# on the web...
Sounds good,
But i'm only able to find C# webservers for PC, not for windows mobile...
The only thing the server has to do is respond from the code, so i dont have to load actual ASP/HTML pages...
Just a listener on Localhost, if i request localhost/req?GetVar=Cam
I can do something like WriteRespone("Cam=" + SomeSysVar)
Here you go
Attached is a C# simple http server application that I knocked up based on the MSDN sample at http://msdn.microsoft.com/en-us/library/bb397809.aspx.
I've not tested it on a phone.
The sample is for the compact framework.
Should work without any hassle.
Complete source included and the simplest parsing possible (currently responds to a http GET request for / with a chunk of HTML with "1" as the body).
Good luck, have fun.
(Oh and I just noticed there's a confusingly commented out line that says "write response" in the source, remove / ignore it.)
You can test the windows app from a web browser by pointing at http://localhost:83
edit:
apologies, i meant to close another thread.
Thnx Alot
Found this solution: http://bansky.net/blog/2007/10/compact-web-server-in-compact-framework/
It Worked for me ;-)
That looks like a good general purpose solution
My example is tailored towards specific custom processing over HTTP rather than serving of files -> in the style of a RESTful API.
From the look of it you can do a similar thing with the Compact Web server by hooking up what the author labels a "Special file type" and adding your custom handling code in there.
[edit]
That said, you could actually edit my example to File.Open whatever was passed as a parameter off the disk and stream that back to the client, providing a more standard HTTP server without configuration.
Nice simple solution u've got!
I will try to get it to work the way i want,
lookin' @ the amount of code it should be a lot faster then my previous solution.
Just noticed a very small bug. I'm refactoring the code to be a little better engineered. I'll upload a new sample shortly (you may have already managed to make use of it).
Right, I've re-engineered the code a little.
While the example now isn't contained in a single file, the source is now far more logical, readable and maintainable.
You'll notice the code that actually deals with the request is now hidden away in the HttpVerbs namespace.
Basically if you look at the file HttpGet.cs there's a good working example of how to implement whatever behaviour you like based off of a HTTP Get request to the server.
Code's pretty decent now, slightly more ready for prime time than previously, generally more type-safe and doesn't rely on string parsing all over the place.
Enjoy.
Binary?
Can you please put here binary (exe file) for Windows Mobile 6.1?
Thanks
Hey guys, I've had an Alpine for a while now, and after moving around devices i've found myself using it again, primarily due to the fact it's now mounted to my wrist (if anyone here is a fallout fan, you know what i mean )
I've always thought of developing software for it, but never really got round to it, or had the time to learn any form of programming.
However, I do have a lot of knowledge in HTML, PHP and Java, and I want to try and come up with something browser based for my Alpine, and possibly even yours!
So, I have Opera Mini 5 set as my default browser, but that doesn't set it as default when opening local .html files sadly, therefore i'm going to try stick to the default Internet Explorer, therefore if anybody know's the spec's for the version of Internet Explorer built into the device, what languages and scripts it supports, ways to get it to display more like a real application (any ways to remove the bottom/top bar, getting it to display fullscreen) or any other details, and if anybody can contribute feel free to share ideas or code here.
--On a side note, i'm starting a website specifically for Alpine software/roms/support, so if you own one, you might want to check it out, i need contributers, link should be in my signature.
Thanks in advance
It will also be useful to know the display size for internet explorer on the Alpine, as in the pixels the browser window displays
NTpspE, use UcWeb. It can be set as default browser.
I like opera, it's fast and keeps my bookmarks synchronised with my computer, but that's not what this thread is about. I'm wanting to know the specs for the default internet explorer in order to see if i can develop any useful localised web apps for the apline.