|  | 
	                
  
    | 
	 
        ติดปัญหา Uncaught SyntaxError: Unexpected token ILLEGAL  แก้ไขยังไงครับ     |  
    |  |  
 
	
		|  |  |  |  |  
		|  |  | 
          
            | main.php Code (PHP)
 
 <script>
    function openjQDialog(dlgtitle, wid, hei, ifrUrl, scr, ptop, imodal){
        if (scr != "yes" && scr != "no") {scr = "auto";}
        alert(ifrUrl);
        $("#dialog-form").dialog({
            title: dlgtitle,
            autoOpen: true,
            position: 'center center',
            width: wid,
            height: hei,
            modal: true,
            closeOnEscape: true,
            zIndex: 999,
            open: function(){
                $(this).load(ifrUrl);
            },
            close: function() {
                $("#dialog-iframe").attr("src", "about:blank");
            }
        });
    }
    
</script>
<div id="dialog-form" style="display:none;" title="">
    
</div>
 list.php
 Code (PHP)
 
 <?php
require '../../config/connect.php';
$key = $_GET['k_word'];
if ($key != ''):
    $sql = "SELECT * FROM student WHERE student_name LIKE '%" . $key . "%' ";
else:
    $sql = "SELECT * FROM student ORDER BY id DESC ";
endif;
$studentQuery = mysql_query($sql)or die(mysql_error());
?>
<?php while ($studentResult = mysql_fetch_array($studentQuery)): ?>
    <tr>
        <td>
             <a class="button tiny" href="#" onclick="javascript: openjQDialog('STUDENT PROFILE', 300, 300, 'content/student/profile_student.php?idx=<?php echo $studentResult['id']; ?>">Profile</a>
        </td>
    </tr>
    <?php endwhile; ?>
 พอกด Profile โปรแกรมไม่ยอมขึ้น Dialog ครับ  พอดูที่ Console ก็ขึ้นข้อความ
 Uncaught SyntaxError: Unexpected token ILLEGAL
 
 
 
 Tag : PHP, HTML/CSS, JavaScript, Ajax, jQuery
 
 
 |  
            |  |  
            | 
              
                |  |  |  |  
                |  | 
                    
                      | Date :
                          2013-05-03 15:30:25 | By :
                          Necrotorture | View :
                          10799 | Reply :
                          3 |  |  |  
                |  |  |  |  |  
            |  |  
		            |  |  
		|  |  |  |  |  
  
    | 
 
        
          |  |  |  |  |  
          |  |  | 
            
              | ส่งค่า ตัวแปรไม่ครบ มั้งครับ ตัวแปรที่ส่งไป มี 5 ตัว แต่ function openjQDialog ประกาศจองตัวแปร 7 ตัวน่ะครับ
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2013-05-03 18:15:31 | By :
                            KenJeRoKung |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | เนี่ยครับ
 
 <a class="button tiny" href="#" onclick="javascript: openjQDialog('STUDENT PROFILE', 300, 300, 'content/student/profile_student.php?idx=<?php echo $studentResult['id']; ?>">Profile</a>
 
 ตก ') ครับ
 
 ต้องเป็น
 <a class="button tiny" href="#" onclick="javascript: openjQDialog('STUDENT PROFILE', 300, 300, 'content/student/profile_student.php?idx=<?php echo $studentResult['id']; ?>');">Profile</a>
 
 ครับ
 
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2013-05-03 18:20:25 | By :
                            cookiephp |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | ท่าน แมวของคุกกี้  ตาดีจังคับ  ได้แล้วๆ   ขอบคุณมากคับ    
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            2013-05-07 09:22:35 | By :
                            Necrotorture |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  |  |