Jump to content

nini3008

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by nini3008

  1. you are right, i figured it was not current. i did see this link already but for some reason it isn't connecting. thanks for your replies though...really appreciate them.
  2. yes i am following the 'complete web programmer' purchased from killerphp. the original link shown in the tutorial referred to use --> src = "http://ajax.googleapis.com/jsapi" but that isnt working either. i could easily insert my downloaded jquery file in the 'src' and my script would work fine but as adviced in the tutorial, its best to use google cdn to access jquery and im finding it impossible to get it to work.
  3. well, thought so too. but even adding that, the error still comes up in console log.
  4. hi guys, please i need your help in figuring out why my machine isn't loading googles cdn. i suspect its a path issue but i am unable to detect what is actually wrong. here is my code snippet <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>getting jquery</title> <script type="text/javascript" src= "//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"> </script> <script type="text/javascript"> google.load("jquery", "1.8.1"); google.setOnLoadCallback(function() { console.log($('#title').text()); }); </script> </head> <body> <h1 id="title">Getting jquery</h1> </body> </html> but i get an error saying : "ReferenceError: google is not defined" in my console log. any help would be appreciated thanks
×
×
  • Create New...