在PHP腳本中彈出,在某一點上我需要出示了GreyBox彈出:GreyBox:從調用的函數
<?php
if ($myvar==''){
?>
<script>
// I need to show mypage.php in a GreyBox popup when in here
GB_showCenter('Title', 'mypage.php' , 300, 620);
</script>
<?php
}
?>
上面的代碼顯示在彈出時$ MYVAR是空的,但是我的空間。 php永遠不會加載,加載gif永遠不會停止轉動,並且Firebug會顯示一個指向loader_frame.html的「GB null」錯誤。
我也試過:
GB_show("Title", "mypage.php");
,但同樣的問題。
如果我做的:在我有沒有問題,在彈出的頁面
<a href="mypage.php" onclick="return GB_showCenter('Title', this.href , 300, 620)">Click here</a>
的地方,所以我知道該文件被正確安裝。
我在做什麼錯?
非常感謝!
與完整的URL'GB_showCenter( '標題' 嘗試,'http://domain.com/mypage.php',300,620); ' – 2011-04-27 08:07:50
不,不工作:(謝謝 – user712027 2011-04-27 08:14:03
對不起,只是爲了確保......你有沒有在你的腦海中包含GB_showCenter功能? – Karthik 2011-04-27 08:32:35