Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

JavaScript Data Injection Campaigns

463 bytes added, 12:27, 27 April 2012
no edit summary
aryAjax_Settings[14] = "true"; //Click through to campaign?
aryAjax_Settings[15] = "divWarning"; //The id of the destination to which the table will be inserted
aryAjax_Settings[16] = "TableInsert"; //The types of processing. Table or Insert
//The fields to be returned into the array
//The column names of those fields
//The first field must always be the ID of the campaign
aryAjax_Settings[6] = "intCDA_1_Id,strCDA_1_field_0_0,strCDA_1_field_0_1"; aryAjax_Settings[12] = "Id,Field 1,Field 2"; aryAjax_Settings[17] = "intCDA_1_IdstrCDA_2_field_0_24,strCDA_1_field_0_0,strCDA_1_field_0_1strCDA_2_field_0_25";
fn_Ajax_BE_Process();
</syntaxhighlight>
In this on Changes are required to line x19 and line 26. Line 19, needs to have the key word "Insert" instead of "Table" Line 26, is the list of fields in the current campaign, into which the data will be inserted. The fields in line 24 will be loaded into the corresponding fields in line 26. i.e. in the demo above strCDA_1_field_0_0 will be loaded into strCDA_2_field_0_24 Whilst testing it is useful to change back to the "Table" setup to ensure the correct data is being retrieved. [[Category:JavaScript]]
7,528
edits