我正在尝试使用jQuery UI对话框窗口对话框打开时显示标题,但它是空白的。
我知道它正在点击请求的链接,因为它会抛出我放在其中一个页面中的错误。但是,页面永远不会加载。有什么想法吗?
<script type="text/javascript">
$(document).ready(function() {
$('#theKids td a').each(function() {
var $link = $(this);
var $dialog = $('<div></div>')
.load($link.attr('HREF') + ' #content')
.dialog({
autoOpen: false,
draggable: false,
title: $link.attr('title'),
modal: true,
width: 500
});
$link.click(function() {
$dialog.dialog('open');
return false;
});
});
});
</script>
<table id="theKids">
<tr>
<th>Home</th>
<th>X</th>
<th>Y</th>
</tr>
<cfoutput query="gradeList">
<tr>
<td>#homename#</td>
<td><<a href="pagex.cfm" title="X">#contract#</a></td>
<td><a href="pagey.cfm" title="Y">#meds#</a></td>
</tr>
</cfoutput>
</table>
答案 0 :(得分:1)
还有一个额外的&lt;在这行上的href之前:
<td><<a href="pagex.cfm" title="X">#contract#</a></td>
可能是