PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

pass full name via javascript code

s2Member Plugin. A Membership plugin for WordPress®.

pass full name via javascript code

Postby antseo » September 18th, 2011, 1:23 am

I need to pass the full name along in some javascript code. The following will not work though...

Code: Select all
<script type="text/javascript" charset="utf-8" >
var pd_tags = new Array;
pd_tags['full_name'] = '%%user_full_name%%';
</script>
<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/1234567.js"></script>
<noscript><a href="http://polldaddy.com/poll/1234567/">Do you think blah blah blah?</a></noscript>


However, the result is not the full name but that line of text. How would I adjust what I have to accomplish this?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: pass full name via javascript code

Postby Cristián Lávaque » September 25th, 2011, 12:44 am

Where are you trying to do that? The template, the post/page body?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: pass full name via javascript code

Postby antseo » September 25th, 2011, 4:30 pm

hi there. In a page.
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron