NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sibuya

Pages: 1 2 3 [4] 5
46
Hi Walter,

You have to create "images" folder under the output folder configured in mBuild and put your images and some images that mBuild don't capture like _busy.gif. I prefer to copy "images" under "web" folder and add all custom images that you used in your project. Your image path will be like "images/myimage.png". Sometimes path needs a slash at the beginning like "/images/myimage.png". I saw it with _busy.gif.

In config.xml file you have only to declare icons and splash screens for the plugins to use them from res folder.

After building and creation of APK you could open with a 7zip for example to see what files are inside just to check it and see how an Android APK is builded.

Regards,

Marcos

47
Hi Walter,

Sorry for delay but it took some time...

Using mBuild for display Splash Screen it's not working as synchronization with server afer NT9.06 too.

Splash Screen worked when I compile locally using Cordova command line tool with Node.js. Attached are the files that I used.

You should modify config.xml to point corretly to all icon and splashscreen images because any tool warns you that you have missed or incorrect files declared in config.xml.

When building with mBuild or locally with command line these icon and images are included in res/drawable folders in APK file to be used by Android as a resource. So any image should be there when Application is disconnected from server.

Hope that it helps you.

Cheers,

Marcos



48
Hi Walter,

Could you explain a little bit more?

You a trying to build a mobile app or you already built it?

Cheers,

Marcos

49
Web Server - Ask For Help / Re: Capturing JavaScript Event
« on: April 08, 2016, 04:05:07 AM »
Hi Bruce!

Thank you for explanations on Webinar #100!

Cheers,

Marcos

50
Web Server - Ask For Help / Re: Post messages to the client
« on: April 08, 2016, 04:04:23 AM »
Hi Bruce,

Thank you for explanations on Webinar #100!

Cheers,

Marcos

51
Web Server - Ask For Help / Re: Post messages to the client
« on: April 07, 2016, 04:41:17 AM »
Hi Bruce,

As I wrote in another post now I could find a way to filter using others SessionValues as a flag to catch the events in processlink. When all variables arrives I test if all SessionValues flags are true then I change their values to not to enter again and can process it one time.

Because this applet that I'm using I end up mixing JavaScript and NT.

The process that I'm trying to do is:

1. Call an applet that return values
2. With these values call an external WebService with json (including an ActiveX)
3. Catch response in json and get a value that will be used as a login user identifier
4. Open LoginForm or do this all above with LoginForm opened with login user primed and proceed normally

What was done:

1. Used SecWin but as I don't know if it is interfering I decided to remove while resolving the above.
2. Tried to create a new thread that can process the above but end up inserting directly in WebHandler because in Start method I can't pass p_web. I'm concerning about performance and not to load WebHandler processing things.
3. Call the above from LoginForm opened but I coudn't find a way to get it work yet

This application is very critical and should treat thousand of users.

As I read in others posts It's difficult to define how many users NT can handle.

Thank you.

Marcos

52
Web Server - Ask For Help / Re: Capturing JavaScript Event
« on: April 07, 2016, 04:16:18 AM »
Hi Bruce,

I got those SessionValues (and StoredValue) synchronized using other SessionValues as flags that I created to test if all variables has arrived. It worked. I put this code in WebHandler that is receiving events because they don't reach LoginForm. I put traces on the very beginning of LoginForm to confirm it.

The same thread that have the correct SessionValues calls a Clarion Window procedure (window hidden and because I have to use an ActiveX component) that have to call an external WebService using NetWebClient passing a json structure with these SessionValues. But randomly any SessionValue is truncated or cleared when is used from inside this Clarion Window procedure.

Is there any restriction?

Thank you.

Marcos

53
Web Server - Ask For Help / Capturing JavaScript Event
« on: April 04, 2016, 03:47:43 PM »
Hi,

I'm using an applet that reads a Digital Certificate and is working fine in LoginForm. I used two SetSessionValue (JavaScript from netweb.js) that sends two variables as a two GET messages to the server. But I could not found a way to catch them in LoginForm.

In WebHandler I can get it these two variables by GetValue and Store in SessionVariables. But LoginForm does not receive them until I call the applet again.

Sometimes these variables are sent to the server by two different threads because their generation does not occurs at the same time.

Could anyone help me where I can put a code to catch these variables in LoginForm?

Thank you,

Marcos

54
Web Server - Ask For Help / Re: Post messages to the client
« on: April 04, 2016, 08:23:42 AM »
Hi Bruce and Jari,

Posting using JavaScript:

p_web.Script('window.alert("Your message")')

will broke anything?

I'm sending a message to user from inside WebHandler as a result from processinglink but I have some troubles trying to catch only one event. Seems that processinglink is called multiple times in the same thread an in other thread based on GetValue that came in GET message for example.

Cheers,

Marcos

55
Web Server - Ask For Help / Re: NetWebServerWorker
« on: March 29, 2016, 10:19:17 AM »
Hi Urayoan,

The book enlighted me a lot but I still have some difficulties.

For example. I can see in WebServer log a GET message with SetSessionValue an a Value (string in Base64 correct form) followed by a POST with this value with all "+" replaced by spaces. So when trying to get this value with GetValue() I got with these spaces in Base64 string. Is that correct?

Thank you.

Cheers,

Marcos


56
Web Server - Ask For Help / NetWebServerWorker
« on: March 28, 2016, 04:34:24 PM »
Hi,

Sorry for my ignorance, I'm new in NT. But I would like to know where I find documentation about NetWebServerWorker.

I would like to know for example what is the difference between SetSessionValue and SSV and some other methods like Script and so on.

Thank you.

Cheers,

Marcos

57
Web Server - Ask For Help / Re: RFID reading
« on: March 28, 2016, 06:36:54 AM »
Hi Jari,

Take a look at:

http://phonegap.com/2011/09/26/building-an-nfc-enabled-android-application-with-phonegap/

This will let you build an application with Phonegap and after you could include in you NT App application. Look that you have to add .jar this is because JavaScript calls a Java to access the reader.

If you have problems you could try building locally. After some modifications I built it locally and successfully generate an APK and execute in device.

It'll be handy if you have some rfid tags to read. Try it with some examples that you could install from Google Play and test it if you can read them before you go on. You can read Mifare cards for example.

Cheers,

Marcos



58
Web Server - Ask For Help / Re: RFID reading
« on: March 26, 2016, 10:07:58 AM »
Hi Jari,

What kind of reader are you using?

Cheers,

Marcos

59
Web Server - Ask For Help / NT9.06 call applet
« on: March 23, 2016, 03:24:37 PM »
Hi,

Is there anyone that worked with an applet? Is that possible?

I have a jsp page and need to turn into NT page to consume the applet inside with variables and return value. This is a sample of a jsp page:

<%@page session="false" %>
<script language="javascript">

   function doInit() {
      // do something
   }
   function myResponse(){
      // do something
      return true;
   }
</script>

<html>
   <head>
   </head>
        <body>
                  <h3>Test</h3>
       </body>
      <form method="post" action="doit" name="myForm" onsubmit="return(myResponse());">
         <input type="hidden" name="action" value="ProcessResponse">
         <input type="hidden" name="response" value="">
         <input type="submit" value="Click me" class=button name="doit2">
         <input type="button" onClick="doInit()" value="Init" class=button name="init">
      </form>

<%
    String version = (String)application.getAttribute("version");
%>

<applet id="oApplet" archive="my-applet.jar" code="classes/my.class" width="1" height="1">
    <param name="aaa" value="<%=version%>">
</applet>

</body>
</html>


Jar file has a path classes and my.class is inside.

I put "javascript" in a file.js, installed in script folder and declared in WebServer. Buttons I can create them inside a WebForm to perform apropriate actions. I donn't know how to declare variable parameters inside XHTML body. The Applet I'm trying to put in PageHeader WebForm, XHTML.

NT loads jar file but don't find my.class inside. I tried many variations but none worked.

Could anyone help me?

Thank you.

Cheers,

Marcos

60
Web Server - Ask For Help / NT 9.06 + Secwin 6.36 + Clarion 8
« on: March 21, 2016, 11:16:15 AM »
HI,

I ran Web51 example and when login, logout and login again the set users access rights list is lost.

I have to reset the program to get it back.

It happens with other app that I developed using the same tools and versions.

Could anyone helpe me?

Thank you.

Best regards.

Pages: 1 2 3 [4] 5