Apple iPad HIG?(Apple iPad HIG? [closed])
是否违反Apple人机界面指南制作不会旋转到不同方向的iPad应用程序,如果它是用于自助服务终端模式操作?
Is it against Apple Human Interface Guidelines to make an iPad app that does not rotate to different orientations, if it is intended for kiosk mode operation?
原文:https://stackoverflow.com/questions/3630526
更新时间:2024-02-12 08:02
最满意答案
看来我能够修复语法以使其可操作....如果将数组传递给json来执行。
我将JS / AJAX更改为:
/* Old Variable Definitions //var dataObj = {}; //dataObj["id"] = $(this).data('id'); //dataObject["column"] = $(this).data('column'); //dataObj["action"] = "get"; // "get" or "set"*/ /* New Syntax: */ var data_id = $(this).data('id'); var data_action = "get"; var column_toact_on = $(this).data('column'); $.ajax({ url: 'view_agency_info.php', type: 'POST', //data: dataObj, // OLD array data: {id : data_id, action: data_action, column: column_toact_on}, dataType: 'json', success: function(data){ alert("Wooptee Doo Basil!");}
It appears I was able to fix the syntax to get it operable.... Had to do with passing the array into json to execute.
I changed the JS/AJAX to:
/* Old Variable Definitions //var dataObj = {}; //dataObj["id"] = $(this).data('id'); //dataObject["column"] = $(this).data('column'); //dataObj["action"] = "get"; // "get" or "set"*/ /* New Syntax: */ var data_id = $(this).data('id'); var data_action = "get"; var column_toact_on = $(this).data('column'); $.ajax({ url: 'view_agency_info.php', type: 'POST', //data: dataObj, // OLD array data: {id : data_id, action: data_action, column: column_toact_on}, dataType: 'json', success: function(data){ alert("Wooptee Doo Basil!");}
相关问答
更多-
你有JS错误。 在此代码段中删除})之后的分号: encode: true, }); .done(function(data) { if(data.status == "OK"){ 并为此片段执行相同操作,在})之后删除分号 } else { $("#ajax_id").html(data.status).addClass("cargando"); } }); .fail(function( jqXHR, textStatus, errorThrown ) { ...
-
.ajax错误中的JSON无效(Invalid JSON inside .ajax error)[2022-07-20]
xhr.reponseText的值是xhr.reponseText ? 只需使用console.log()打印出来。 除非您将错误页面格式化为JSON,否则您可能从服务器获得了一些标准的500 HTML,这就是您无法将其解析为JSON的原因。 jQuery没有规定服务器在发生错误时返回的responseText What is the value in xhr.reponseText? Just print it out using console.log(). Unless you are formatt ... -
这是你想要做的吗? { "appId": "name", "apiKey": "apikeyhere", "public": "./", "ignore": [ "stamplay.json", "**/.*", "**/node_modules/**" ], "headers": [ { "source": "**/*.@(html|css|js|php)", "headers": [ { ...
-
看来我能够修复语法以使其可操作....如果将数组传递给json来执行。 我将JS / AJAX更改为: /* Old Variable Definitions //var dataObj = {}; //dataObj["id"] = $(this).data('id'); //dataObject["column"] = $(this).data('column'); //dataObj["action"] = "get"; // "get" or "set"*/ /* New Syntax: */ ...
-
$.get("/fulfill/order/${orderID}",{},function(response){ console.log(response); }) 如果您的控制器的操作仅接受POST请求: $.post("/fulfill/order/${orderID}",{},function(response){ console.log(response); }) ; 如果你想传递更多参数(即: "/fulfill/order/${orderID}"?id=4343&b ...
-
ajax和json数组中的错误(error in ajax and json array)[2023-10-09]
在下面替换 $.each(data.route, function(index, route)... 同 $.each(Level.route, function(index, route) { alert(route.lat) }); 这将解决您的问题。 Replace below $.each(data.route, function(index, route)... With $.each(Level.route, function(index, route) { alert ... -
您的代码中有两个问题。 第一件事是你不必使用数据模块来加载json - 实际上它对数据没有任何作用 - 所以你的图表是空的。 你应该将数据放入系列属性 - 记住一件事它需要数组,而不是一个对象,所以在这种情况下它应该是这样的(这样的选项包括3个系列,其中2个没有数据): series: [series, { name: 'All visits', lineWidth: 4, marker: { radius: 4 }, }, { ...
-
尝试使用.success而不是.success来处理回调。 还可以使用response.data来获取解析的JSON响应 $http.get(url) .then(function(response) { $scope.locations = response.data; console.log(response.data); }) .catch(function(data) { console.error("NO ...
-
这解决了OP的问题 右键单击您的文件并使用记事本打开它,单击File - > Save as ,如果不是,则将编码更改为UTF-8 This Solved the OP's Question Right click on your file and open it with notepad, click on File -> Save as, change encoding to UTF-8 if it's not
-
我认为你的问题在于使用dataType以及你实际输出的内容。 dataType选项用于告诉jQuery要返回的数据类型。 就个人而言,我会把它留下来,因为jQuery可以很容易地猜到这一点。 其次,您实际上并没有从PHP脚本中输出任何JSON。 PHP中的数组不会自动转换为JSON。 你需要转换它。 此外,您应该告诉浏览器使用标头会发生什么。 在PHP中: header("Content-Type: application/json"); //so jQuery knows what to expect ...