954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

query result modal window

Hello,

I am trying to insert an html document into a modal window based on the results of a database query using plone/tal and jquery.

What I need is for the "href records/rpc*_url" to be a link to the html document of the same name as the query result.
i.e. result = ss-c-1 link = /ss-c-1.html

So when the user clicks on the result in the table, the html document opens in the modal.

<tr tal:repeat="records context/com-int" style="display: table-row;">
<td colspan="10">
                
    <p> Credits </p>
    <a href="#?w=928" rel="popup_name" class="poplight">Learn More</a>
    <div id="popup_name" class="popup_block"><a tal:content="records/rpc1_url" tal:attributes="href records/rpc1_url"></a></div>

<ul><strong>           
<li><a tal:content="records/rpc1" tal:attributes="href records/rpc1_url"></a></li>
<li><a tal:content="records/rpc2" tal:attributes="href records/rpc2_url"></a></li>
<li><a tal:content="records/rpc3" tal:attributes="href records/rpc3_url"></a></li>
<li><a tal:content="records/rpc4" tal:attributes="href records/rpc4_url"></a></li>
<li><a tal:content="records/rpc5" tal:attributes="href records/rpc5_url"></a></li>
<li><a tal:content="records/rpc6" tal:attributes="href records/rpc6_url"></a></li></strong>
     </ul>
   </td>
</tr>


Any suggestions would be greatly appreciated. Thank you, Thank you, Thank you!

donnyv
Newbie Poster
9 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 
<script type="text/javascript">
			function openG()
			{
				window.showModalDialog('profile.php', window); //Send the current window object as a parameter
			}
		</script>
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: