Search found 26 matches

Go to advanced search

by Todd Penny
Sat May 16, 2015 5:48 pm
Forum: Issues
Topic: How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work
Replies: 6
Views: 1301
 
Jump to post

How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work

Sure. Here's the link. http://appery.io/app/mobile-frame?src... To reproduce, just start the app and login the first time using the default login credentials and also slide the toggle to 'on' to remember password. The restart the app and it should freeze straight away. You can check the onload event...
by Todd Penny
Sat May 16, 2015 12:49 pm
Forum: Issues
Topic: How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work
Replies: 6
Views: 1301
 
Jump to post

How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work

I tried this and it did not work. I have attached a screen shot showing the error.

Uncaught TypeError: Apperyio(...).val(...).flipswitch is not a function

Image

by Todd Penny
Fri May 15, 2015 8:43 pm
Forum: Issues
Topic: How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work
Replies: 6
Views: 1301
 
Jump to post

How can I set the state of a Toggle UI component to 'on' using Javascript? The example in the docs does not seem to work

Here's my code: if ( remlogin === true){ //If remember login was set last time Apperyio("saveLoginToggle").val("on"); Apperyio("saveLoginToggle").flipswitch("refresh"); ... } Where saveLoginToggle is the name of my toggle componment with values of 'on' and 'off'
by Todd Penny
Fri May 15, 2015 5:12 pm
Forum: Issues
Topic: How do I get the 'value' for the List 'element counter' when the list is dynamically created from the results of a REST
Replies: 2
Views: 657
 
Jump to post

How do I get the 'value' for the List 'element counter' when the list is dynamically created from the results of a REST

Hi, I have a List which is populated with the results from a REST service. I am populating both the label and the counter value. I need to capture the counter value associated with the list item the user clicks and save it to local storage so it can be used by the next page. I have tried this approa...
by Todd Penny
Tue May 05, 2015 3:50 pm
Forum: Issues
Topic: JavaScript Local Storage String Array - Can only access '0' element
Replies: 10
Views: 2525
 
Jump to post

JavaScript Local Storage String Array - Can only access '0' element

Thanks. How do I reference the 'data' when it's the result of a REST call and I don't have a name reference for it?

by Todd Penny
Mon May 04, 2015 5:18 pm
Forum: Issues
Topic: How do I set the URL for the Image UI component using Javascript? The URLs will be based on the results of a REST call.
Replies: 1
Views: 571
 
Jump to post

How do I set the URL for the Image UI component using Javascript? The URLs will be based on the results of a REST call.

How do you set the image UI component to an image referenced by URL using JavaScript? I am trying this and it's not working. I tried single/double quotes on the URL. Appery('gocodesImage').attr('src', ' http://www.gocodes.com/wp-content/upl... '); gocodesImage - UI image component name http://www.go...
by Todd Penny
Mon May 04, 2015 2:59 am
Forum: Issues
Topic: How to debug cause of 'TypeError: value.replace is not a function' error message in console for REST service call
Replies: 8
Views: 1792
 
Jump to post

How to debug cause of 'TypeError: value.replace is not a function' error message in console for REST service call

I have it working now. I had to create a test harness and invoke the restservice method from JS manually so I could inspect each of the parms and find the problem.

Go to advanced search