Hi,
I need to write a JavaScript function to process an external request. For which I need to pass some values such as session, cookie, DB values, from server side into the JavaScript function.
However, I am not sure how can I pass these values from the server side after processing into javascript function. I have added a PXTextEdit control
<px:PXTextEdit ID="UsrSessionCookie" runat="server" Size="XL" DataField="UsrSessionCookie" Visible="False" />
which I though I can use to read the values using below syntax into JavaScript but I am not able to get it if I make these PXTextEdit Visible="False".
px_alls['UsrSessionCookie'].getValue();
I have also tried below to get values but no luck-
document.getElementById("ctl00_phF_form_UsrSessionCookie");
Also, I have to make sure that server side code executes first which will get all required values and then process the JavaScript request.
Any suggestions?
Thank you
Best answer by KrunalDoshi
View original