Jump to content


  • Posts

  • Joined

  • Last visited

About nogray

  • Birthday 02/01/1981

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    San Francisco CA

nogray's Achievements


Newbie (1/5)



  1. The best way to learn ajax is to play with it. You can use the examples on jquery website or make your own try to create a PHP file as the following <?php echo "Hello Ajax"; ?> and create another HTML file to request the content, create a script to as the following ​$.get('URL_TO_PHP_PAGE', function(txt){ alert(txt); });​​​​​​​​​​​​​​​​​
  2. Since you are already using jquery, review this and follow some of the examples to learn how to request data using ajax http://api.jquery.com/jQuery.get/
  3. Javascript doesn't have a method called empty. You would have to compare the value to empty string (e.g. val == ''). To add content to an array, you would use the push method (e.g. my_arr.push('my value'); )
  4. You can't, cross domain scripting is not allowed for security reasons.
  5. You can add a onresize event to the window and check if the browser is too small, than resize the window.
  6. Did you make another form with the name or id "form"?
  7. If you use getPropertyValue, you would need to use the css rule as in css (with a -) e.g window.getComputedStyle(btn, null).getPropertyValue('font-size'); or window.getComputedStyle(btn, null).fontSize;
  8. obj.top is "1px", you have to parse the int using parseInt(obj.top, 10).
  9. You would need UTF-8 or another encoding for your website. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.