언어 설정

Menu
Sites
Language
Is it possible to implement the "share" button like native app?

Is it possible to implement the "share" button like native app in web app? Click the "share" button, it will popup a diaglog that listed all available ways to share something.

Thanks

 

 

Edited by: li xianjing on 04 10월, 2013

Responses

3 댓글
konduri sai swathi

Hi,

Try the below code

HTML :

<a href="#popup_div" data-role="button" data-rel="popupwindow">Share</a>
<div id="popup_div" class="vertical" data-role="popupwindow"
    			data-show-arrow="true" data-style="center" data-overlay-theme="a"
				class="ui-content" data-position-to="window">
				<ul data-role="listview">
					<li><a onclick="openEmail();">Email</a></li>
					<li><a onclick="openMessages();">Message</a></li>
					<li><a onclick="openBluetooth();">Bluetooth</a></li>
				</ul>
</div>

Using the above code you can show popup. Now for each list item you have to write functionality to add the content you want to share using email, messages or bluetooth. Using application control this can be achieved.

 

Alexander AVSukhov

Hello,

You may use AppControl for this:

var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/share", null, null, null);

    tizen.application.launchAppControl(
             appControl,
             null,
             function() {console.log("launch application control succeed"); },
             function(e) {console.log("launch application control failed. reason: " + e.message); },
             null );

li xianjing

Very Good, thank you.