Sunday, 5 February 2012

JQuery to Reload DIV Layer with PHP GET from Text Box




var fe = jQuery.noConflict();
function updatedw (name,spid,unum,rdid) {
document.getElementById('added').innerHTML += '<a href="#viewsp_'+spid+'" data-   tooltip="'+unum+'" id="pointer_div">'+name+'</a> <a href="?delete='+rdid+'" class="delete"    style="float:right"><img src="images/close.png" /></a><br> ';
fe('div#rightcontent').load('viewscreenplays.php');
}

fe("#clickme").click(function(){
    $("p.added").slideDown();
  });
fe(document).ready(function() {
  fe('a.delete').click(function(e) {
      fe(this).slideUp(300,function() {
          parent.remove();
        });

No comments:

Post a Comment

Visual comparison of the two methods, creating a simple table.

Option 1, using PHP: // PHP $html = '<table>' ;     foreach ( $data as $row ) {     $html .= '<tr>...