Integrating with a WebServer

I read this http://www.cocos2d-x.org/boards/10/topics/655?r=657#message-657 and still have a few questions/would like to know if it applies to my situation.

What I am looking to do is

  1. open up a layer inside my cocos2d-x app
  2. User enters Username and Password
  3. Webserver sends back some data
  4. app takes the data, continues to the next scene

Use CCTextFieldTTF if you only need to input username & password.
Please read the source in tests/TextInputTest/ for as the sample.

I actually still don’t understand how to do this.

Ideally, I have a webpage on my webserver.

I want the app to open up the web page in a layer.

Listen for data.

Store data and pass it to next page.

Close web page, go to next scene

Oh, in this situation, you had to implement your wrapper of web view in java layer, than invoke it via JNI.