Navigation

    Monaca & Onsen UI
    • Register
    • Login
    • Search
    • Tags
    • Users
    • Blog
    • Playground
    1. Home
    2. ricardogaynor
    R
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    ricardogaynor

    @ricardogaynor

    1
    Reputation
    29
    Posts
    1095
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ricardogaynor Follow

    Posts made by ricardogaynor

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

      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

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      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

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      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

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      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

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      <?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”;
      }
      }
      ?>

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      <script>

      $(document).ready(function(){
      $(’#buttonx’).click(function(){
      navigator.geolocation.getCurrentPosition(function(pos){
      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);
      $.ajax({
      type:‘POST’,
      url:‘http://192.168.1.6/pls/locationpg.php’,
      data:‘latitude=’+latitude+’&clongitude=’+longitude+’&username1=’+username+’&password1=’+password+’&reportdetail1=’+reportdetail,
      success:function(msg){
      if(msg){
      $("#location").html(msg);
      alert(longitude);
      alert(latitude);
      }else{
      $("#location").html(‘Not Available’);
      }
      var username = $(’#username’).val(’’);
      var password = $(’#password’).val(’’);
      var reportdetail = $(’#reportdetail’).val(’’);
      }

      }).error(function(){
          $('#feedback1').text("");
      }).complete(function(){
          $('#feedback2').text("");
      }).success(function(){
          $('#feedback3').text("");
      });
      

      });
      });
      });

      </script>

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      @munsterlander thanks i sent you the mail just a while ago my mail address is ricardogaynorgaynor@gmail.com

      posted in Onsen UI
      R
      ricardogaynor
    • RE: 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

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      Yea thanks so i used php and mysql to run the backend of the app. do you have any suggestion for a faster backend for mobile apps rather than php

      posted in Onsen UI
      R
      ricardogaynor
    • RE: onsen ui wont allow me to make ajax call in child pages but it allows for the ho,e/parent page

      yes i will soon its a praedial larceny app i want the government to buy into so am not sure about posting it. the reason why i chose a framework is that i found good tutorials in using jquery than the old javascript but i will go to code academy to learn it and all of the framework will be a walk over as u stated before

      posted in Onsen UI
      R
      ricardogaynor