If I understand you correctly, you just want to call ASHX
from a client side JavaScript
.
If so, it is no CSP
problem at all. The page could be generated by JSP
or PHP
with the same result, a HTML
page. The problem probably lies somewhere in your JavaScript
code. Try some tutorials on ASHX
, or find some ready-made AJAX
solution.
Since it's a CSP
page, it doesn't have to be static. You should better use some Caché ObjectScript
code to generate repeated code and insert some content from the database. For example:
for i=1:1:3 {
&html<
<tr>
<td><label>Value no.#(i)#</label></td>
<td><input type="text" name="value#(i)#" id="value#(i)"></td>
</tr>
>
}
This generates three rows with Value no.1
to Value no.3
labels.