Search:

Type: Posts; User: UserBee

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,833

    Re: geolocation question

    how do you add geolocation permission in a manifest? havent done it before!
  2. Replies
    5
    Views
    1,833

    Re: geolocation question

    I am. using chrome and firefox now for testing
  3. Replies
    5
    Views
    1,833

    geolocation question

    I am following the example of this code from w3schools. The code below works on their website. But when I put it on my own webserver, and open it on browser, the browser doesnt ask for permission...
  4. Replies
    9
    Views
    2,418

    Re: write to system storage

    Can I have a learning example ? Oh I think that would be lengthy.
  5. Replies
    9
    Views
    2,418

    Re: write to system storage

    should i just do it with the native android app?
  6. Replies
    9
    Views
    2,418

    Re: write to system storage

    no, just a website. I just dont like that my cookie or my data be deleted when they clear the app cache because it store data about login and registration.
  7. Replies
    9
    Views
    2,418

    Re: write to system storage

    I asked this coz i need to write text to file in an ndroid or ios operating syatem. any advice?
  8. Replies
    9
    Views
    2,418

    write to system storage

    aside from using cookies or localStorage, how can I use javascript to write to a file in windows OS, android OS or ios OS ?
  9. [RESOLVED] get the value of xhttp.responseText directly to variable

    I am using xmlhttprequest to get json string from phpcurl from a php file and put the value on document.getElementById("div1").innerHTML = xhttp.responseText then retrieve the value of ...
  10. [RESOLVED] Javascript Spinner visibility question

    I am using this spinner code below :



    <div id="spinner" style="visibility:hidden;" class="text-center">
    <div class="spinner-border" role="status"></div>
    </div>


    And set the...
  11. Replies
    2
    Views
    1,625

    Re: script executing issue

    yes progress indicator. been looking something like that. been from vb. net so i only know progressbar. thanks for the link and the snippet. gotta read that article now. thanks again dday.
  12. Replies
    2
    Views
    1,625

    [RESOLVED] script executing issue

    So I am executing a XMLHttpRequest on button click. For some time, the user will not see any progress or status of the response.

    The response may take awhile on receiving the reaponse.

    How...
  13. Replies
    9
    Views
    2,792

    Re: how do you loop this

    yeah, so the loadXMLDoc method is recurse by the return keyword but what Im curious is that if the use of that return keyword read back the if statement that way? i just would like to clarify myself...
  14. Replies
    9
    Views
    2,792

    Re: how do you loop this

    how does it recurse? by the return statement? does that mean it will go back to the if statement? sorry for asking because i have not tried that way before. i use the return word for functions only.
  15. Replies
    9
    Views
    2,792

    Re: how do you loop this

    isnt If statement only checked and executed once with that way? how do the return statement affects the loop that way. so that means the return makes the loop back to the if statement?

    on the...
  16. Replies
    9
    Views
    2,792

    Re: how do you loop this

    yes, a 200 response, ready state=4 and the response is not null because the server may not respond in time or accordingly
  17. Replies
    9
    Views
    2,792

    [RESOLVED] how do you loop this

    How do you loop this code to make sure that it is on its ready state and status at 200 and has valid response?

    I did try using While loop but there is no response still or so I think.



    ...
  18. Replies
    5
    Views
    2,012

    Re: Problem with Ajax

    may I ask, what is that (data) and (text) ?
  19. Replies
    5
    Views
    2,012

    Re: Problem with Ajax

    may I ask, what is that (data) and (text) ?
  20. Replies
    5
    Views
    2,012

    [RESOLVED] Problem with Ajax

    So I am using ajax to get data from my php file like so below and it works for DIV element using the but if I change it to Input tag element, it gets the whole innerHTML data.

    FOR DIV TAG


    ...
  21. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    I found the problem dday. It was the resulting output of curl that lacking backslash that is why there is Null in this point parsedObject = null;

    Thanks. Moving on.
  22. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    I still having issues on empty result
  23. Thread: Looping code

    by UserBee
    Replies
    0
    Views
    1,564

    Looping code

    I have this code below which I want to loop to check if variable hp length is zero or greater than zero else go back to check the value of hp.

    For some reason, the call of setopt() in the else if...
  24. Replies
    7
    Views
    4,536

    Re: execute php thru javascript

    can I request for GET method?
  25. Replies
    7
    Views
    4,536

    Re: execute php thru javascript

    i cant type the whole this because im on mobile. but for purposes of example, just any curl request string
  26. Replies
    7
    Views
    4,536

    Re: execute php thru javascript

    I am executing php curl and get the data on button click
  27. Re: call another javascript function inside javascript function

    I am revising my code below and it does not affecting the slow execution. I have another goal to achieve which is if callC results to zero length string, then callB will sleep for 2 seconds and call...
  28. Re: call another javascript function inside javascript function

    I will try.
  29. call another javascript function inside javascript function

    <script>
    function callB()
    {
    callA();
    }

    function callA()
    {
    alert("called");
    }
  30. Replies
    7
    Views
    4,536

    execute php thru javascript

    I searched the internet on how to execute php thru javascript and the answer I found is no you cant.

    Is there a way to call php using javascript ? May I ask for a simple code for it ?
    ...
  31. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    modified my code to below but still there are instances of blank / empty results. i already disabled the timeout limit of php curl execution.



    <script>
    var distances;
    var...
  32. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    may I ask why ?
  33. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    I modified it to my need like below but there are still instances of empty result.



    <script>
    var distances;
    var parsedObject;
    var a;

    function init()
  34. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    @dday9, there are times that the result is empty, how is that happening or what can i do to catch it the error?
  35. Replies
    17
    Views
    5,359

    Re: [RESOLVED] getting values from string

    dday9, thanks
  36. Replies
    17
    Views
    5,359

    Re: getting values from string

    wow. now I appreciated json string more. thank you very much dday9. You are very helpful. I cant thank you enough sincerely. God bless.
  37. Replies
    17
    Views
    5,359

    Re: getting values from string

    dday9, yes it is a json string and thanks for your reply. I will just post beautified json string below. I see in your code that you used distances section. but actually i will be needing the...
  38. Replies
    17
    Views
    5,359

    [RESOLVED] getting values from string

    I have this string below as follows :


    ...
Results 1 to 38 of 38



Click Here to Expand Forum to Full Width