doubletake
Posts: 0
Joined: Sat May 25, 2013 5:55 pm

request to modify/access the id property of a page or component

Appery.io generates its own id value for a component or page (e.g. #J_12 or #J_8). This makes it hard to use standard JQuery selector like $('#mypage') or $('#mylabel').text(), etc. I had to view page source to find out what id it was using so I could reference in the Javascript in the screenshot below.

We can change the name property, but not id. It would be nice if the name property would also be used as id. Or at least make the assigned id visible in the UI so we know.

Disclaimer: I'm new to appery.io, so there may be a different way. I'd just like to be able to use the id like I do in other JQM apps.

Thanks!
Don

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

request to modify/access the id property of a page or component

Hello! You can use component name. Please take a look here http://docs.appery.io/javascript-api/...

doubletake
Posts: 0
Joined: Sat May 25, 2013 5:55 pm

request to modify/access the id property of a page or component

Thank you Marina.

This is a nice feature, but my preference would be to stick with standard JQuery Mobile.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

request to modify/access the id property of a page or component

You can use code$('input[dsid="someName"]')/code record - it's the same as codeAppery("someName")/code
All the components have dsid equal to component name in editor.

Return to “Issues”