Tagged Questions
-6
votes
0answers
25 views
Regular expression pattern JavaScript to iOS [on hold]
Can you help me to translate the following regex email pattern to iOS
var emailPattern = ...
0
votes
0answers
14 views
Fixing the issue of the IOS keyboard disrupting fixed elemtns
I have a fixed header on my page and also a ckeditor text editor.
I am making a responsive web style app CMS. The ckeditor on a mobile device takes up the whole screen with only the fixed header ...
0
votes
0answers
18 views
Iphone Image fit Issue in Canvas
I am working on HTML5 application for iPhone. Whenever I choose file from take photo option and place it in canvas. It gets squeezed towards top. I am unable to find out the reason.
I have asked this ...
0
votes
1answer
14 views
Swipe gesture not swiping container off
I am trying to swipe a container and it's children elements off the screen. However when I run the following code, the child element I swipe goes off the screen as opposed to both elements.
// this ...
0
votes
0answers
8 views
iOS HTML5 video poster AFTER .play()?
How can I make the poster visible in Safari/iOS after playing the video?
This HTML code snippet works very well in Safari/Mac OS X and Chrome/Android KitKat, but it doesn't work in Safari/iOS:
...
0
votes
1answer
13 views
Can i write a single plugin in phonegap-cordova which can be integrated in all native and hybrid application as third party tool?
I am new to mobile development.I have recent business requirement in
which i have to write in app plugin code for my client for their
already exiting application in ios and android. Client ...
0
votes
0answers
25 views
phonegap 3.1.0 , IOS 7.1.2 - window.localStorage is reset when reloading app
I am using phonegap 3.1.0 with IOS 7.1.2
When I re-lunch my app - my window.localStorage parameters - reset.
I am using this code in my application:
window.localStorage.setItem("kuku", value).
...
1
vote
1answer
29 views
Absolute path to html pages inside app [on hold]
I am making app for iOS using Cordova 3.5 and JQueryMobile i created a side panel in javascript that include in very html page when page will create and these pages are in different folders so i links ...
0
votes
1answer
25 views
Swift webview: How to call correctly swift code from javascript?
I'm trying to make my javascript interact with swift code but unfortunately i didn't succeed.
For the moment, i just tried to change the headers colors and display a message like you will see in the ...
0
votes
0answers
11 views
Give a Zurb's Foundation 5 Top-Bar iOS Frosted Glass Effect
I am looking to create a top-bar using Zurb's Foundation 5 with an iOS Style Frosted Glass effect as it's background. Only issue is that I am not sure how to go about it with regards to foundation as ...
0
votes
0answers
26 views
Call Objective C code from Javascript in Rubymotion
Purpose: I want to call objective C code from a Javascript in iOS Webview in RubyMotion
I am loading a index.html file in iOS web View. And it has one button
<button type='button' ...
0
votes
0answers
21 views
strange click behaviour in ios safari
i have a strange ios safari issue - i can reproduce the problem in phonegap and the ios browser too:
when you click outside the area of an A tag is has the same effect as actually clicking the tag.
...
0
votes
2answers
22 views
Setting a new property to PFObject
I have a Parse.com cloud function that sends back a PFObject. In some cases I need to send back values for keys that don't exist in the PFObject. Is that possible?
This is what I tried:
var test = ...
0
votes
1answer
14 views
JS Touch Events: Y Coordinates greater than Window Height
I'm trying to learn more about touch events, specifically testing in iOS 7. I have forked my work-in-progress to demonstrate the issue I am running into:
(pen no longer available)
The window height ...
0
votes
0answers
11 views
In iOS lastModifiedDate using phone gap is not working
I'm doing an iOS app using phonegap, in that in need lastModified date for my processing. When in use the function,it returns me the device date(current/today's date)
code i used for your reference
...
0
votes
0answers
15 views
ios 8 Homescreen webapp, turning iPad off and on stops javascript
I have a fullscreen HTML5 web app for iPads and have just installed IOS 8 to try it out and it all works perfectly until you power the iPad off and back on. As soon as the web app relaunches ...
0
votes
1answer
20 views
cordova angularjs and console.log in xCode
This one drives me a little crazy... :)
I'm building a Cordova-app for iOS, using angularjs for the app-logic.
Now, when the app receives a device-ready message, console.log works from that point ...
0
votes
0answers
80 views
window.close() doesn't work on iOS 8 GM seed
I am trying to open new tab via Javascript using window.open(), then using window.close() to close, but it seems window.close() doesn't work in safari( iOS 8 GM seed). Here is the code:
A.html:
...
0
votes
1answer
29 views
Cordova plugins not work with Ionic
I am building out an Ionic app in Angular and ave never been able to get plugins to work.
As an example, I have tried using the statusbar plugin as described here:
...
0
votes
1answer
26 views
loading html the right way to get stringByEvaluatingJavaScriptFromString working
I'm trying to get stringByEvaluatingJavaScriptFromString to work.
I'm sure i load the html file wrong I just dont see what i do wrong.
-(void)viewDidLoad
{
// Load the index.html file as a string ...
0
votes
1answer
11 views
Mobile Safari: JS event for jump to last scroll position on refresh
Is there a Javascript event that I can hook into that fires when the page is refreshed, and Safari 'jumps' back to the scroll position you were at?
It's very frustrating, as the scroll event only ...
0
votes
0answers
31 views
Error: TypeError: Object has no method 'set'
I am using a cloud code function for my iOS app. I am calling the cloud function with this code...
var moment = require("moment");
Parse.Cloud.define("registerActivity", function(request, response) ...
0
votes
0answers
10 views
Auto-advance form fields on iOS and Android
I have a rails app that has a form which uses three input fields for the telephone number. I want to auto-advance the focus to the next input field when the maximum number of digits is entered. I have ...
0
votes
2answers
27 views
Long button press on iOS (Javascript)
Is it possible to make a button be able to have a long button press on iOS? I have searched all over and not found any solutions for this problem. At first if you long press a button it will try to ...
1
vote
1answer
15 views
can't get writing text in html text box in Webview of iOS
I have an external page which I call in webview in iOS app. the page has modal popup for the survey in which user need to input text. once the popup opens and tap the textbox, keyboard appears but the ...
0
votes
0answers
26 views
.Load() in iphone opening full screen video, play(), pause() not working Phonegap
I am trying to load videos dynamically with pagination in iOS app. Initially when page is loading everything seems to be okay. But, when do change source from javascript and load the video element. ...
0
votes
1answer
38 views
How to view JavaScript console on Android (and iOS)?
I am creating a purely browser based app - HTML and JavaScript.
I do not have an Android IDE installed (nor one for iOS) - and would prefer not to have to install one and perform remote debugging.
...
0
votes
0answers
7 views
PhoneGap FileReader/readAsDataURL Not Triggering Callbacks
I am using PhoneGap Build to build an iOS v7.1+ application and using weinre to debug. I am using the media-capture plugin and file API to capture a video in an attempt get its base64 representation. ...
1
vote
0answers
8 views
iOs - Geolocation, no cordova_plugin.js file is generated when the plugin is installed
I'm having problem (as many people) to avoid the duplication of the alert asking for permissione to locate the phone.
Reading this post ...
0
votes
0answers
5 views
galleriya js how to link image
hi i want to add link for galleriya js slider
<?php foreach($albumImageResult As $aIndex=>$albumImage)
{?>
<div>
...
1
vote
1answer
18 views
iOS textarea stops working after scroll
I've got a strange problem.
For some reason when I tap into my textarea and then start to scroll, then want to type into the textarea it does not work.
Any ideas what the problem could be?
Edit
...
0
votes
0answers
33 views
iOS detect when a textarea loses focus
How can I detect when a textarea loses focus on an iOS unit?
My problem:
When a user taps the textarea I want to resize certain elements on the page - to make up for the keyboard the flaps up. When ...
0
votes
3answers
44 views
Click on a select html element
I've got a Problem. I have a Select Option in HTML
<div id="eilig">
<select id="eiligselect" data-role="slider">
<option value="2" selected="selected">n. ...
0
votes
1answer
14 views
Images are not rendered until after scrolling stops on iOS (PhoneGap)
I am working on a PhoneGap web app for iOS.
I have an implemented an infinite list, where as you scroll down the page, new elements are loaded from the server and added to the bottom of the page.
...
0
votes
1answer
33 views
heroku node.js, socket.io 0.9.16 - ERR_CONNECTION_REFUSED
just tried to move my local node server to heroku and have since run in to lots of trouble, wouldn't mind some help. Basically I have to use socket.io 0.9.x because >= 1.0.0 wont work with ...
0
votes
1answer
24 views
jQuery animation on negative margin - unexpected results
Project Outline
I am building a web page with a slide out menu, which works as expected and the display stays the way I expect it would during the animations to slide the menu in/out.
This is ...
0
votes
0answers
29 views
Handling Touch start?
i want to make the image move when touch start on image !
i tried but it doesn't work with me so please help me
and i want a hover effect when the computer is open any helppp
i am trying to make a ...
0
votes
0answers
22 views
phonegap splash screen doesn't hide iOS
I'm doing a phonegap app for iOS and the app doesn't hide the splash screen.
This is the code for hide the splash screen:
this.loadDivs(function() {
if(navigator.splashscreen != undefined) ...
0
votes
0answers
29 views
LocalStorage in iOS 7 (Mobile Safari)
I've done quite a bit of googling, and I can't find any straight answers on how reliable localstorage is supposed to be. After storing some data from an HTML5 page, leaving the iPad idle for about an ...
-1
votes
0answers
18 views
Issues with seeking shortly after changing source of HTML5 video element
I'm attempting to use HTML5 to simulate a more robust multimedia player which loads ads in the background and swaps between video and ads as required.
The first challenge I ran into was that most ...
1
vote
1answer
24 views
iOS 7 Like Page Transitons for jQuery Mobile
Does anyone know of transitions for jQuery Mobile that look like the native iOS 7 slide transitions (and have the capability of being swiped back)?
The standard "slide" transition is close, but does ...
2
votes
0answers
23 views
iOS HTML5 Audio Duration showing “0”
I am having an issue getting the HTML5 Audio duration to show up in iOS. Instead of showing the duration it shows "0". The issue occurs in both Chrome and Safari on iOS but it works fine in all ...
0
votes
0answers
15 views
UIwebview listen to javascript events
I know that there are a lot of answers available in this context but none of them fits in the situation for me.
The HTML file that I am working on is a SPA. Now the problem is that the links created ...
0
votes
1answer
18 views
Why does iOS fail to render html5 canvas drawing after resize?
I have a HTML5 Canvas object, which I resize using Javascript. I then draw on it.
On iOS, the drawing doesn't show unless I delay the drawing with setTimeout.
So this code shows nothing...
...
0
votes
0answers
9 views
Touch hover on iOS, issue revealing content
I found these flip cards on codepen - http://andymcfee.com/2012/08/24/css3-flip-cards/ - which work really well. I was able to get the card to flip round on IE11 on a Windows Touch laptop by adding ...
0
votes
1answer
26 views
JavaScript on mobile
iOS has the JavaScriptCore engine - developed and maintained by Apple, officially endorsed and included into the SDK by them since iOS 7.
What are the for official, built-in or otherwise 'most ...
0
votes
0answers
15 views
How inject javascript in web view?
I have webView with loaded url, need to inject javascript code in there.
javascript: (function(){
var a = document.createElement('script');
a.type='text/javascript';
...
0
votes
0answers
16 views
Mobile website for iOS: deeplink to native FB share
Is it possible to deeplink into the Facebook app on iOS from a mobile website to open a share dialog with a predefined URL and message? I couldn't find this in the Facebook Developer manuals, but I ...
0
votes
1answer
31 views
Polymer/platform.js polyfill addEventListener null in iOS device
On Polymer's demo page, everything works fine, on my page, it's broken.
Choking at this line:
var isSafari = nav.userAgent.match('Safari') && !nav.userAgent.match('Chrome');
if ...
0
votes
1answer
24 views
Window.location not working in IPAD
I have a <a> inside a div <outerdiv> like this
<div id="outerdiv">
<a href="javascript:function(params)"></a>
</div>
on click of outerdiv I trigger anchor inside ...