Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About dg2ben2

  • Rank
  1. Thanks, Antonio, for the help. These were great suggestions and lead me towards where the problem was occurring. My calculator.js file had case insensitivity and either my variables did not match what was being called in the calculator.html file or the functions I was calling in the JS file were not properly called. Ex. Originally, I had $('#taxP').addclass('error'); I then capitalized the 'C' in class throughout my JS file and it worked. Are the built in functions case sensitive in JS or am I on the wrong track?
  2. Exactly. "404- requested URL ....calculator.php was not found on this server."
  3. Okay. Would having the <form action="calculator.php" ....> be taking over for the JS? It seems like I cannot get a request through. I did test the JS out using the test.html and test.js and that worked. But, for this calculator problem, it seems like my JS is not even receiving a request.
  4. Hi Larry, After moving along through the chapter, I had a generic question. For the calculator.js and calculator.html, should my webpage still run even though I do not have calculator.php linked to the HTML? The code is exactly how the book laid out, but when I attempt to test the calculator in a browser and press "Calculate!" I receive a message that calculator.php does not exist and the request cannot be completed. In essence, my question is "Is there something in the browser (Mercury Firefox) that is not loading properly or installed?" or "Does the HTML need both the php and J
  5. Ah, Magic! Thanks very much. I've wrapped my head around this for days and finally posted about it. Thanks again for the quick response!
  6. i modified line 15/16 and combined them into one line on in the function.js file. That yielded an error regarding an unexpected 'image' on line 15 in the show_image.php script.
  7. Sorry, here is the code with numbers. Show_image.php <?php #Script 11.5 - show_image.php //This page displays an image. $name= FALSE; //Flag Variable: //Check for an image name in the URL: if (isset($_GET['image'])) { //Make sure it has an image's extension: $ext = strtolower ( substr ($_GET['image'], -4)); if (($ext == '.jpg') or ($ext == '.jpeg') or ($ext == '.png')){ //Check that the image is a file on the server (full image path): $image = '../uploads/{$_GET['image']}'; //Check that the image exists and is a file: if (file_exists ($image) && (is_file (
  8. Hi Larry, I really enjoy your book, but I am having trouble viewing my image after clicking on it. When I comment out the failsafe> unavailable image, I receive a block of code <br /> <font size='1'><table class='xdebug-error xe-notice' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined variable: image in C:\wamp\www\Website\show_image.php on line <i>38</i></th>&l
  • Create New...