Home » Developer & Programmer » JDeveloper, Java & XML » IFrame PHP and JDeveloper JavaScripts (JDeveloper 11.1.1.7, PHP 5.5.12)
IFrame PHP and JDeveloper JavaScripts [message #655242] Thu, 25 August 2016 10:29
spatel3695
Messages: 1
Registered: August 2016
Junior Member
Background - There are 2 applications running, one in PHP on Linux Server, and the other created in JDeveloper running on Weblogic 10.3.6 on Windows 2008 Server, to make them look unified the were embedded into PHP using iframes.

<?php
echo "<li><iframe src=<URL> width=800 height=800 scrolling=no style=overflow:hidden; margin-top:-4px; margin-left:-4px; border:none;></iframe></li>";
?>

This works well, however in the PHP parent Frame, has a function in JavaScript, lets say for simplicity a message pops up saying Hello

<head>
<script type="text/javascript">
function TabsTouch()
{
alert("Hello");
}

</script>
</head>

<body>

<form method="post" onsubmit="TabsTouch();">
<input type="submit" name="submit" value="submit" />

<?php
echo "<li><iframe src=<URL> width=1200 height=800 scrolling=no style=overflow:hidden; margin-top:-4px; margin-left:-4px; border:none;></iframe></li>";
?>

</form>
</body>
</html>


The PHP submit button has no issues calling the function, however I need JDeveloper to call the same function. I have added the code below to each JSP Page.

<af:clientListener method="onPageLoad" type="load"/>
<af:resource type="javascript">
function onPageLoad(event) {
console.log("Page Loaded");
}
</af:resource>

And now need help with the syntax needed to call an External Parent JavaScript in PHP. Thank you.
Previous Topic: insertion of xml data to clob/xmltpe
Next Topic: JDeveloper ADF Clear Form Fields
Goto Forum:
  


Current Time: Wed Nov 22 21:46:18 CST 2017

Total time taken to generate the page: 0.01459 seconds