JSON API を呼び出すスクリプト ファイルがあり、現在のログイン ユーザー名を呼び出しの一部として送信する必要があります。私は次のことを試しました:-
$(document).ready(function () {
var name = prompt("Please enter your packageid", "test");
var fullurl = 'http://localhost:8080/jw/web/json/workflow/process/list?j_username=kermit&hash=9449B5ABCFA9AFDA36B801351ED3DF66&loginAs=' + HttpContext.Current.User.Identity.Name + 'packageId=' + name;
$.ajax({
type: "GET",
url: fullurl,
dataType: "JSONP",
success: function (result) {
//code goes here
しかし、次のエラーが発生します:- 'HttpContext' は未定義です