Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    write to text file using XMLHttpRequest?

    I heard there is something called XMLHttpRequest that is compatible to all browsers. What does that actually do? Is there something to do with Javascript? Thank you.

  • #2
    Senior Coder DJCMBear's Avatar
    Join Date
    Mar 2010
    Location
    United Kindom
    Posts
    1,173
    Thanks
    14
    Thanked 136 Times in 136 Posts
    basicly this is what's known as AJAX, this allows Javascript to interact with server-side codes like PHP or ASP to run a bit of code to return the value back so if for example you had a PHP script which adds two number together but wanted the final number to show with no page reloads you use AJAX to send the numbers to PHP and then have PHP return the final number and Javascript will show the returned number in lets say a html div so there is no page loads just an instant display of the numbers added together.

    Example:
    number1 > 2
    number2 > 5
    final number > 7
    Official BinPress hand picked coder.
    For anyone worried about SQL injection go have a look at my small yet powerful script here.
    Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
    I am 1 of 65,608 people to get a Pebble Watch :P


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •