Detect And Prompt IPhone Visitors?
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
ADVERTISEMENT
Jul 23, 2005
Does anyone know the best way to detect and track a visitors screen resolution. I know the javascript to detect the users resolution but I am a bit confused on the best way to track and save this. Should I save it to a database or is it easier to save it to a text file?
View 8 Replies
View Related
Feb 1, 2011
We all know AC_OETags.js.URL like: [URL]How to make flash detection in variable with valu true or false if it is (not) detected to use in PHP applications?
View 5 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
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
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 28, 2006
Is there a simple way to log IP's without CGI? I need to log the IP's of the visitors to a website I run. I used to have a CGI script but there's no CGI on the server I'm using
now.
View 16 Replies
View Related
Dec 29, 2005
i want to create a counter how i do that with javascript, but i mean counter who count all the visitors. Hos i do that?
View 1 Replies
View Related
May 28, 2003
how to implement Visitors Counter on a .html page using JavaSript. I do not want to use any predefined visitors counters controls.
View 1 Replies
View Related
Feb 14, 2009
Can Javascript be used to detect a certain url and then "not" write some html according to that url and also detect something on the page and "then" display some html?.
Example: I'm working on a volusion site that uses asp. There's basically only one page that's changed dynamically. I would like to display some html when and only if the cart has any items in it. But also not to show up on the check-out pages.
The page dynamically displays "Your cart has 1 item in it..." when the visitors puts something in their cart.
So could javascript detect when this is displayed then write some html and then also detect if the url is showing the cart and then not show the html?
View 24 Replies
View Related
Jan 21, 2009
I am just starting to understand JAVA Script a little bit to the point where I am able to modify scripts. Thing is now I can't find anything similar to what I need to modify
I have a page which can be found in google which is nice. But people can find a lot of sub-pages as well which is nice from a PR point of view. Nevertheless I don't want people to jump in the middle. I want them all to start on index.hmtl and nowhere else. So is it possible to have all visitors who click on a search result for example in google to be redirected to index.html ? Maybe referrer based redirect?
View 4 Replies
View Related
Feb 11, 2009
we wanted to know if it is possible to redirect a user to a selected page based on their location? Our interest is only in our country but want to redirect based on which state they live in. Town or suburb is not relevant.
View 2 Replies
View Related
Apr 20, 2009
I'm running a test on my site for the mcafee secure logo, such that the mcafee logo will be shown to some visitors, and we track conversion rates with and without the logo. Naturally, mcafee have to keep track of the user vir the whole session, through to any 'thank you for buying' page. The code you place on the site is just an image, which includes in the url a reference to your domain.
The tech guy I spoke to suggested that the tracking happens via a cookie. But can this be done, when no script has been called from their server? The headers returned with the image show Content-Type: image/gif.
So basically I'm asking can cookies be set this way? If not then all I can see is that they're tracking urls only, which will be far from reliable.
View 2 Replies
View Related
Aug 7, 2000
Does anyone know of any good perl or java scripts that allow you to redirect visitors based on their screen resolution?? Code:
View 2 Replies
View Related
Jun 8, 2009
In some articles on my site I'll be talking about money and I would really like to be able to find out where a visitor is from and target my dialogue to whatever currency they use. E.g. "It is possible to earn 15 pounds/dollars/euros" depending on the readers country.
View 6 Replies
View Related
Mar 9, 2010
I'm trying to limit the people that visit my site to a specific region, and I thought that the Google Geolocation API might help me do this.
[Code]...
But for some reason I can't get this to work, I'm thinking something is wrong with the position object, but not sure.
View 2 Replies
View Related
Apr 10, 2010
I have setting some cookies to track visitors to my site. I have my pages in folder music and in sub folders. I can access my site by typing: [url] So the domain will be: [url] and the path: /sara/music/
But the broblem is that other cookies are attached to my cookieby going to [url] or any link in it.
Is the problem from setting the path? If not how can I filter my cookie so i can just display my cookies only, I use one function to display all the cookies.
View 6 Replies
View Related
Jan 7, 2007
On many pages like Yahoo or similar, if we try to save the page by File>Save many of items like images or JavaScripts does not get saved on computer how is this achieved.
View 1 Replies
View Related