rthurman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Aweber personalization for Confirm/Success/Already Subscribed pages?Thanks again….also sent you an add request on FB
Rich
Forum: Fixing WordPress
In reply to: Aweber personalization for Confirm/Success/Already Subscribed pages?I got it after inspecting the resulting HTML. There were extra line breaks in the script so WP out them in <p> tags so the closing script tag got munched.
So…User error…..
anyway…kristarella you are da Bombdiggity!!
Thanks
Rich
Forum: Fixing WordPress
In reply to: Aweber personalization for Confirm/Success/Already Subscribed pages?<script type=”text/javascript”>
var formData = function() {
var query_string = (location.search) ? ((location.search.indexOf(‘#’) != -1) ? location.search.substring(1, location.search.indexOf(‘#’)) : location.search.substring(1)) : ”;
var elements = [];
if(query_string) {
var pairs = query_string.split(“&”);
for(i in pairs) {
if (typeof pairs[i] == ‘string’) {
var tmp = pairs[i].split(“=”);
elements[unescape(tmp[0])] = unescape(tmp[1]);
}
}
}
return {
display: function(key) {
if(elements[key]) {
document.write(elements[key]);
} else {
document.write(“<!–If desired, replace everything between these quotes with a default in case there is no data in the query string.–>”);
}
}
}}();
</script>
<script type=”text/javascript”>formData.display(“email”)</script>
Test page:
Forum: Fixing WordPress
In reply to: Aweber personalization for Confirm/Success/Already Subscribed pages?So, I am getting past the 404 issue, but the sample script doesnt work on the page…any ideas?