- This topic has 9 replies, 2 voices, and was last updated 10 years, 5 months ago by
Brandon Batie.
-
AuthorPosts
-
Andres VelascoEmptyMember<!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”,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”
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” 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>January 8, 2015 at 8:28 am #353335
Brandon BatieMemberHi,
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.
January 8, 2015 at 10:04 am #353340
Andres VelascoEmptyMemberIf the simulator works fine, I have the trial. But when I generate the apk and run on my phone, do not open it.
January 8, 2015 at 10:11 am #353341
Andres VelascoEmptyMemberI 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?
January 8, 2015 at 11:09 am #353342
Brandon BatieMemberHi,
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 deviceAnother 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,
January 8, 2015 at 7:36 pm #353346
Andres VelascoEmptyMemberI 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?
January 8, 2015 at 8:57 pm #353348
Andres VelascoEmptyMemberI install the GapDebug, the system installs the apk on my phone, but does not run the debugger …
January 9, 2015 at 9:04 am #353358
Brandon BatieMemberHi,
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)January 30, 2015 at 9:10 am #353611
Andres VelascoEmptyMemberHello ….
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.
January 30, 2015 at 9:17 am #353612
Brandon BatieMemberHi,
“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,
-
AuthorPosts