Hey all -
I'm putting together an HTML article. There's a full-page gallery that, when swiped up and down, changes the image. I'd like to also set it so that if the user swipes to the right or left, we would "navto" the previous or next article. I've seen examples of using "navto://" with a button, but haven't seen how to invoke it in a javascript function (I've read that "window.open" doesn't work). Can anyone help?
I hope it helps you.
http://forums.adobe.com/message/4233931#4233931
I created goto index button in Edge as above and it worked well.
shimoawazu
Edge build javascript file with navto:,
Tap the Button, move to Index page.
I hope this codes helps you.
/***********************
* Adobe Edge Composition Actions
*
* Edit this file with caution, being careful to preserve
* function signatures and comments starting with 'Edge' to maintain the
* ability to interact with these actions from within Adobe Edge
*
***********************/
(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol; // aliases for commonly used Edge classes
//Edge symbol: 'stage'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 0, function(sym, e) {
var myElementVar = sym.lookupSelector('Text2');
$(myElementVar).append($('<a style="display:block;width:100%;height:100%;" href="navto://00_Index" />'));
var myElementVar = sym.lookupSelector('RoundRect');
$(myElementVar).append($('<a style="display:block;width:100%;height:100%;" href="navto://00_Index" />'));
});
//Edge binding end
})("stage");
//Edge symbol end:'stage'
})(jQuery, AdobeEdge, "EDGE-3548826");
Hi mdc1313!
You can do that with the YUI (Yahoo User Interface). There is a simulate function.
http://yuilibrary.com/yui/docs/api/classes/Event.html#method_simulate
Here is a short example:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script src="http://yui.yahooapis.com/3.4.1/build/yui/yui-min.js"></script>
</head>
<body>
<a href="javascript:alert('simulated click');" id="button">Click here!</a>
<script>
YUI().use('node-event-simulate', 'node', function (Y) {
Y.one('#button').simulate('click');
});
</script>
</body>
</html>
North America
Europe, Middle East and Africa
Asia Pacific