Monaca Onsen UI Discord Chat Github Repo

onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

  • @munsterlander thank you very helpful so ive started using the ide. am developing an app for a business but i dony=t know how much to charge. how much would you chasrge to develop an app that share pictures, search databases, listen radio, watch videos, send sms and and offer a cms feature for the admin. i want a rough cost. like whats the cost over 1000 to 30000 usd or below that? give me a rough cost please i have to suggest it at a meeting tomorrow

  • @ricardogaynor Wow! Thats a huge app. Are you doing back-end development as well? Are you having to setup the server environment as well? Also, what about support and implementation? Future code upgrades?

    EDIT: Individually, the requested items are pretty simple to implement, but I would assume that somehow it needs to all be integrated. Email me at with more details and I will respond with what I think it would cost as I don’t feel the forums are the best place for this.

  • @munsterlander thanks i sent you the mail just a while ago my mail address is

  • <script>

    var latitude = pos.coords.latitude;
    var longitude = pos.coords.longitude;
    var longitude1 = longitude;
    var latitude1 = latitude;
    var username = $(’#username’).val();
    var password = $(’#password’).val();
    var reportdetail = $(’#reportdetail’).val();

    // alert(latitude);
    // alert (latitude);
    $("#location").html(‘Not Available’);
    var username = $(’#username’).val(’’);
    var password = $(’#password’).val(’’);
    var reportdetail = $(’#reportdetail’).val(’’);




  • <?php
    $con = new mysqli(“localhost”, “root”, “”, “pls”);
    if ($con){
    echo “connection successful”;
    }else {
    echo “connection isn’t successful”;
    if (isset ($_POST[‘longitude’]) && isset($_POST[‘latitude’])){
    $longitude = filter_input(INPUT_POST, ‘longitude’);
    $latitude = filter_input(INPUT_POST, ‘latitude’);

    $insert = mysqli_query($con, “INSERT INTO geolocation VALUES (’$latitude’, ‘$longitude’, ‘’)”);
    if ($insert){
    echo “data inserted successful”;
    echo $lat.’<br>’.$long;
    }else if (!$insert){
    echo “data wasnt inserted successfully”;

  • @ricardogaynor

    You will definitely want to edit your posts so the code shows properly (just select all the code and then click the </> button), but I know what you are wanting to do. Your problem is this:

    $longitude = filter_input(INPUT_POST, ‘longitude’);
    $latitude = filter_input(INPUT_POST, ‘latitude’);

    This should be:

    $longitude = filter_input(INPUT_POST, $_POST[‘longitude’]);
    $latitude = filter_input(INPUT_POST, $_POST[‘latitude’]);

    EDIT: To also strengthen your PHP, you should be using some other methods. Learn more about that here:


    I prefer mysqli, but that is just me as PDO has some great features.

  • i am using straight mysqli as you see but why would this geolocation post successfully and inserted into a database abd dont do the same when it is compile, i am wondering if the phonegap webview that wrap our app to make it look native implement a feature to restrict user from doing this am jus suggestion but am gonna try that

  • i’ve always using this method to filter form for alot of apps and websites but when i try use it with feolocation it dont work on the phone

  • Might want to check your cross domain policy as well.

  • yea but cordova dont restrict cross domain because i use it to post data to online serve without modifying the origin permisson access something like that

  • but it only happen with geolocation am wondering why. i even try to join the variable together before posting it and then use the explode function to seperate it to put it into the db but dont work on the target device