Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Buttons on PSP pages Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
SteveA
Groupie
Groupie


Joined: November 28 2002
Location: United States
Online Status: Offline
Posts: 49
Posted: November 16 2004 at 16:39 | IP Logged Quote SteveA

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 View SteveA's Profile Search for other posts by SteveA Visit SteveA's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 16 2004 at 19:22 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
SteveA
Groupie
Groupie


Joined: November 28 2002
Location: United States
Online Status: Offline
Posts: 49
Posted: November 16 2004 at 20:13 | IP Logged Quote SteveA

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 View SteveA's Profile Search for other posts by SteveA Visit SteveA's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 17 2004 at 04:30 | IP Logged Quote TonyNo

Glad to help. Let me know if you need anything else.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 17 2004 at 10:19 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: November 19 2004 at 13:26 | IP Logged Quote TonyNo

Dave:
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum