console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 85)
Message:
casa do papel
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 99)
Message:
ValorVal 10
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 103)
Message:
valorPorc 78.28
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 104)
Message:
valorCheio 782.80
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 108)
Message:
ValorFinal 704,52
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 99)
Message:
ValorVal 10
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 103)
Message:
valorPorc 114.44200000000001
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 104)
Message:
valorCheio 1144.42
|
console-api |
log |
URL: https://d2rx7920ojogr7.cloudfront.net/asset.axd?id=4AAAAB-LCAAAAAAABAA9jzEPgjAQRv_LzWgpSImsLsbV0TA05QyobUl7EBPS_-5FAtvlvZd8uQU6aB4LjNCAmSJ5K4x3hI4E9WgxiqsO3cUHFLc7ZPD8147raMIwUjy-ImMPTZ6yVRgdwuB6fwgYJ-v3QG5B_AzmveNiw723uNMytanNwBALwi-Jl571OsnBzFSVdaUKlSslT4U815VkYfibUlV8QENhwvQD-VsKXuAAAAA%3d(Line 108)
Message:
ValorFinal 1029,98
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
error |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/sjs.js?t=637562606614219751(Line 1)
Message:
TypeError: Cannot read property 'getItem' of null
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
document was already loaded. Calling dinLoadFunction
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
dinLoadFunction called
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Cookie set. cname:[dinTrafficSource] cvalue:[eyJ1cmwiOiJodHRwczovL3d3dy5jYXNhZG9wYXBlbC5jb20uYnIvIiwicmVmZXJlciI6IiJ9] exdays:[90]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
InitPopup called
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
InitPopup done
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
event [submit] attached to the element [[object HTMLFormElement]] using [addEventListener] the function [function(event){var form=event.currentTarget;var formAction=form.getAttribute("action");var labelList={};if(formAction!=undefined&&formAction.search(/^http[s]?:\/\/[^\/]*\/in\/[0-9]*\/[^\/]*\//)==0){dinLogger.Write(dinLogger.DEBUG,"Dinamize's form ignored",form);return;}
if(dinSearchForm.DebugMode){debugger;}
if(formAction==undefined){formAction="Missing action form";dinLogger.Write(dinLogger.DEBUG,"Form without an action ",form);}
dinFunctions.addCookieToForm(document,form)
var urlPage=document.location.href;var uriPage=urlPage.replace(/^[a-z]*:\/\/[^\/]*/,"")
formAction=formAction.replace(urlPage,"");formAction=formAction.replace(uriPage,"");if(formAction==""){formAction="Missing action form";}
var labels=document.getElementsByTagName("label");for(var l=0;l<labels.length;l++){if(labels[l].htmlFor){labelList[labels[l].htmlFor]=labels[l].textContent;}}
var elemList={};var findEmail=false;var emailLeadTracker="";for(var e=0;e<form.elements.length;e++){var elem=form.elements[e];if(dinFunctions.hasSkipAttribute(elem)){dinLogger.Write(dinLogger.DEBUG,"Element ignored because dinSkipCapture attribute - ",elem.name);continue;}
elemName=elem.name.replace(/\[\]/g,"");if(elemName==""){dinLogger.Write(dinLogger.INFO,"Ignoring nameless element on post ",elem);continue;}
if(dinFunctions.validateDuplicity(form,elemName)){dinLogger.Write(dinLogger.ERROR,"Found diferent type inputs with same name - ",elemName);}
elemName=elemName.replace(/(\[)\d+?(\])/g,`$1$2`)
switch(elem.tagName){case"INPUT":switch(elem.type){case"checkbox":if(typeof(elemList[elemName])=="undefined"){elemList[elemName]=[];}
if(elem.checked==true){if(labelList[elem.id]!=undefined){elemList[elemName].push(labelList[elem.id]);}else{elemList[elemName].push(elem.value);}}
break;case"radio":if(elem.checked==true){elemList[elemName]=(labelList[elem.id]!=undefined)?labelList[elem.id]:elem.value;}
break;case"password":case"submit":case"file":case"button":case"reset":dinLogger.Write(dinLogger.INFO,"Field ignored. Type:["+elem.type+"] ",elem);break;case"email":if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}
elemList[elemName]=elem.value
break;default:elemList[elemName]=elem.value
var normalize=elemName.replace(/[-_]/,"").trim().toLowerCase();if(normalize=="email"){if(dinFunctions.validateEmail(elem.value)){elemList["{{cmp1}}"]=elem.value
findEmail=true;}else{dinLogger.Write(dinLogger.WARN,"Not a valid e-mail ",elem);}}else{if(dinFunctions.isCardNumber(elem.value)){dinLogger.Write(dinLogger.INFO,"Value discarded for Credit Card field ",elem);elemList[elemName]="**************";}}
if(elem.type=="hidden"&&elem.value.length>100){elemList[elemName]="(...)";dinLogger.Write(dinLogger.INFO,"Value discarded for large hidden field ",elem);}
break;}
break;case"SELECT":elemList[elemName]=[];var optionElements=elem.getElementsByTagName('option');for(var y=0;y<optionElements.length;y++){var opt=optionElements.item(y);if(opt.selected){elemList[elemName].push(opt.label);}}
break;case"TEXTAREA":dinLogger.Write(dinLogger.INFO,"Textarea ignored ",elem);break;default:elemList[elemName]=elem.value;break;}}
var ignoreElements=["captcha","_wpcf7","_wpcf7_version","_wpcf7_unit_tag","_wpnonce","_wpcf7_is_ajax_call","_wpcf7_locale","g-recaptcha-response","_viewstate","_previouspage","_viewstategenerator"];for(var i=0;i<ignoreElements.length;i++){elemList[ignoreElements[i]]=undefined;}
var listCode=dinConfigs.listCode;var updateMode=dinConfigs.updateMode;var fieldList={};if(dinConfigs.formHashConfig&&dinConfigs.formHashConfig[formAction]!=undefined){var formData=dinConfigs.formHashConfig[formAction];listCode=formData["listCode"];updateMode=formData["updateMode"];if(typeof formData["fieldRules"]==="undefined"||formData["fieldRules"]==null){dinLogger.Write(dinLogger.DEBUG,"No rules configured for this form",formAction);}else{if(formData["fieldRules"]["Variable"]!=undefined){elemList["{{cmp1}}"]=undefined;for(var elemName in formData["fieldRules"]["Variable"]){if(elemList[elemName]!=undefined){var fieldData=formData["fieldRules"]["Variable"][elemName];if(typeof elemList[elemName]==='string'){var oldValue=elemList[elemName];switch(fieldData["Type"]){case"DT":case"DH":var dateFormat=fieldData["Extras"]["format"];fieldList["cmp"+fieldData["Field"]]=dinFunctions.prepareDate(oldValue,dateFormat);break;case"FLT":var separator=fieldData["Extras"]["separator"];switch(separator){case",":var newValue=oldValue.replace(".","");var newValue2=newValue.replace(",",".");fieldList["cmp"+fieldData["Field"]]=newValue2;break;case".":var newValue=oldValue.replace(",","");fieldList["cmp"+fieldData["Field"]]=newValue;break;}
break;case"LV-2":var find=fieldData["Extras"]["separator"];var regFind=new RegExp(find,'g');var newValue=oldValue.replace(regFind,"|");fieldList["cmp"+fieldData["Field"]]=newValue;fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];break;case"PHN":var arrNum=oldValue.match(/\d+/g)
if(arrNum!=null){oldValue=arrNum.join("")}
fieldList["cmp"+fieldData["Field"]]=oldValue;var insertDDI=fieldData["Extras"]["insertDDI"];if(insertDDI!=undefined&&insertDDI=="S"){var ddi=fieldData["Extras"]["ddi"];fieldList["cmp"+fieldData["Field"]]=ddi+oldValue;}
break;default:fieldList["cmp"+fieldData["Field"]]=oldValue;break;}}else if(typeof elemList[elemName]==='object'){var oldValue=elemList[elemName];if(fieldData["Type"]=="LV-2"){fieldList["cmp"+fieldData["Field"]]=oldValue.join("|");fieldList["cmp"+fieldData["Field"]+"_action"]=fieldData["Extras"]["action"];}else{fieldList["cmp"+fieldData["Field"]]=oldValue[0];}}else{dinLogger.Write(dinLogger.ERROR,"Field: '"+elemName+"' | Type: "+typeof elemList[elemName]);}}}}
if(formData["fieldRules"]["Fixed"]!=undefined){for(var x in formData["fieldRules"]["Fixed"]){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]]=formData["fieldRules"]["Fixed"][x]["Value"];if(formData["fieldRules"]["Fixed"][x]["Type"]=="LV-2"){fieldList["cmp"+formData["fieldRules"]["Fixed"][x]["Field"]+"_action"]=formData["fieldRules"]["Fixed"][x]["Extras"]["action"];}}}}}else{if(!findEmail){dinLogger.Write(dinLogger.WARN,"No valid email found.",form);return;}}
var email="";var externalCode="";if(typeof fieldList.cmp1==="string"&&fieldList.cmp1!==""){email=fieldList.cmp1;}
if(typeof fieldList.cmp3==="string"&&fieldList.cmp3!==""){externalCode=fieldList.cmp3;}
if(typeof elemList["{{cmp1}}"]==="string"&&elemList["{{cmp1}}"]!==""){email=elemList["{{cmp1}}"];}
if(typeof elemList["{{cmp3}}"]==="string"&&elemList["{{cmp3}}"]!==""){externalCode=elemList["{{cmp3}}"];}
if(email===""&&externalCode===""){dinLogger.Write(dinLogger.WARN,"This form was mapped, but no valid email or external code was found. If you filled the form correctly, you'll need to remap it by deleting it's configuration and creating a new one.",form);return}
if(typeof dinLeadTracker!=="undefined"&&dinLeadTracker.isActive()){if(email!==""){dinLeadTracker.SetLeadEmail(email);}
if(externalCode!==""){dinLeadTracker.SetLeadExternalId(externalCode);}}
var sendElement={url:document.location.href.split("?")[0],title:document.title,formId:form.id,formAction:formAction,elemList:elemList,fieldList:fieldList,version:dinVERSION,listCode:listCode,updateMode:updateMode,};var jsonStr=JSON.stringify(sendElement);if(jsonStr==undefined){dinLogger.Write(dinLogger.ERROR,"Couldn't generate form's json ",sendElement);return;}
dinFunctions.requestKeepAlive('//receiver.emkt.dinamize.com/inc/'+dinConfigs.clientCode+'/'+dinConfigs.siteCode+'/'+encodeURIComponent(dinFunctions.base64Encode(jsonStr)),Math.floor((Math.random()*99999)+1));dinLogger.Write(dinLogger.DEBUG,"Data sent to Dinamize ",form);}]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
Event attached to form [object HTMLFormElement]
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
LeadTracking is active
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
LeadTracker: Starting to post
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
LeadTracker: Will not ask for consent
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
LeadTracker: There is no user info on cookie to post
|
console-api |
log |
URL: https://receiver.posclick.dinamize.com/forms/js/319779_1276.js(Line 240)
Message:
dinLoadFunction done
|
console-api |
warning |
URL: https://d2rx7920ojogr7.cloudfront.net/assets/shjs.js?t=637562606614219751(Line 1)
Message:
!! Há erros de scripts de terceiros !!
Por favor, contate a Empresa responsável pelo script.
|