Simple question for the HTML5 Skin!! I've created two buttons that I want to go to a URL when clicked.
I add the button and the URL to the click location in the properties and the button does not work.
Is there any information about what to put into the Click property to go to a URL using an HTML 5 skin?
Also I'd like to make a tooltip for the button. Is there a recommended way to add a row to the UI Text table?
Regards, Bruce
Add Button in HTML5; click to URL
-
BruceMcNaughton
- Propeller Head
- Posts: 29
- Joined: Fri Dec 29, 2006 4:48 am
- Location: Shiplake, Oxfordshire, England
- Contact:
-
BruceMcNaughton
- Propeller Head
- Posts: 29
- Joined: Fri Dec 29, 2006 4:48 am
- Location: Shiplake, Oxfordshire, England
- Contact:
Re: Add Button in HTML5; click to URL
Answered part of my own question ...
Looks like the click needs a bit of java script ... I entered window.location.href = 'url';
And the button works. If there are alternatives, please let me know.
Still would like to know how to set the UI Text to go with the buttons. Any thoughts?
Regards, Bruce
Looks like the click needs a bit of java script ... I entered window.location.href = 'url';
And the button works. If there are alternatives, please let me know.
Still would like to know how to set the UI Text to go with the buttons. Any thoughts?
Regards, Bruce
-
Harrison73
- Propeller Head
- Posts: 14
- Joined: Thu Aug 07, 2008 10:28 am
Re: Add Button in HTML5; click to URL
I found it a little cumbersome to specify the tooltip in HTML 5 skin.. Only way to do it, that i could figure, was to open the skin in the text editor and define new tooltip properties in the <Strings> section.. I submitted an enhancement request to see about getting custom button Text properties supported through the UI Text tab in the skin file..