Former Member
inherit
guest@proboards.com
155913
0
Nov 23, 2024 21:36:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 17, 2013 9:40:08 GMT -8
Okay, I'm giving a try to creating a plug in and have my first question.
How do I associate the Tabs with the coding in the Components?
If I have a code in the Javascript Component that is activated through a tab, how do I tell the tab to activate the code?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 17, 2013 11:16:30 GMT -8
|
|
Former Member
inherit
guest@proboards.com
155913
0
Nov 23, 2024 21:36:31 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Nov 17, 2013 16:25:05 GMT -8
Thanks Jordan. I've actually already watched your tutorial prior to making this post and a couple more times again, but I'm still not getting it. It seems like it is a big hassle to get the Tabs value.
You would think it would be as simple as getElementById(The Tabs Id)
Is it much more than this?
|
|
#00AF33
14306
0
1
Sept 8, 2023 8:54:17 GMT -8
Jordan
What is truth?
11,838
October 2003
jab2
|
Post by Jordan on Nov 17, 2013 17:07:29 GMT -8
The function getElementById("the_id") is used to get a reference to an HTML element on the page, and if you wanted to do that you would use JQuery which is done like this $('#the_id'). What you are needing to access is the plugin information Proboards gives to you in Javascript. When you create a component in a tab under the "User Interface" tab, you are also creating a Javascript variable that you can access. These variables are available to you in Javascript on each page. You can also see these variables on the right sidebar. You can click one and hit "Insert" to see how to access it in Javascript. However, the default way of accessing the variable requires a lot of typing, so I like to set a variable with a shorter name to the same reference.
|
|