Posts by DecSoft

Show threads by DecSoft
3341 posts found, page 74 of 223

DecSoft (In thread: Javascript objects)

No problem, Ryan!


DecSoft (In thread: Javascript objects)

Hello Ryan,

That is (between other things) what you can see in the referred tutorial. If you need to assign a value to an AB variable from Javascript, you can use something like this:

Once that the "MyVariable" AB variable have the expected value.


DecSoft (In thread: Javascript objects)

Hello Ryan,

I am not sure if can understand... for that we have the StartJS and the EndJS actions: all the code inside that actions are considered Javascript code, so, we can use... Javascript code... to do whatever we need...


DecSoft (In thread: Javascript objects)

Hello Ryan,

Yes; the code between the StartJS and the EndJS actions is pure Javascript code. Take a look at this help tutorial about how to access AB controls and variables from pure Javascript code.


DecSoft (In thread: Insert Database Not Working)

No problem at all! Glad to know that you finally catch the problem :-)


DecSoft (In thread: Insert Database Not Working)

Hello Danny,

No problem! (sorry if I appear rude, that's not my intention at all!) When you write your posts here in this forum, you use some "p" HTML tags to define paragraphs. Ok, just in the same way use the "code" HTML tag, and place inside that HTML code tags the code that you wanted. Look here for more information about the "code" tag.


DecSoft (In thread: Insert Database Not Working)

Hello Danny,

Please, please, use the HTML code tag when post code... in other case I must do it for you! About your question, certainly, the code that you shown appear correct, so, the point is what happen... for that reason I told you to use the Firefox Developer Console... after you made the HTTP call using your AB code, something must happen... the request must end... successfully or not... may you can see some other error, etc.


DecSoft (In thread: How to display a web content)

You're welcome Danny!


DecSoft (In thread: Insert Database Not Working)

Hello Danny,

Sorry, I see now your latest post. If the script works in an "alone" way, there is no reason to work calling it from AB, if you provide to the script the right arguments, of course. But, if something is wrong, if some argument is missing, then the script must provide the right response, so the client side (the AB app) can know what happen and what to do.

But remember: there is no differences between a call to the script "alone" and a call to the script "from AB"... in both cases we are talking about HTTP calls, that must include the right arguments, etc. If the AB calling to the script don't work... then something is wrong and you must investigate what happen.


DecSoft (In thread: Insert Database Not Working)

Hello Danny,

Please, use the "code" HTML tag when you post code or console outputs, etc. About your last question, in fact it's not important if the script is called outside of AB or not, that is, the script expect certain arguments (comming from the POST input), and therefore they do their work. That is, except if you setup one, talking about this specific script, we no need to call it from AB in order to put it working.

But maybe the above is not what matter here... what matter here is that you can / must debug the script, and to do this you can call to the script using AB or another tool: probably it's better to call it using AB, so you are not only debugging the server script, but also the client side. But it's completely up to you how you debug the script. What I recommend is that you use a browser like Firefox with the Console developer opened, that is, launch the app (from AB) in Firefox or other browser.


DecSoft (In thread: How to display a web content)

Hello Danny,

We can talking here about two different things. You can try to put the URL inside an IFrame control, so you really see the external website inside an app view. This approach can be taken with caution, since the external website can disallow to be placed inside an IFrame control, or may they don't appear like we can expect.

The other way is to place a button or any other control and use the "OpenWindow" action to open the URL in another browser or "webview". If your target platform include some of the Apache Cordova supported, you can check the "Browser" plugin in App Options -> Cordova -> Plugins, so the "OpenWindow" action open the URL in an "in app browser" or in the system browser if you like (see the OpenWindow action help).

One thing to be noted is that we can't just use an HTML link in order to open the URL, because this cause that the user go out of the app scope, and, if they back to the app, what happen is that the app is started again. So we need to catch this kind of links in order to use the "OpenWindow" action, like I refer above.

P.S. For Cordova platforms like Android, in my honest opinion, the best is to use the "OpenWindow" action with the "_system" argument. Remember that the Cordova "Browser" plugin must be checked in the app options. Doing this the URL is opened in the system's browser, the preferred by the user to see web pages: I think it's better than using the "in app browser" option, even when this can be useful in some scenarios, of course.


DecSoft (In thread: Insert Database Not Working)

Hello Danny,

May can be difficult to help in this case, even when we are happy to do it when possible. Taking a look there is no syntax errors in the script, so, they must work, at least in order to see what happen. Since you are using the stuff provided by the Database app sample, look at the "Initialization.php" script, and, change the below lines:

... by the below lines:

Doing that we are ready to receive any possible PHP error. But that's what we can do... debug the HTTP call to see what happen, place some "echo" in the script that can help us to see what happen, in few words: debug the script...

Check that the database connection is OK, look for the HTTP call response (is the Error event of the HTTP client fired?). Do it in a brower like Firefox with the Console Developer open: this offer to us lot of information about the HTTP call, what code response we get, what response text, etc.

Please, try the above, and, post here what happen, if you get an specific error message, etc.


DecSoft (In thread: Install the Cordova Network plugin)

You're welcome, Ryan!


DecSoft (In thread: Install the Cordova Network plugin)

Hello Ryan,

Look at the App Options -> Cordova -> Plugins. There are various plugins that can be installed just by checking the checkbox that you can see, one of them is the Network plugin for Cordova.


DecSoft (In thread: Installing a Cordova plugin)

No problem Ryan! Please, take a look at the samples... because there are various samples that uses Cordova plugins... look at the app's options, in particular at the app's Cordova options: some of them are related with the Cordova plugin or can be used to install and configure it, for example. Just ask if you have any questions about!

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.