|
<< Click to Display Table of Contents >> Navigation: Telegram > 2023 > 09 > 10 > Telegram_2023-09-10T15 |
2023-09-10T15:11:13
Is this part of a call stack generated by IntraWeb?
This is not a good example because there is some important information missing (possibly because you got this line from a RTL/VCL unit that appeared on the stack, and no debug information for this unit is present.
The ideal format is this above
2023-09-10T15:13:00
The important part is the unit name and line number.
That's where the exception originated from
2023-09-10T15:14:21
The address is useful in case you don't have the line number and you can attach the debugger to the same executable, so you can find the source code position from the address, but this is irrelevant if your stack trace is correct and you have the line number
2023-09-10T15:16:40
I have ajaxcall in fronend. that execute function in backend.
how can I return value from backend to fornend?
2023-09-10T15:26:54
This demo shows exactly that:
type: link https://github.com/Atozed/IntraWeb/tree/master/15/Delphi/NewCallback
2023-09-10T15:27:29
check the code in property ScriptEvents of the button captioned \Call Multiply\. See the Multiply callback method code
2023-09-10T15:28:08
thank you. I will try
2023-09-10T15:39:34
Is it possible somthing like this?
2023-09-10T15:41:25
I think this type of ajax needs a content handler?
2023-09-10T15:53:54
there is no need create a content handler.
Anyway, there is no need to do that either. There's virtually no difference between the code that you posted above to this one below, except that you are making it more difficult for you:
ajaxCall(\YourCallbackMethodName\, {param1: 1, param2: 10}, false,
function(response) {
console.log(response);
}
);
2023-09-10T15:54:42
ajaxCall() method already does the setup of everything for you.
2023-09-10T15:57:43
You should use it as:
function fetch () {
ajaxCall(\YourCallbackMethodName\, null, false,
function(response) {
console.log(response);
}
);
}
way simpler than the code you have above