Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The internal Page Procedure Call & The Javascript inserter

Status
Not open for further replies.

Phalanx1

Programmer
Jul 21, 2003
128
US
The IPPC
<script language=&quot;javascript&quot;>
var functionName=&quot;&quot;;
function advconstruct(){
window.execScript(functionName);
}

</SCRIPT>
can insert any javascript and function call with any amount of parameters that is in your web page.
<input type=&quot;text&quot; id=&quot;RJT&quot; value=&quot;&quot;><input type=&quot;button&quot; onclick=&quot;functionName=RJT.value;advconstruct()&quot; value=&quot;IPPC example&quot;>
Now that that is over
The JavaScript Inserter
<form onsubmit=&quot;eval(this.JT.value); return false;&quot;>
<textarea id=&quot;JT&quot;></textarea><br><input type=&quot;submit&quot; value=&quot;insert javascript&quot;></form>
Now the Problem is that the IPPC uses THE DOM which must keep a copy of itself or can only replicate the body once, where the javascript inserter can replicate the body any number of times....oh yah and The IPPC Doesn't work if the body is replicate by the JavaScript Inserter. Example:

<html>
<head>
<title></title>
</head>
<body id=&quot;Bel&quot;>
<script language=&quot;javascript&quot;>
var functionName=&quot;&quot;;
function advconstruct(){
window.execScript(functionName);
}

</SCRIPT>
<form onsubmit=&quot;eval(this.JT.value); return false;&quot;>
<textarea id=&quot;JT&quot;>Bel.insertAdjacentHTML=('afterBegin', Bel.innerHTML);</textarea><br><input type=&quot;submit&quot; value=&quot;insert javascript&quot;></form>
<input type=&quot;text&quot; id=&quot;RJT&quot; value=&quot;Bel.insertAdjacentHTML=('afterBegin', Bel.innerHTML);&quot;><input type=&quot;button&quot; onclick=&quot;functionName=RJT.value;advconstruct()&quot; value=&quot;Click To IPC&quot;>
just a popping idea write advconstruct() after One time
dammit i answered my own question, what the hell...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top