"ew_CurrentPage is not defined"

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
polinevol
User
Posts: 24

"ew_CurrentPage is not defined"

Post by polinevol »

Hi,
Trying to migrate my PhpMaker app from version 2018 to 2019.0.9, I get the following error code: "ew_CurrentPage is not defined" in a ajax request :

//Table-specifc ->Add/Copy Page ->Startup script

$.post(ew_CurrentPage(), {"myajax": 1, "token": EW_TOKEN, "value": $("#x_myid").val() },function(result) { // Postback your custom data (with the synchronizer token)
result = JSON.parse(result);
......
......
......
};
Can someone show me how to continue unsing "ew_CurrentPage" variable in PhpMaker 2019 ?


arbei
User
Posts: 9387

Post by arbei »

The EW_ and ew_ prefixes are removed, read Migrating to v2019: http://www.hkvstore.com/phpmaker/doc/migrate.htm


polinevol
User
Posts: 24

Post by polinevol »

Hi,
Thank you for this quick response. But I get the same error with just "CurrentPage".

//Table-specifc ->Add/Copy Page ->Startup script

$.post(CurrentPage(), {"myajax": 1, "token": EW_TOKEN, "value": $("#x_myid").val() },function(result) { // Postback your custom data (with the synchronizer token)
result = JSON.parse(result);
......
......
......
};
Help please !!!



Post Reply