Posting IPhone GPS CoOrdinates To SQL?
Apr 8, 2010
Trying to pass variables from the javascript into my php script and into my SQL query so i can track the location of the iphone. So far i have...
<script type="text/javascript">
function getGPS() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showGPS, gpsError);
[Code].....
This gets the coordinates in javascript and the php runs and i get a new record in the database but it doesnt pass the variables from java to php. Anyone know a workaround to get the variables from the iphone to sql on a single page?
I want this to run in the background and refresh every now and then so i can track users location.
View 1 Replies
ADVERTISEMENT
Apr 2, 2010
i have to draw a line between to different coordinates which are going on google maps so for example :
[Code]...
the above coordinates are in xml format which, i later call in Java script functions and display them on the map as a simple pointers what i need is from one point of coordinates to another point of coordinates Java script would draw a line which would represent the direction from one coordinate to other .
View 2 Replies
View Related
Sep 28, 2011
I want to Create a simple scanner app for the iPhone so when someone scans a URL embedded in a QR code, it opens the browser and loads that URL. :thumbsup:
View 1 Replies
View Related
Jan 17, 2011
I'am having trouble making it work. I placed it in the head section, am I missing something or could the code just be crap? Here is the code i use. found on [URL]
<script type="text/javascript">{literal}
function iPhoneAlert() {
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.
match(/iPod/i))){
[Code]....
and on the <Body> I've put this <body onLoad="iPhoneAlert();">
View 2 Replies
View Related
May 18, 2011
Is there anyway to show scrollbar for textarea in iphone and ipad instead of using two fingered scrolling
View 1 Replies
View Related
May 19, 2009
First off, a quick THANK YOU for making cluetip! I'm using it and loving it but I have an issue with it under iPhone/ Mobile Safari. Basically, when I view a page with a desktop browser, cluetip activates on hover and does what I want. However, on the iPhone, cluetip displays whenever a link is tapped that would normally display the cluetip hover in a desktop browser. So, is there a way to fix this behavior in cluetip? If not, can I disable cluetip (or stop it from loading) when an iPhone requests the page?
View 1 Replies
View Related
Oct 4, 2010
What im trying to do is get the users location (from the iPhone) which I have working and store it in a MySQL database (semi works). My problem is that to get the location, you need to use javascript. So I thought of using Ajax to post that back to the server. I have very little knowledge in Javascript, and Ajax, so this has been a bit of a struggle. Iv tried to learn how to do it with a tutorial:
[Code]...
View 5 Replies
View Related
Jan 18, 2010
I have a simple form on my website which gives the user a instant-quote on our prices. The script doesnt work on the iPhone, which is something I would like it to do just in case someone tries it. Here is the Javascript:
[Code]....
View 4 Replies
View Related
Sep 21, 2010
I am currently developing a slideshow video comprise of images and video clips in a sequence on iPhone (with video tag, HTML5 & CSS3).Just for your record, on iPhone quicktime videos are played using a build-in player on a new page, and you have to click on a button "Done" to go back to your website when the video finished.I was be able to use JavaScript to make the video clips to auto play, however, when the video finished, the screen got stuck on the video player page and doesn't go back to my website, while the images continue to do transitions on the site page --> the sequence of the whole slideshow messed up. how to use JavaScript to close that damn iPhone video player page dynamically (so I can put it on the event "ended" of the video tag").
View 1 Replies
View Related
Jun 24, 2011
iPhone and more can automatically recognize phone numbers and make them an active link to click and initiate a call to that number. I can do this on many webpages, but not in myTinyTodo task list. Anyone know what might be preventing the phones from being able to recognize the number and make it active?
You can input a task on this page with a phone number and then view on your phone to see if it is active link or not.[URl]...
View 3 Replies
View Related
Apr 7, 2010
I want to include the iphone gps long and lat into my website to be added to a sql query.Gets GPS long and lat from iphone and pops it in a div:
Code:
<html>
<head>
<script type="text/javascript">
[code]....
I want this to work like a tracking system where it gets the gps long and lat from the iphone and then adds it to a sql table (id, user_id, long, lat). I have the code to get the long and lat but how do i get the script to add them to a sql query from java?Also how can i get the script to refresh every 15 mins to overwrite the last long and lat?
View 3 Replies
View Related
Oct 22, 2010
I'm trying to swap flash for an image when a user is on an ipod/ipad/iphone. This snippet works:
<script type="text/javascript">
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)))
{document.write ('you are an ipod')
[code]....
but when I enter in the content for non ipods (a javascript call) it trips up:
<script type="text/javascript">
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)))
{document.write ('you are an ipod')
[code]....
View 1 Replies
View Related
Jan 20, 2011
I'm looking for the best cross browser compatible swipe script for android, iphone and other touch phones. Has anyone used any of the available frameworks or have you used custom scripts? [code]...
View 1 Replies
View Related
Jul 23, 2005
How can I find out (using JavaScript) the x and y coordinates of a HTML
element, e.g. an image, an anchor, a div?
View 5 Replies
View Related
Feb 14, 2011
I am trying to get the X and Y coordinates to have a pop up form to use as reference, this is a shopping cart so the more items in the cart the further down the page the form needs to open,
i have this CSS:
Code:
#theFormDiv6 {
display:none;
position:absolute;
top:500px;
[Code]....
I am not real good at JS and I am trying to piece together things.
This works in IE but does not in Firefox, when I comment out the getMouseXY() call it works in firefox but obviously doesnt get the new Y value..
anyone know how to make this work in both IE and Firefox??
View 2 Replies
View Related
Nov 30, 2005
How can I get mouse coordinates and set them?
mean: When I click button1, my mouse places over button2.
View 1 Replies
View Related
Mar 6, 2005
I'm trying to build a simple image-map-creation tool for a web-based app I'm making. (User selects an image, then clicks on it to set image map areas; initially could be just RECTANGLE, later want CIRCLE and POLYGON.)
The quickest "solution" was to display the image with anchor tags, with the ISMAP option on. This causes the x/y coordinates to be displayed in the status bar, at the end of the URL. Sweet, but I'd like to be able to tell when the user clicks, and then grab those values. Then I can build a text string holding their selected area, etc. (It'd be great if I could show the selected area with a box or something, too, but that may require doing it in PHP, building images, etc.) Anyway, does anyone know how I can get the X/Y coordinates when the user clicks? Since it's in a form, can I do something with input types to get the values?
View 2 Replies
View Related
Jun 8, 2005
how to find the coodinates for a picture in a middle of the page for example with js? I need this because i have a js script that get the mouse coodinates (X,Y) for the page.I have to modify this script to work only at my picture area and to get me the coordinates for my picture not the coordinates for my hole page. Code:
View 5 Replies
View Related
Oct 20, 2010
do ya know an efficient way to get the coordinates of a pictures so that I can use them to create a map? It is a rectangle. Here is the code I set up for a page:
<HTML>
<HEAD>
<TITLE>Cyrus</TITLE>
</HEAD>
<BODY BGCOLOR=black>
<div align="center">
<table border="0"; cellspacing="0"; cellpadding="0">
[Code]..
View 26 Replies
View Related
Jul 11, 2010
I've got a image zoomer set up using a script located in shiftzoom.js. Basically, the XY coordinates of the mouse are shown in the bottom left of the image as the mouse moves. However, when I am zoomed right out the coordinates are limited to that of the image 'canvas' size (1024,768) and as soon as I zoom in, the coordinates of the mouse (which is in the same place) change until I am fully zoomed in and the coordinates are limited to the original image resolution in the corners. Hope that made sense... This is the relevant code in shiftzoom.js:
[Code]...
View 1 Replies
View Related
Mar 29, 2010
I have created some data(works php values no problems) and use it to fill some options. At the same time fill a javascript array from php input.Yeah it works on its own page.Problem when loaded into a div through ajax it doesn`t run javascript calls through page.
addToPriceArray($workingRoutesPrice[$i]);";
Code:
<?php
session_start();
require_once("CartClass.php");
[code]....
View 11 Replies
View Related
Jan 5, 2011
I have written a web page to create XML from user input. The user inputs a series of values, and these are turned into XML using javascript. The way I have done this is to load in a template XML file using an XMLHTTPrequest and append childNodes to it as required. Thus, what I end up with is a variable called "xmldoc" which is an XML document object. (If I do write(xmldoc) the answer I get is [object XMLDocument].)What I would like to do is to be able to save the thing as an xml file. To this end I have been trying to POST it to a php file that might do this, but to no avail; the php file does not seem to recognise it as an XML DOM object.
View 4 Replies
View Related
Nov 23, 2005
I have a simple problem: mark a list of defects
on an image.
I think the best way to do it is to select a single
deffect, then take two coordinates of coursor
form an image on a web page (first when user press
the button, and the second when he releases it).
Those two points are going to be send to the web
application (i.e. with AJAX) and saved in a database.
Later, I will use those points to render
the image with RMagic (drawing the lines and defects
list numbers on top of the image).
Any suggestions how to do it?
View 4 Replies
View Related
Jun 15, 2006
how would i get the distance and angle between 2 points on the screen.
For example:
what is the distance between (100,50) and (250,70)
what i really wanna do is see how far the current mouse position is
from a given object and what the angle is between them.
View 8 Replies
View Related
Jun 25, 2007
<form action="..." method="post">
<input type=image name="Image1"
src="..."/>
</form>
When I click on the image the form submitted to the server. As I can
see post data contains next additional values: Image1.x=121 and
Image1.y=64 These values are coordinates of clicked point relative to
image.
Can I get these values in onclick event handler (within the
beforeSubmit method)?
View 4 Replies
View Related
Apr 30, 2011
I have a grid 500 by 500 with 16 squares each 125 by 125. I can shuffle these images manually by setting the background-position in css. if the position is 0px, -125px how can I store those in an array and pull them in randomly? here is my code:
<html>
<head>
<title>shuffle tiles</title>
<script type="text/javascript">
function shuffle(){
//?????
}
[Code]...
View 4 Replies
View Related