Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About johny20

  • Rank

Profile Information

  • Location
  1. OK, so the main page looks like this (I put the scripts two times) : <!DOCTYPE html><html class="no-js"><title>Animals</title> <link rel="stylesheet" href="scripts/jquery.rondell.css" type="text/css" media="all" title="Screen"><script><script src="scripts/jquery-1.9.1.min.js"></script><script>$(function(){//$('h4').live('click', function(){ // jQuery 1.3+//$(document).delegate( 'h4','click', function(){ // jQuery 1.4.3+$(document).on( 'click','h4', function(){ // jQuery 1.7+ alert($(this).html())});});</script><script src="scr
  2. OK, now I got what you mean! the main page will have all of the CSS and JSs and the second page will have only the above code.
  3. Hi again. Thanks so much that help me. OK, look what I did (main/first) page: <html><head><title>Animals</title><script src="scripts/jquery-1.9.1.min.js"></script><script src="scripts/modernizr-2.0.6.min.js"></script><script>$(function(){//$('h4').live('click', function(){ // jQuery 1.3+//$(document).delegate( 'h4','click', function(){ // jQuery 1.4.3+$(document).on( 'click','h4', function(){ // jQuery 1.7+ alert($(this).html())});});</script> <link rel="stylesheet" href="scripts/jquery.rondell.css" type="text/css" media="all
  4. Hi, thanks for the reply. I linked the jQuery inside my main file : <script src="scripts/jquery-1.9.1.min.js"></script> then I changed the click() to live(), but I thought that this has to do with the prev/next buttons at the image viewer. Nothing worked again... Yes, I want to retrieve that specific <div> and I can't understand why since it works on the second page, it can't work on the main one..
  5. Hi, I have two pages. The first page has two links, when a user clicks on one of them then s/he can view some information. I have used an image viewer taken from http://projects.sebastianhelzle.net/jquery.rondell/examples/carousel.html and I have set it according to my needs. the code of the first/main page is: <html><head><title>Animals</title><script>function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { document.getElementById("rondellCa
  6. Hello, I can't get data from mysql when I put Greek characters in SELECT statement. require_once(dirname(__FILE__).'etc etc etc etc');$mysqli->query("utf8_general_ci"); // I have tried "UTF8" - Didn't work$query = "SELECT * FROM graf WHERE onoma LIKE 'ΓΕ%' ";$mysqli->query("SET CHARACTER SET 'utf8_general_ci'");$result = mysqli_query($mysqli,$query);if ($result !=0){ while ($row = mysqli_fetch_assoc($result)) { echo $row['onoma']; } }echo mysqli_error($mysqli); //gives no errorecho mysqli_sqlstate($mysqli); //gives 00000 which means the statement is correct Also, in MySQL the c
  • Create New...