Author |
|
SteveA Groupie
Joined: November 28 2002 Location: United States
Online Status: Offline Posts: 49
|
Posted: November 16 2004 at 16:39 | IP Logged
|
|
|
Heh Dave or Tony...
I've spent the better part of a day hacking and exploring the forum trying to get multiple buttons in one form to work on a PSP page. Even consulted my copy of 'HTML for Dummies' with out results.
Could you please take a look at this and give me a clue as to what I'm doing wrong?
<form method="post" name="execsendkeys" action="/ph-cgi/execsendkeys">
<input type="hidden" name="sendkeys" value="">
<input type="button" value="ENTRY" onclick="sk('ph_macro('CHECK ENTRY')')">
<input type="button" value="GARDEN" onclick="sk('ph_macro('CHECK GARDEN')')">
<input type="button" value="GARAGE" onclick="sk('ph_macro('CHECK GARAGE')')">
<input type="button" value="DRIVE" onclick="sk('ph_macro('CHECK ENTRY')')">
<input type="button" value="B-YARD" onclick="sk('ph_macro('CHECK ENTRY')')">
<input type="button" value="PATIO" onclick="sk('ph_macro('CHECK ENTRY')')">
<input type="button" value="DECK" onclick="sk('ph_macro('CHECK DECK')')">
<input type="button" value="F-YARD" onclick="sk('ph_macro('CHECK ENTRY')')">
<input type="button" value="DOCKS" onclick="sk('ph_macro('CHECK DOCK')')">
<input type="button" value="WARNE" onclick="sk('ph_macro('CHECK WARNE')')">
<input type="hidden" name="nexturl" value="/index.psp">
</form>
Thanks, Steve
P.S. Didn't notice until now that the PSP samples aren't in the /web directory in the beta, is there somewhere I can download them?
__________________ SteveA
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 16 2004 at 19:22 | IP Logged
|
|
|
Do you have the sk() function defined in the header?
Maybe you have the ' and " messed up?
I can't find a PSP file using sk() anymore, but, you could also try this one...
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Macro Page</title>
<script language="JavaScript">
<!--
function macro(id)
{ document.execsendkeys.sendkeys.value = "ph_rtne(ph_macro('" + id.toUpperCase() + "'))"; document.execsendkeys.submit(); }
// -->
</script>
</head>
<body>
<form method="post" action="/ph-cgi/execsendkeys" name="execsendkeys">
<input type="hidden" name="nexturl" value="/index.psp">
<input type="hidden" name="sendkeys">
</form>
<input onclick="macro('MY MACRO');" type="button" value="My Macro">
</body>
</html>
|
Back to Top |
|
|
SteveA Groupie
Joined: November 28 2002 Location: United States
Online Status: Offline Posts: 49
|
Posted: November 16 2004 at 20:13 | IP Logged
|
|
|
Tony....
You are now officially in my will... works great!
I got the sk() stuff from hacking out of prior posts on the forum :). Just got connected in my area via DSL and it's opened a whole new world of options using PH. Thanks for the feedback, highly appreciated.
Steve
__________________ SteveA
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 17 2004 at 04:30 | IP Logged
|
|
|
Glad to help. Let me know if you need anything else.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 17 2004 at 10:19 | IP Logged
|
|
|
Darn,
Tony made it into the will before I did
Anyways, Im glad Tony got you working. Ive got to revamp the sample PSP pages to work with the most recent PowerHome changes and then I'll start including them when I again.
Let me know if you have any other questions and Im sure Tony will beat to it
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 19 2004 at 13:26 | IP Logged
|
|
|
Dave:
|
Back to Top |
|
|