Jump to content

prestonwinfrey

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

prestonwinfrey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Use jQuery's next() function. $(function() { $('.follow').click(function() { var name = $(this).attr('name'); var info = 'test=' + name; var $this = $(this); $.ajax({ type: "GET", url: "yes.php", data: info, success: function(data) { $this.next('.test_results').html(data); } }); }); });
  2. You cannot access this in removeItem without passing it as an argument. <a onclick="removeItem(this)" class="button"> function removeItem(obj) { $(obj).parent().remove(); }
  3. Problem is is_int("10") would return false and GET is returning a string Maybe if(isset($_GET['category']) && ((int)$_GET['category'])==$_GET['category']){ } Could you cast the variable as an integer and then validate using is_int() or would that return true regardless because of the cast?
  4. The arrow shows up for me in the link you provided. (Google Chrome 11)
  5. It works with relative positioning as well. Here is an example: http://jsfiddle.net/YYZw5/
  6. <script type="text/javascript"> var count = <?echo $_GET['counter'];?>; var auto_refresh = setInterval( function () { $('#match_main').load('match_engin.php1?counter=' + counter, function () { counter++; }); }, 10000); // refresh every 10000 milliseconds </script>
  7. You are only fetching the first row into the array. $rows = array(); while($row = mysql_fetch_array($result)) { $rows[] = $row; }
  8. Ideally, you would use divs and position them accordingly via CSS. An easier approach would be to create a table as such: <table> <tr> <td>Pic</td> <td>Pic</td> <td>Pic</td> <td>Pic</td> </tr> <tr> <td>Title</td> <td>Title</td> <td>Title</td> <td>Title</td> </tr> <tr> <td>Pic</td> <td>Pic</td> <td>Pic</td> <td>Pic</td> </tr> <tr> <td>Title</td> <td>Title</td> <td>Title</td> <td>Title</td> </tr> </table>
  9. You cannot define a function within a function. You need to separate the roundnumber() and calc() functions. Within calc(), you can call roundnumber() to return the results you are looking for. For further assistance, please post your HTML code.
×
×
  • 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.