This topic is locked
[SOLVED]

Uncaught ReferenceError: ajax is not defined

4/10/2022 2:06:40 AM
PHPRunner General questions
H
headingwest author

Hi All,

Using PHPRunner 10.2, I copied the Email page as PDF example:
https://xlinesoft.com/phprunner/docs/how_to_email_the_current_page_as_pdf.htm

It doesn't say explicitly in the example, but I put this into a button on the page I want to send.

Nothing happens when I click the button, in the console in Chrome I get the following error:

button_Email.js?33576:2 Uncaught ReferenceError: ajax is not defined
at Object.pageObj.buttonEventBefore.Email (button_Email.js?33576:2:254)
at constructor.clickHandler (RunnerAll.js?33576:369:63)
at HTMLAnchorElement.callHandler (RunnerAll.js?33576:283:54)
at HTMLAnchorElement.dispatch (loadfirst.js?33576:1:40407)
at HTMLAnchorElement.r.handle (loadfirst.js?33576:1:37108)
pageObj.buttonEventBefore.Email @ button_Email.js?33576:2
clickHandler @ RunnerAll.js?33576:369
callHandler @ RunnerAll.js?33576:283
dispatch @ loadfirst.js?33576:1
r.handle @ loadfirst.js?33576:1

Any ideas?? Thanks.

H
headingwest author 4/10/2022

After a bit of research I found that the Ajax PDF was introduced in 10.3, time to start saving my pennies for an upgrade. It would be nice if there was some kind of discount for older versions.