Button Javascript

Put your questions here on how to do things in ProtoShare.
trisys
Posts: 2
Joined: Sat Jan 31, 2015 11:46 am

Button Javascript

Postby trisys » Sat Jan 31, 2015 11:50 am

I wrote some custom JS code as a Advanced HTML snippet.
I want to call my javascript functions from a button, but when I add javascript:myfunction() to the OnClick - Link property, your tool prepends http:// to my javascript e.g. http://javascript:myfunction() which of course fails in test.
Is there a way around this, or do I need to create custom buttons in my own advanced HTML?

Kind Regards, Garry.

Nick Jennings
Posts: 165
Joined: Mon May 14, 2012 12:06 pm

Re: Button Javascript

Postby Nick Jennings » Tue Feb 03, 2015 2:20 pm

Hi Garry,

The button components do not currently have any javascript properties. The only functions that a button has are stateful (changing a state's current value), linking to pages, or linking to specific components on a design (anchor links). You would need to build out a custom button within an Advanced HTML component.

We haven't had any requests to add any functionality like this, so I'll pass it along to our developers.

Thanks.
Nick Jennings
customerservice@protoshare.com
Site9, Inc. / Customer Support
blog.protoshare.com | twitter.com/protoshare


Return to “How Do I...”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests

cron