Dialog PhoneGap Plugin - Forum

Forum Navigation
You need to log in to create posts and topics.

Dialog PhoneGap Plugin

This plugin provides access to some native dialog UI elements and it is easy to use.

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

@asmat

Thank you for the plugin, tutorial app and the video.

a) who is the author of this plugin ? ... perhaps the plugin can be made to pass 2 separate parameters (instead of a single json object with 2 key/value pairs)

b) if that is not possible, as suggested in my previous email, you might try and have your receiving JavaScript subroutine (test4 - which can receive objects as parameters) to ...

- stringify the received json parameter

- then invoke your NeoScript subroutine (test3) ... $scope.test3(yourStringifiedVariableHere);

- and in test3, you recreate the object by doing a ParseJSON on the parameter string received

 

A variation of this work around would be to ...

- NOT do the stringify command; instead do this ... $scope.test3(results.buttonIndex, results.input1);

- and in test3, setup 2 parameters (number and string) to receive the values passed from test4

 

I can not verify suggestions made in (b) because none of the buttons in your app respond to mouse clicks on my laptop (Windows 10) ... I am guessing that this App is designed to work on Mobile devices (perhaps with PhoneGap code)

Thanks so much @Gaev

Hi @gaev, thank you very much.
@asmat is the plugin author and it will only work in PhoneGap projects (hence the "pg" prefix in comands)
From now on, "pg" will be PhoneGap only commands and "nw" NWjs only commands. "neo" should be used on any platform.

CDY@44 and asmat have reacted to this post.
CDY@44asmat

asmat is the plugin author and it will only work in PhoneGap projects (hence the "pg" prefix in comands)

I really should stop responding to posts after my bed time :-))

So many clues that this was to do with PhoneGap related stuff ... and i missed them all.

 

In any case, through my investigations, I learned a lot about subroutine parameters and JavaScript subroutines calling/invoking NeoScript subroutines.