[macro.return] and frames
Page 1 of 1

Author:  Xaelvaen [ Thu Aug 10, 2017 10:58 pm ]
Post subject:  [macro.return] and frames

I'm having trouble using a macro.return function in a frame. Basically, I have a frame that takes player input. I send that information to another macro to be calculated. What I'd like that to do, is use a macro.return function to then display that information at the bottom of the same frame. It seems, though, that macro.return isn't working <form action***>.

A, is this even possible?
B, if not, is there some workaround? Perhaps reloading the same frame from the same calling macro with new jsons?

Author:  wolph42 [ Fri Aug 11, 2017 2:21 am ]
Post subject:  Re: [macro.return] and frames

its possible, but not with macro.return. a different method is required: Forms tutorial

Author:  Xaelvaen [ Fri Aug 11, 2017 1:52 pm ]
Post subject:  Re: [macro.return] and frames

Not exactly what I was looking for - I used that tutorial to build my onChange~ character sheet. However, I just used a workaround like I mentioned above where the sheet is simply re-opened with the rolled information in place. Didn't want to do that, because it's a lot trickier, but since a simple macro.return wouldn't work, I guess I had no choice.

Thanks for the response, Wolph!

Author:  aliasmask [ Fri Aug 11, 2017 2:03 pm ]
Post subject:  Re: [macro.return] and frames

Yeah, there's no javascript so any changes made require the form to be redrawn. It's usually called a call back from another function. So, the macro you call needs call the callback to redraw the frame.

Author:  JamzTheMan [ Sat Aug 12, 2017 8:10 am ]
Post subject:  Re: [macro.return] and frames

FYI there is some javascript support in the dev version and my fork, although I have not played with it at all... Do a search and you should find some info?

Again, not sure if it will help you in this situation though, it's mostly an alternative way of doing macro logic AFAIK.

Author:  Xaelvaen [ Sat Aug 12, 2017 8:43 am ]
Post subject:  Re: [macro.return] and frames

I know absolutely nothing about javascript, and pretty much any html I use, I just use w3schools to tell me what I'm doing XD.

I just used the normal method of [openFrame] macro, [theSheet], and refreshing it all through macro.args. I was honestly just looking for a shortcut to that process, but it is what it is, and I'll get the job done one way or the other!

Thanks though, Jamz.

Author:  JamzTheMan [ Sat Aug 12, 2017 11:36 am ]
Post subject:  Re: [macro.return] and frames

No problem, definitely stick with what you are doing then! :)

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group