facebook

no connect to server http://bene.antswebcolombia.com?

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #353324 Reply

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset=”utf-8″ />
    <meta name=”viewport”
    content=”width=device-width, initial-scale=1.0, maximum-scale=1.0″>
    <meta name=”description”
    content=”A single-page template generated by MyEclipse Mobile Tools” />

    <title>Single-Page Application</title>

    <link rel=”stylesheet” href=”./css/jquery.mobile-1.4.3.css” />

    <script type=”text/javascript” src=”./js/jquery-2.1.1.js”></script>
    <script type=”text/javascript” src=”js/index.js”></script>
    <script type=”text/javascript” src=”./js/jquery.mobile-1.4.3.js”></script>

    <script type=”text/javascript” src=”cordova.js”></script>

    <link rel=”stylesheet” href=”css/index.css” />
    </head>

    <script>
    function ajaxcargarpremios(){

    var xmlhttp;

    if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
    else{// code for IE6, IE5
    xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”);
    }

    xmlhttp.onreadystatechange=function(){
    //document.getElementById(“modelo”).options.length = 0;
    document.getElementById(“premiomayor”).innerHTML=xmlhttp.responseText;
    //document.getElementById(“premiomayor”).innerHTML=”21345″;
    }

    xmlhttp.open(“POST”,”http://bene.antswebcolombia.com/datos.php&#8221;,true);
    xmlhttp.setRequestHeader(“Content-type”,”application/x-www-form-urlencoded”);
    //xmlhttp.send(“q=modelo;”+str);
    xmlhttp.send(“q=modelo;”);
    }
    </script>

    <body>
    <div data-role=”page”>
    <div data-role=”header” data-theme=”a”>
    <h1>Loteria del Valle</h1>
    </div>
    <!– /header –>

    <div data-role=”content” data-theme=”a”>
    <!–p>Loteria del Valle.</p–>
    <hr>
    Object:
    <div>
    <object data=”http://bene.antswebcolombia.com/datos.php&#8221;
    data=”text/html” width=”100%” height=”50px”></object>
    </div>
    <hr>
    Ajax:
    <button onclick=”ajaxcargarpremios();”>Ver</button>
    <div id=”premiomayor” style=”border-style: solid; border-color: #000000; width: 100px; height:20px;”></div>
    <hr>
    Iframe:
    <iframe src=”http://bene.antswebcolombia.com/datos.php&#8221; width=”100%” height=”50px”></iframe>
    <canvas width=”” height=”300″></canvas>
    </div>
    <!– /content –>

    <div data-role=”footer” data-position=”fixed” data-theme=”a”>
    <h4>AntsWeb</h4>
    </div>
    <!– /footer –>
    </div>
    <!– /page –>
    </body>
    </html>

    #353335 Reply

    Hi,

    I ran your code and it seems to be connecting fine, it returned

    Object: 7896 Serie 02

    There maybe something else blocking it from your side.

    #353340 Reply

    If the simulator works fine, I have the trial. But when I generate the apk and run on my phone, do not open it.

    #353341 Reply

    I made a test with MobiOne Studio, and I worked very well … generate the apk, install it and shows me the info. I’ll have to have something in MyEclipse, or will that is trial?

    #353342 Reply

    Hi,

    I just built and installed on my Nexus 5, got Object 3391 Serie 28 this time, so it does seem like its working fine.

    To create this these are the steps I took:
    1. Create a new phone gap application using the JQuery Mobile Single-Page Application (very important)
    2. Copy your html code from this post
    3. Open the index.html file in the MyEclipse project
    3. Select ALL code and delete
    4. Paste in your code from this post
    5. Build the app and install it on the device

    Another suggestion is to open your created app in a debugger, this is really the only way to see what is missing or where the errors are. Check out GapDebug for debugging, its free and one of the best options:
    https://www.genuitec.com/products/gapdebug/
    If you can send me some screen shots from GapDebug I can probably tell you more what may be going wrong.

    Thanks,

    #353346 Reply

    I installed a Samsung Galaxy S3, can that be? or maybe I have a trial version of the application? question, the trial version generates an APK all requirements?

    #353348 Reply

    I install the GapDebug, the system installs the apk on my phone, but does not run the debugger …

    #353358 Reply

    Hi,

    You are fine using the trial version, it will create a valid apk file.

    Please make sure you meet the requirements on this page: https://www.genuitec.com/products/gapdebug/learning-center/configuration/

    Device os version (4.4 or higher)
    Device debugging enabled
    APK built in debugging mode, not release mode (if in release mode the app will not show up in GapDebug)

    #353611 Reply

    Hello ….
    I want to buy the software, but I have a doubt …

    1. I need to develop a product where the user opens the session, and will not automatically close.
    2. Receive alerts as does whats app, or email.
    3. By purchasing, you veneficios have, for manuals and technical support for development, while learning to use it?

    Thank You.

    #353612 Reply

    Hi,

    “1. I need to develop a product where the user opens the session, and will not automatically close. ”
    A: Im not sure what you mean by this. Could you expand on the concept a bit?

    2. Receive alerts as does whats app, or email.
    A: You can enable push notifications for mobile apps using various plugins. Unless you have your own push server or want to develop one, I suggest a service like PushWoosh.com. Its fairly easy to enable using their tutorial.

    3. By purchasing, you veneficios have, for manuals and technical support for development, while learning to use it?
    A: Here is a link to our Learning Center for mobile development.
    https://www.genuitec.com/products/myeclipse/learning-center/mobile/
    We will be constantly adding to that as well.

    Thanks,

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: no connect to server http://bene.antswebcolombia.com?

You must be logged in to post in the forum log in