Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


QuakeLive last won the day on May 2 2017

QuakeLive had the most liked content!

Community Reputation

4 Neutral

About QuakeLive

  • Rank
    Advanced Member
  1. EDIT: In the meantime I solved this - the answer is at the end Hi, First of all - I apologize - my English is bad. I have this JSON data in file mydata.json: [ {"name": "Aster", "product": "aster", "stock": "10", "price": "2.99"}, {"name":"Daffodil","product":"daffodil","stock":"12","price":"1.99"}, {"name":"Rose","product":"rose","stock":"2","price":"4.99"}, {"name":"Peony","product":"peony","stock":"0","price":"1.50"}, {"name":"Primula","product":"primula","stock":"1","price":"3.12"}, {"name":"Snowdrop","product":"snowdrop","stock":"15","price":"0.99"} ] I want to use t
  2. Hi, I plan to start learning PHP in the next two months (right now I'm learning some other things, and when I finish with them I'll start with PHP). I'm interested in this book, but I have one question - since the book is from 2011/2012, were there any major changes in the meantime? I mean, now we have newer version of PHP, so will I miss something "big" if I read book that is from 2011/12? If so, can we expect a new edition of this book in the near future? I apologize, my English isn't good.
  3. This explains it! I have to think more, I have no concentration! Thank you so much Hartley! Now I'm reading the chapter about Closures which is at the end of the book, where this is also explained
  4. Hi HartleySan, Sorry for the late reply. I was looking at code and I can't find what is the problem. I will upload original files from ch13 (also available here), and the same files but with added jquery.dataTables.min.js in js directory. 1. Original (from larryullman.com & wihtout jquery.dataTables.min.js in js directory) - http://download1348.mediafire.com/k8eh0h0n78wg/hpe52nx7c4d52qp/ch13.zip 2. With jquery.dataTables.min.js in js directory - http://download1072.mediafire.com/2rr2ohn9d3jg/0890rotur5egm89/withJS.zip This is not an emergency, when you have a lot of free t
  5. Hi, In chapter 13 there is an example of using the DataTables plugin - in folder ch13 there is table.html. In that .html file there is: <script src="js/jquery.dataTables.min.js"></script>, but in js folder there is no that file. So, I downloaded the DataTables from http://datatables.net/download/, and in folder DataTables-1.10.0\media\js there is that file, so I just copied it (jquery.dataTables.min.js) to js folder of that example (ch13\js), but it doesn't work again :/ Do you know what could be the problem? Also, I have another question - according to the documen
  6. I am learning very slowly, I have a feeling it will take me 100...00 years to read the books, to practice, to do the examples... Just now (today), I found this interesting video
  7. I think the problem is not to understand, but to apply knowledge. In many cases, when I read this JS book or some JS tutorial - I can understand but when I want to apply knowledge and create something new and original - I just stuck, block... Of course, the key is to practice and gain experience. There are those who argue that programming should be learned "only through hundreds of examples and exercises, not through reading "fat books"... they claim that reading those books is a waste of time... But I personally do not believe in such stories, or I just don't have the capacity to learn in tha
  8. This explains it! I have to think more, I have no concentration! Thank you so much Hartley!
  9. Thank you very much HartleySan!!! I tested your code and it works perfectly! Right now, I'm making version with external .js files. After that, I'll try to make some CSS, for example - row for the current CD will have a different color... : ) I must say that I knew that code from my post is bad - but I didn't know why exactly... After seeing your code and explanations, it's clear now. There are a few interesting things regarding your code: currentCd = (currentCd - 1 + numCds) % numCds; I must say that I never would have thought to do it this way. Very clever : ) The best way
  10. Thank you HartleySan! I would be grateful if you could help me to "fix" this, but, of course, this isn't urgent - when you have the will and some time
  11. First of all, I apologize for the delay in my reply. Now I'm trying to make it work, but without success and I give up. Some things work, but - as you noticed - HTML/JS code is very bad. As for the using of JSON instead of XML - now I will start reading/learning JSON Thanks!
  12. Hi, I started reading the chapter about Ajax (JavaScript and XML), but I wanted to learn little more about XML so I am also reading w3schools.com. There are good examples and tutorials, but I don't like some things such as using inline event handlers. Anyway, I wanted to create the following application: My English is not good, but I'll try to explain how this application should work (there are two very similar examples on w3schools, and this example is a combination of these two. Also, I am not using inline event handlers and JavaScript is in external .js files, not
  13. Is it important to Identify a Result Handler first, and then to Make a Request, or it does not matter? I am asking this because in the book Larry always first Identify a Result Handler and then Make a Request... for example: but for me it would be more logical (and nicer) to Make a Request first: Maybe there is some practical reason why...
  14. HartleySan, thank you so much for helping me to understand Ajax, JavaScript... now, some things are much clearer. Thank you for your support and help! So, speaking about the default behaviour - regardless of whether everything was OK - page somescript.php would be loaded.
  • Create New...