Jump to content

Please, need to solve this error "...it's not allowed in AJAX request or JS handler"


Recommended Posts

Posted

Hi (again 😅

Ramdomly I get this message when running my application. 

... <br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead.

No idea why this happens and even less on how to solve it.
I guess it is a common error for newbies like me so, please, don't ask me too technical questions as, probably, I will not be able to answer them.

No idea on what I'm doing wrong (not having done)

Thank so much for your help 🙂
 

 

 

Posted

Hello,

Perhaps because this "erroneous" code is not executed every time. The logic of your application implies this. 

Are you using JSInterface methods?

Posted

Yes, but they should be called very time.

Is there a way to know which object or call causes the error in this line?

01:35:39.727||||[SERVER] Config Option: O310->cls:"unselectable"<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. unit:System.SysUtils

 

The matter is : Why does it say is refering a previous request,? I got it at the very first moment 

Posted

I could if I know what to put in it 😅

Currently I apply these settings

pTitulo.JSInterface.JSCall('addCls', ['.myAlDerecha']);
lMarchar.JSInterface.JSCall('addCls', ['.myAlAbajo']);
Grid.JSInterface.JSConfig('bufferedRenderer', [False]);
SaldoPdte.JSInterface.JSCall('addCls', ['unselectable']);
bSaldoPdte.JSInterface.JSCall('addCls', ['borderedondo_5']);
bSaldoPdte.JSInterface.JSAssign('originalBGColor', [uniColor2Web(color)]
JSInterface.JSConfig('inputType', ['number']);

Posted

anyway, I'm concerned on the part that say Config Option; O107->tabConfig: {id:"O107_id_tab"}
Is there a way to know what object/control is it talking about so I could check it directly?

Posted

Sherzod

Don`t know why but the Main form is created twice, I have the Mainform and a loginform.

All the errors happen just after FormCreate has been processed, no other event but the message happens

22:14:16.116|6|||[SERVER] Config Option: O100->plain:true<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. unit:System.SysUtils

Posted

Actually, no. Because don't know what put in it.
I should send the whole app as I don't know the origin of the problem. It seems that the modules are loaded (created) twice, but I do not call or create them

Maybe a simple test case would not make the error/message come up.
 

 

  • 1 year later...
Posted
------------------------------------
Date: 23/11/2023 14:02:47
User: 
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Versão: 3.0.0.549
IP: 
URL: 
Navegador: chrome
Navegador Versão: 119
OS: windows
SessionID: 1_Lk9ou1RXJO10DBB2E8D
Component: Grid_ConsXXXX (TUniDBGrid)
LastAjaxEvent: _dummy_
Form: TUniFrameCadXXXXX
Class: Exception
Message: Config Option: O14D82->bodyBorder:false<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead.
------------------------------------

 

Posted
Date: 23/11/2023 13:42:27
User: 
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Versão: 3.0.0.551
IP: 
URL: 
Navegador: chrome
Navegador Versão: 119
OS: windows
SessionID: 14_4QWDwTefSF10DBB6321
Component: Grid_ConsXXXXXXXXXXX (TUniDBGrid)
LastAjaxEvent: dummy
Form: TUniFrameCadXXXXXX
Class: Exception
Message: Config Option: O9DC2->tabIndex:222<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead.

 

  • 3 months later...
Posted

i got the same error sometimes. It appears when a form is opened and only for some users. Its not always the same user.

In the form i only shows a pdf file, that was created. Anyone found a working solution or even the source for this error? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...