fabtest.rsp:
Code:
<%@ Language=VFP %>
<html>
<head>
<script type='text/javascript'>
function readText()
{
window.alert("ReadText");
document.getElementById("DivTabella").innerHTML ='<iframe id = "myframe" src="http:/localhost:8002/tabella.html?firstname=Yvonne&lastname=Milne" width="100%" height="100" scrolling="no" frameborder="0"></iframe>';
};
function filterComments(m_empty)
{
window.alert("in parent filterComments");
};
if (typeof window.parent !== 'undefined' && typeof window.parent.Lianja !== 'undefined')
{
window.Lianja = window.parent.Lianja;
};
</script>
</head>
<body>
<button id=test" type="button" onclick="readText()">Test</button>
<div id="DivTabella">
Click Test
<%
m_firstname = getparameter("firstname","Unknown")
m_lastname = getparameter("lastname","Unknown")
? m_firstname + "<br>"
? m_lastname
%>
</div>
</body>
</html>
tabella.html:
Code:
<script type="text/javascript">
</script>
<table width="100%" height="10%" cellpadding="5" cellspacing="2" bgcolor="white" border=2px id="tabella">
<tr bgcolor="gray">
<td align="center" colspan="3">
</td>
</tr>
<tr bgcolor="#eaeaea">
<tr bgcolor="&rowcolor" class="datacellgridline">
<td valign=top align=left> <b>
Articolo
</td> </b>
<td valign=top align=left> <b>
Cat. merc.
</td> </b>
<td valign=top align=left> <b>
Descrizione
</td> </b>
</tr>
<td>
<input width="100%" type="text" value="" id="cod_art" onchange="window.parent.filterComments('Z')" >
</td>
<td>
<input width="100%" type="text" value="" id="catmercgam" onchange="parent.filterComments('Z')" >
</td>
<td>
<input width="100%" type="text" value="" id="des_web" onchange="parent.filterComments('Z')" >
</td>
</tr>
</table>
Console command:
Code:
Lianja.ShowDialog("Search & Find", "http://localhost:8002/desktopwebservice/fabtest.rsp?firstname=Yvonne&lastname=Milne")
Regards,
Yvonne
Bookmarks