Posting Base 64 encoded string via Ajax Post

Get help using Construct 2

Post » Tue Sep 03, 2013 4:22 am

I'm trying convert the below in a string that I can then bae64 encode using btoa( myString)

But i can't for the life of me get the below Json string formatted in a way that i can run the btoa function on it.

    "event": "Signed Up",
    "properties": {
        // "distinct_id" and "token" are
        // special properties, described below.
        "distinct_id": "13793",
        "token": "e3bc4100330c35722740fb8c6f5abddc",
        "Referred By": "Friend"

I've tried using \n to replace all the carriage returns. and "" for all the " and still i can't get this to work.

Would be great if C2 could handle JSON in the editor. The AJAX Object is kind of crappy to deal with and for other projects i've written my own plugins to get around this.....

Having a bad JSON formatting day. Please help
Posts: 24
Reputation: 1,277

Post » Tue Sep 03, 2013 6:03 am

I made my own plugin to do that for me, i think there is a way to search for all those characters using C2 c2 functions.
Posts: 1
Reputation: 152

Return to How do I....?

Who is online

Users browsing this forum: FishInABucket, kelany and 5 guests