Dr. Mark Humphrys

School of Computing. Dublin City University.

Home      Blog      Teaching      Research      Contact

My big idea: Ancient Brain


CA114      CA170

CA668      CA669      Projects

Lab - Ajax

  1. Base it on the demo of JavaScript calling a server-side program in background.
  2. You will get this working on student.computing.dcu.ie
  3. Copy my HTML to a HTML file in your public_html.
  4. Copy my JS to a JS file in your public_html.
  5. The URL of your HTML file will be something like: http://student.computing.dcu.ie/~userid/file.html

  6. Edit a new PHP file in your public_html. This will be the server-side program it calls.
  7. The URL of your PHP program will be something like: http://student.computing.dcu.ie/~userid/prog.php

  8. Change the JS from calling my PHP program on www.computing.dcu.ie to calling your PHP program on student.computing.dcu.ie
    • Note in the JS how you should remove the "http://server" part of the URL. This is Same origin policy. (In fact, depending on browser, leaving "http://server" in may work, but only if same-origin.)

  9. Your PHP program does something with the argument.

  10. Get it working on student.computing.dcu.ie

ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.

Wikipedia: Sometimes I link to Wikipedia. I have written something In defence of Wikipedia. It is often a useful starting point but you cannot trust it. Linking to it is like linking to a Google search. A starting point, not a destination. I automatically highlight in red all links to Wikipedia and Google search and other possibly-unreliable user-generated content.