Questions tagged [enyo]

An open-source JavaScript framework for building single-page applications, based on code that powered HP webOS 3.0 for the HP TouchPad device, but now supporting a wide range of desktop and mobile browsers. The core principles are object-orientation, encapsulation of view and functionality, and code reuse.

An open-source JavaScript framework for building single-page applications, based on code that powered HP webOS 3.0 for the HP TouchPad device, but now supporting a wide range of desktop and mobile browsers. The core principles are object-orientation, encapsulation of view and functionality, and code reuse. More details at http://enyojs.com.

196 questions
1
vote
4 answers

ENYOJS: Set focus on default element on page render

Moonstone Spotlight. How do I set focus to an element (button etc) after render ? I've tried nameOfElement.focus() and that does not seem to work. rendered : function(){ this.inherited(arguments); var buttonreference =…
Fabii
  • 3,820
  • 14
  • 51
  • 92
1
vote
3 answers

Trigger a button click on a moon.Button or moon.IconButton with jQuery/Javascript directly

I know the click action can be triggered by assigning ontap a specific function like so: { kind: "moon.Button",name :"search_button", content : "Search" , ontap : "searchAction", classes: "menu-button-style" } . . . searchAction : function(){ …
Fabii
  • 3,820
  • 14
  • 51
  • 92
1
vote
1 answer

Combining Enyo 2.4 and D3 JS on the same page

I can render my D3 SVG just fine. It is rendered into its own div on my page. I needed to combine some functionality from Enyo 2.4 and I can render that as well but it overwrites my D3 graph. I am rendering the Enyo code into it's own div. Can…
jetstreamin
  • 407
  • 5
  • 19
1
vote
1 answer

AJAX Call using Enyo Framework

I am trying to make an ajax call using the enyo framework and I am running headlong in to a problem. The error message I am getting is 0. That's it just a 0. I made sure my link to the json file was correct and I built this jsfiddle to test it…
jetstreamin
  • 407
  • 5
  • 19
1
vote
1 answer

How to clear localStorage when updating an app in webOS?

I am setting a value in localStorage while running the app. The working of this app is based on the value being set in localStorage. Exiting the app or rebooting the device does not cause any change in the data being stored in localStorage. This…
indira
  • 6,569
  • 18
  • 65
  • 80
1
vote
1 answer

How can I get the second response from service with callback method?

I am currently sending following luna-send command to detect sms database change: luna-send -n 2 -a my_app luna://com.palm.db/find '{"query":{"from":"com.palm.smsmessage:1", "where":[{"prop":"folder","op":"=","val":"inbox}]},"watch":true The first…
oser
  • 37
  • 4
1
vote
2 answers

ViewController and Enyo

There is a new MVC mechanism built in Enyo 2.3pre but there is absolutely now docs on it. The question is how can I bind specific controller to my view? I have a new kind based on enyo.Control e.g. and I have a controller based on kind:…
mico
  • 709
  • 5
  • 18
1
vote
1 answer

Getting parameters from applicationManager

I am basically executing the following luna-send command and trying to get those parameters from applicationManager: luna-send -n 1 palm://com.palm.power/timeout/set '{"wakeup":true,…
oser
  • 37
  • 4
1
vote
1 answer

Converting D3 Blocks to Enyo Component

I am basically trying to encapsulate the functionality from rkirsling's blocks inside an Enyo object so that I can reuse it. I started by removing global variables and switching them out for published attributes. I am able to get the balls to show,…
Huy
  • 10,806
  • 13
  • 55
  • 99
1
vote
1 answer

Enyo onbeforeunload Event

I'm trying to attach a listener for onbeforeunload in my app but it doesn't seem to be caught by enyo.Signals. According to the Documentation: Within the Enyo framework itself, DOM events that have no node targets are broadcast as signals. These…
tjordan
  • 104
  • 11
1
vote
1 answer

Does the Ripple simulator support Tizen Enyo projects?

We are creating a Tizen Enyo app and would like to test on the Apache Ripple simulator in the browser. I do not see any support for the Tizen or Enyo platforms in Ripple. Does the Ripple simulator support Tizen Enyo projects?
Larry Aasen
  • 394
  • 3
  • 12
1
vote
1 answer

How to open a browser to show the content of a file?

I trying to open a txt document in a enyo application for mobile and I didn't found anything, so can I open that file on the mobile browser or inside the application using javascript or other way? Thanks!
DTondin
  • 147
  • 1
  • 2
  • 9
1
vote
2 answers

I need to create a chart in my enyo project. Which properties are used to do this?

I'm new on enyo, so I don't have yet a full knowledge in this framework. I've been looking for a property of enyo that I be able to make a chart of bars. But the only things I found in the web, was about using the "enyo.Control", what i think that…
DTondin
  • 147
  • 1
  • 2
  • 9
1
vote
2 answers

How to know 'kind' of an enyo component?

I have a component like tweetEnyo, created with enyo script. And based on its kind, i want to perform some action. Is there a way to find the kind of a component created in enyo at runtime?
sufyan.shoaib
  • 1,117
  • 9
  • 19
1
vote
1 answer

Why is my canvas drawing area so smal?

I am creating an enyo Control based on a canvas. It should capture mouse or finger events, and draw them onto it. However when I draw onto that canvas it draws only into a smaller part of it. Look at that jsfiddle as it contains all relevant…
Angelo.Hannes
  • 1,729
  • 1
  • 18
  • 46