我无法使用highslide的表单创建jquery iframe。请在http://www.highslide.com查看网站,然后在页面上看到灰色背景框,其中显示“iframe with form”。
我正在尝试使用mysql创建更新配置文件,而不是重定向到其他页面来更新配置文件,我想使用带有来自highslide的表单的jquery iframe,但是我很难将我的代码与highslide代码结合起来。
请参阅代码,这允许我从mysql数据库中检索公司信息,其中包含“编辑”和“删除”两个链接。这在重定向到其他页面以更改公司名称时效果很好。
但我想使用iframe highslide更改为在同一页面中更新,我遇到问题的代码正在尝试合并,但我收到错误。
<?php
// This block grabs the whole list of company for viewing
$company_list = "";
$sql = mysql_query("SELECT * FROM company ORDER BY company_id DESC");
$productCount = mysql_num_rows($sql); // count the output amount
if ($productCount > 0) {
while($row = mysql_fetch_array($sql)){
$company_id = $row["company_id"];
$company_name = $row["company_name"];
$company_url = $row["company_url"];
$company_username = $row["company_username"];
$company_password = $row["company_password"];
$company_list .= "Company ID: $company_id - <strong>$company_name</strong> - $company_url - <a href='edit_company.php?pid=$company_id'>edit</a> • <a href='company.php?deleteid=$company_id'>delete</a><br /><br />";
}
} else {
$company_list = "You have no company listed in your data yet";
}
?>
这个高流量代码链接允许我点击该链接并提示iframe灯箱。就像你从http://www.highslide.com
看到的那样<div class="textwrapper">
<a href="iframe.php" id="formexample" class="highslide" onclick="return hs.htmlExpand( this, {
objectType: 'iframe', outlineType: 'rounded-white', wrapperClassName: 'highslide-wrapper drag-header',
outlineWhileAnimating: true, preserveContent: false, width: 250 } )">Iframe with form</a>
</div>
有没有人可以帮助我如何制作组合它的作品,我试过这个并且仍然会出错。
$company_list .= " <a href="edit_company.php?pid=$company_id" id="formexample" class="highslide" onclick="return hs.htmlExpand( this, {
objectType: 'iframe', outlineType: 'rounded-white', wrapperClassName: 'highslide-wrapper drag-header',
outlineWhileAnimating: true, preserveContent: false, width: 250 } )">Edit</a> •
<a href='company.php?deleteid=$company_id'>delete</a><br /><br />";