[問題] 視窗的使用...

看板Ajax作者 (￾'￾ﳿﰠ ￾N￾N￾ )時間17年前 (2007/07/07 19:11), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我有個問題想請教各位... 我有一個網頁程式(a.php),如下 <?php require('../config.php' ); require('../function.php' ); ?> <div align="center"> <table border="0" width="95%"> <tr> <td height="100">logo</td> </tr> <tr> <td> <table border="0" width="80%" align="center"> <tr> <td align="center"><?php include('component/assert_user_profile/assert_user_profile.php');?></td> </tr> </table> </td> </tr> <tr> <td><div id='user_data'></div></td> </tr> <?php if($_GET[action]==assert_user_profile){ echo '<script language=JavaScript src=component/assert_user_profile_ajax.js></script>'; $UserData = 'user_data'; $UserDataSource ='component/assert_user_profile/assert_user_profile_ajax_exec.php?to_user_no='.$_GET[to_user_no].'&AssertUserProfile='.$AssertUserProfile; echo '<script type=\'text/javascript\'>' ; echo 'javascript:postData('.'\''.$UserDataSource.'\''.','.'\''.$UserData.'\''.');'; echo '</script>' ; }else if($_GET[action]==get_other_review){ echo '<script language=JavaScript src=component/assert_user_profile_ajax.js></script>'; $AssertUserGetOtherReview ='user_data'; $AssertUserGetOtherReviewData ='component/assert_user_get_other_review/assert_user_get_other_review_ajax_exec.php?to_user_no='.$_GET[to_user_no].'&AssertUserGetOtherReview='.$AssertUserGetOtherReview; echo '<script type=\'text/javascript\'>' ; echo 'javascript:postData('.'\''.$AssertUserGetOtherReviewData.'\''.','.'\''. $AssertUserGetOtherReview.'\''.');'; echo '</script>' ; } ?> </table> </div> <div id='user_get_trust'></div> <? echo '<script language=JavaScript src="component/assert.js"></script>'; $AssertUserGetOtherReview ='user_get_trust'; $AssertUserGetOtherReviewData ='component/assert_user_get_other_review/assert_user_get_other_review_ajax_exec.php?to_user_no='.$_GET[to_user_no].'&AssertUserGetOtherReview='.$AssertUserGetOtherReview; echo '<script type=\'text/javascript\'>' ; echo 'javascript:postData3('.'\''.$AssertUserGetOtherReviewData.'\''.','.'\''.$AssertUserGetOtherReview.'\''.');'; echo '</script>' ; ?> 其中最後的那幾行程式碼 <div id='user_get_trust'></div> <? echo '<script language=JavaScript src="component/assert.js"></script>'; $AssertUserGetOtherReview ='user_get_trust'; $AssertUserGetOtherReviewData ='component/assert_user_get_other_review/assert_user_get_other_review_ajax_exec.php?to_user_no='.$_GET[to_user_no].'&AssertUserGetOtherReview='.$AssertUserGetOtherReview; echo '<script type=\'text/javascript\'>' ; echo 'javascript:postData3('.'\''.$AssertUserGetOtherReviewData.'\''.','.'\''.$AssertUserGetOtherReview.'\''.');'; echo '</script>' ; ?> 如果是放在a.php這一頁的話... 他可以正常顯示的... 但如果我把他放到component/assert_user_profile/assert_user_profile.php就顯示不 出來... 'component/assert_user_profile/assert_user_profile_exec.php'的程式碼如下... <?php /*require*/ require('../../../config.php' ); require('../../../function.php' ); require('assert_user_profile_ajax.php'); $sql_stmt="select * from shop_user where user_no='".$_GET[to_user_no]."';"; $result=mysql_query($sql_stmt, $link) or die(mysql_error()); $res=mysql_fetch_array($result); ?> <table border="0" width="80%" align="center" style="border-collapse: collapse"> <tr bgcolor="#999999"> <td colspan="3"> <div align="center"><?php echo big52unicode($res[user_id].'個人資料 ');?></div> </td> </tr> <tr> <td>&nbsp;</td> <td></td> <td></td> </tr> <tr> <td width="20%" rowspan="7" align="center" valign="top"> <table> <tr> <td> <img src="" width="100" height="150"> </td> </tr> </table> </td> </table> <p> 我有改了他的路徑還是一樣沒辦法... 是因為在div裡不能在顯示另一個div的內容嗎....~"~ 請各位幫幫忙嚕... p.s component/assert_user_profile/assert_user_profile.php的資料 會顯示在<div id='user_data'></div>裡... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.223.10.244
文章代碼(AID): #16ZtJ5xs (Ajax)
文章代碼(AID): #16ZtJ5xs (Ajax)