ph_webml PowerHome formula function
Description
Returns a dynamic HTML table containing a dropdown list of PowerHome macros along with a Play button.
Syntax
ph_webml ( ai_type, as_nexturl )
Argument |
Description |
ai_type
|
Integer. Specifies the "target" value to
be used for the "playmacro" form. A value of 0 will set the "target" =
"blankframe" and the as_nexturl to "/ph-cgi/blank. Any other value
will not specify a "target" and will use the value supplied in the as_nexturl parameter
|
as_nexturl
|
String. A string representing the URL of the next page to open after playing the selected macro.
|
Return value
String. Returns the resulting HTML containing a table with a Macro dropdown list and a Play button
Usage
Use this function to quickly incorporate a
dropdown list of PowerHome macros directly into your own PSP code creations with
virtually no
coding. Using this function, you can create
your own menus and mix or match individual PowerHome
web elements.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_webml(0,"") - Specifies to
use a nexturl of "/ph-cgi/blank" and a target value of "blankframe". The
resulting HTML will look something like this:
<table width=100% cellpadding=0
cellspacing=2 class="ht3">
<tr class="ht3r1">
<td align=left
valign=center class="ht3r1c1">Macro: <form method="get" name="playmacro"
action="/ph-cgi/playmacro" target="blankframe"><input type="hidden"
name="nexturl" value="/ph-cgi/blank"><select name="id" size=1
class="ht3r1c1e1">
<option value=""></option>
<option
value="SENSORARRAY">SENSORARRAY</option>
<option
value="TEST1">TEST1</option>
<option value="TRIGGER
DISABLE">TRIGGER DISABLE</option>
<option
value="WAITFORMULA">WAITFORMULA</option></select>
<input
type="button" value="Play" class="ht3r1c1e2"
onclick="document.playmacro.submit();document.playmacro.reset();">
</form>
</td>
</tr>
</table>