Page 1 of 1

Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 12:00 pm
by Andy Parker

Is there a Windows 8 alternative to the "Appery" command for accessing screen based controls?

Im trying to port my Android/IOS app to Windows 8 phone.

regards

Andy


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 1:46 pm
by Kateryna Grynko

Hi Andy,

For Windows 8 you would need to create a separate Appery.io project (more create options/Windows 8 App).

This is because Windows 8 supports native applications on JS, and Appery.io creates such apps for it, without using Phonegap and jQuery.

But if you develop for Windows phone OS, you can use the same project as for Android and iOS.


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 1:50 pm
by Andy Parker

Thanks Katya,

thats what I have done, but I also copied all of my JS across from the previous project.

In that code I try to reference on screen controls, this is where I'm struggling.


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 2:34 pm
by Kateryna Grynko

Andy,

There are other components with other attributes. Do you have any specific question?


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 2:38 pm
by Andy Parker

yes, I have select objects, captions and buttons that I need to either get or set the text or the selected item.

I always used "appery('objectname').text() for example to get the caption text, I was wondering what was meant to be used in the Win8 environment?

I've tried looking for some documentation or code examples on the Appery site, but it seems that most of the docs discuss Android/IOS/HTML5 apps with phonegap.

If you know of any good links I'm happy to read up on this rather than waste your time on here :-)

regards

Andy


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 3:02 pm
by Kateryna Grynko

Andy,

You can use JavaScript to do this. For example, to get Button text run:predocument.getElementById("button_2").innerText/pre


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 3:21 pm
by Andy Parker

cool, thanks Katya, looks like I have a lot of coding to do :-)


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 3:22 pm
by Andy Parker

Do you know of any website that has a reference to things like buttons, caption text, select lists etc?

This would be an invaluable resource.

thanks again.


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 5:22 pm
by Maryna Brodina

Hello! For Win8 use WinJS (take a look here please http://msdn.microsoft.com/en-us/libra...). Regarding WinJS see menu on the left side.


Windows 8 Developement & "Appery" command

Posted: Thu Oct 31, 2013 9:07 pm
by Andy Parker

Great resource Maryna - many thanks !!