I want to implement highlight functionality for my website and mobile app. I want this functionality work same as medium app. So that if user highlight some text from mobile application then it will automatically display on the website.
And if user highlight some text from the website then it will automatically display on the mobile app.
Previously I used rangy highlighter JavaScript library for both website and mobile app, But it gives different range from both side. So I am unable to sync the highlight data.
For example:
For mobile I get the following range
type:textContent|1362$1370$1$highlight$
For Website I get the following range
type:textContent|40576$40584$3$highlight$
Can anyone give me any idea, how can I sync my iOS app's highlighted data with website?
Related
I am developing a samsung gear watchface in tizen studio with javascript
I need to get some user data in order to make the watchface work properly (the birthdate in this case) but I dont know how, because if I add a select field in the main html watchface page, it dows not work.
I have also tried with a button that user click and I show a javascript alert prompt but also the button click does not work
One Possibility is It's working, but the placement is outside the watchface View Port.
Run As > Tizen Web Simulator Application
To Check the UI and placement of your input component.
Additional:
Watchfaces show/display information like Time, Power, Sensor Data, Weather, etc. There could also be some Shortcuts (links) to Apps/Features for User.
But, The Watchfaces aren't meant to receive Input text / Dropdowns / CheckLists from User.
I'm building a web application for use with mobile devices using PhoneGap. iOS and Android show context menus with options to copy/paste, search, share, etc. when text is selected. I'd like to add an item to these menus (e.g. "add a note here"). Is there a way to do this with JS or PhoneGap?
I'm developing an HTML application that uses Apache Cordova to comunicate with iOS. Client requirement is to use the printer functionality to print specific docs. To do so, I've created a custom Cordova plugin that allows to print HTML pages.
The implementation I've followed is similar to Cordova Printer Plugin. But during the testing I've encountered a problem: show the popup that displays the available printers in a specific position. In particular, I have a HTML button that when tapped displays that popup. According to UIPrintInteractionController Class Reference there are three main tasks that enable the presentation of that functionality.
– presentAnimated:completionHandler:
– presentFromBarButtonItem:animated:completionHandler:
– presentFromRect:inView:animated:completionHandler:
My first test was to use presentAnimated:completionHandler:. But this method allows to display the popup from the center of the window frame. My goal, instead, is to display the popup from the button that has been tapped. Obviously this in iOS can be achieved without difficulties but here I have an HTML element within a web view and Cordova is the glue between my HTML app and the operative system. So, how can I achieve this?
Note Within my project I'm using jQuery and jQuery Mobile.
I'm building a web application (C#) for a customer.
Now I'm trying to add a page for mobile. I want that the customer will be able to scan a barcode (1D barcode or 2D barcode) and the code will be written in a text field (<input>) on the screen for further operations. It must work on android or iphone, and better - on both.
I tried to use JS codes which I can take a picture with the camera in the mobile device and the script reads the barcode in the picture - but I didn't find something good enough.
this one didn't work with large images from the camera, and this one couldn't read some of my barcodes and also couldn't read large images.
I tried to find a way that the customer will click on a button to open a barcode-scanner-application on the device (I have an android mobile device) - and the barcode will be written on an input on the screen, but I can't find if it's possible and how to do it.
I don't want to use phonegap - I need it as a web application, not a native app.
I am trying to integrate a webpage into an iPad application. Something like the Final Hour app where the app is a native app using slideshows. some of the slideshow pages have a small part that is loaded from a website.
The only way I would have known this was when I didn't have internet access the small area where the website loads into said there was no internet connection.
How can I implement something like this? I understand the website aspect but I don't understand what iOS API they use to setup some sort of canvas or frame to hold the website.
Here is an image of the app. The webpage would be loaded into the "blue" box outline.
You are indeed looking for a UIWebView. You need to build the controls yourself if you want your users to navigate in the website. If you just want to show one page, with no Back or Reload button, then you can use it as is.
Note that you should try to make it clear to your users that your app might not work properly if no Internet connection is available.