Encountering an issue with my postback JavaScript function in the ASP/BootStrap environment. After searching on stackoverflow for a solution, I couldn't find one that resolved my problem.
The problem is when I click on an image, the page reloads (the post back appears to work), but it doesn't return any value for that postback.
In this example,
onclick="__EVENTSPARAM('events_insertmaintenance','10774');
should trigger a specific code.
Sub insertmaintenance()
id = request("events_insertmaintenance")
blablabla
end sub
My
request("events_insertmaintenance")
returns a null value, although in this example it should return 10774.
Here is the shortened version of the code structure of my page:
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
...
</head>
<body>
<form id="Form_ID" name="Form_ID" method="POST" action="Shopa_VGP_Customers_Init.asp?which=5685&idfield=contactid&table=customers&database=&xtab=2">
<img name="events_insertmaintenance" id="events_insertmaintenance" src="images/ConfigurationTools.png" **onclick="__EVENTSPARAM('events_insertmaintenance','10774');**">
...
</form>
<script src="bootstrap/assets/libs/jquery/dist/jquery.min.js"></script>
...
</body>
</html>