inherit
193226
0
May 22, 2013 22:07:12 GMT -8
oxym0r0n
17
April 2013
oxym0r0n
|
Post by oxym0r0n on Apr 23, 2013 10:51:25 GMT -8
Is there a way to retrieve data from specific pre-created custom profile fields and edit those fields for a user in a javascript? I'm not looking just to put the value of the field into a template. I need to turn the value of a custom profile field into a variable that I can manipulate in javascript and then set the ending variable to replace the value of the custom profile field. Is this possible?
I thought of using keys, but there is not enough documentation yet available for them and I'm confused on how they work. I'm a beginner at programming.
Thanks for any help!
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 23, 2013 18:44:58 GMT -8
Is there a way to retrieve data from specific pre-created custom profile fields and edit those fields for a user in a javascript? I'm not looking just to put the value of the field into a template. I need to turn the value of a custom profile field into a variable that I can manipulate in javascript and then set the ending variable to replace the value of the custom profile field. Is this possible? I thought of using keys, but there is not enough documentation yet available for them and I'm confused on how they work. I'm a beginner at programming. Thanks for any help! From a coding perspective Custom Fields are read-only while Keys are read/write so if you desire dynamic remote storage then keys are the way to go. If you have a specific key usage scenario that confuses you then describe it.
|
|
inherit
193226
0
May 22, 2013 22:07:12 GMT -8
oxym0r0n
17
April 2013
oxym0r0n
|
Post by oxym0r0n on Apr 24, 2013 20:01:00 GMT -8
Okay, I started to figure out how to use keys. I'm having trouble now with calling functions from my javascript component. (I'd create a new thread, but I'm not allowed to now?)
Just doing a simple test so I can figure out how everything works and I can't seem to get it going.
Custom Page HTML:
$[zone_1] <input type="button" onClick="testForm();">
My plugin's javascript component:
var testForm = function(){ window.alert("JS works!"); };
I don't understand why clicking the button does not create an alert box?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Apr 25, 2013 16:26:12 GMT -8
So you're adding a button to a custom page, where are you placing the script? Can you link or PM me a link to the custom page?
|
|