Here's my simple code below. There is absolutely no response when I click the "Process" button. Any idea why?
PS: The Test@LIB:Token is supposed to just show me the passed form parameters (for now).
[H: FormName = upper(concat(getPlayerName(), ".", getName(), ".FORM"))]
[H: testLink = macroLinkText("Test@LIB:Token", "all")]
[dialog(FormName): {
<html>
<head>
<link rel="stylesheet" type="text/css" href="_CSS@LIB:UI">
</head>
<body>
<form action="[r: testLink]" method="json">
<tr>
<td align="center">
<input type="submit" name="FormAction" value="Process">
</td>
</tr>
</form>
</body>
</html>
}]
Totally stumped with non-responding form action button.
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
Totally stumped with non-responding form action button.
Last edited by Azhrei on Thu May 09, 2013 3:15 pm, edited 1 time in total.
Reason: moved to "MapTool > Macros" forum
Reason: moved to "MapTool > Macros" forum
Re: Totally stumped with non-responding form action button.
i don't see why, but you can start reading up on my debug article in my signature. Specifically the console method. Start that up and then at least you know whther the call is made or not.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
- CoveredInFish
- Demigod
- Posts: 3104
- Joined: Mon Jun 29, 2009 10:37 am
- Location: Germany
- Contact:
Re: Totally stumped with non-responding form action button.
I actually believe the table breaks the form. I did some other changes too but only having a correct table leads to a running example.
This should work
This should work
Code: Select all
[h: assert(hasImpersonated(), "Please select a token.")]
[h: FormName = upper( getPlayerName()+"."+getName()+".form" )]
[H: testLink = macroLinkText("Test@LIB:Token", "all", "", currentToken())]
[frame(FormName): {
<html><head></head><body>
<form action="[r: testLink]" method="json">
<table>
<tr>
<td align="center">
<input type="submit" name="FormAction" value="Process">
</td>
</tr>
</table>
</form></body></html>
}]
Re: Totally stumped with non-responding form action button.
I don't know if the stylesheet macro name is a problem, but I would make it a valid variable name and have it start with a character, but that may not be a problem.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools