|
#1
|
|||
|
|||
|
Hello,
I have a dynamic form that works perfectly on Firefox but have some bugs on IE8 and Safari. Example: at IE8, checkboxes items only show up when mouse is over it, otherwise they doesn't show up. The same happens with a button. Another example: Safari and IE8 doesn't seem to run a RpcRequest callback. Code: Code:
isc.RPCManager.sendRequest({ params: postData,
showPrompt: true,
prompt: 'Buscando...',
actionURL: 'scGrid.php',
callback: function (rpcResponse, data, rpcRequest) {
search_layout.show();
search_view.setContents( rpcResponse.data );
}});
Is it normal to happen? Any ideas of what could be causing this kind of problems? Also, what do you use to debug SmartClient under IE? Last edited by fernandomm; 16th Sep 2009 at 04:10.. |
|
#2
|
|||
|
|||
|
These can result from usage errors. Try posting standalone test cases.
|
|
#3
|
|||
|
|||
|
Hi,
Thank you for your reply. It is a really long form. But here it is: Code:
isc.DynamicForm.create(
{ "ID" : "search_form",
"action" : null,
"canSubmit" : false,
"fields" : [ { "defaultValue" : null,
"titleOrientation" : "left",
"type" : "header"
},
{ "colSpan" : 2,
"defaultValue" : null,
"name" : 1,
"showTitle" : false,
"title" : null,
"titleOrientation" : "left",
"type" : "text"
},
{ "defaultValue" : "Autonomías",
"titleOrientation" : "left",
"type" : "header"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[0]",
"startRow" : false,
"title" : "ANDALUCIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[1]",
"startRow" : false,
"title" : "ARAGON",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[2]",
"startRow" : false,
"title" : "ASTURIAS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[3]",
"startRow" : false,
"title" : "BALEARES",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[4]",
"startRow" : false,
"title" : "CANARIAS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[5]",
"startRow" : false,
"title" : "CANTABRIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[6]",
"startRow" : false,
"title" : "CASTILLA Y LEON",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[7]",
"startRow" : false,
"title" : "CASTILLA-LA MANCHA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[8]",
"startRow" : false,
"title" : "CATALUÑA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[9]",
"startRow" : false,
"title" : "CEUTA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[10]",
"startRow" : false,
"title" : "COMUNIDAD VALENCIANA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[11]",
"startRow" : false,
"title" : "EXTREMADURA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[12]",
"startRow" : false,
"title" : "GALICIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[13]",
"startRow" : false,
"title" : "MADRID",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[14]",
"startRow" : false,
"title" : "MELILLA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[15]",
"startRow" : false,
"title" : "MURCIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[16]",
"startRow" : false,
"title" : "NAVARRA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[17]",
"startRow" : false,
"title" : "PAIS VASCO",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "2[18]",
"startRow" : false,
"title" : "RIOJA, LA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : "Sector",
"titleOrientation" : "left",
"type" : "header"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[0]",
"startRow" : false,
"title" : "ALIMENTACION",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[1]",
"startRow" : false,
"title" : "CONGELADOS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[2]",
"startRow" : false,
"title" : "DIETETICOS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[3]",
"startRow" : false,
"title" : "DROGUERIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[4]",
"startRow" : false,
"title" : "FRUTOS SECOS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[5]",
"startRow" : false,
"title" : "LICORES",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[6]",
"startRow" : false,
"title" : "PERECEDEROS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[7]",
"startRow" : false,
"title" : "REFRESCOS",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : false,
"endRow" : false,
"name" : "3[8]",
"startRow" : false,
"title" : "REPOSTERIA",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : "Alimentos",
"titleOrientation" : "left",
"type" : "header"
},
{ "defaultValue" : true,
"name" : "5[0]",
"title" : "Frutos_Secos",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : true,
"name" : "5[1]",
"title" : "Chocolates",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : true,
"name" : "5[2]",
"title" : "Pan",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "defaultValue" : true,
"name" : "5[3]",
"title" : "Mermeladas",
"titleOrientation" : "left",
"type" : "checkbox"
},
{ "align" : "center",
"click" : "function() { doSearch(); }",
"colSpan" : 12,
"title" : "Buscar",
"titleOrientation" : "left",
"type" : "button"
}
],
"left" : 20,
"numCols" : 12,
"position" : "relative",
"saveOnEnter" : true,
"top" : 20
});
Code:
function doSearch()
{
postData = search_form.getValues();
// Send request to server
isc.RPCManager.sendRequest({ params: postData, showPrompt: true, prompt: 'Buscando...', actionURL: 'scGrid.php', callback: function (rpcResponse, data, rpcRequest) {
search_layout.show();
search_view.setContents( rpcResponse.data );
}});
}
|
|
#4
|
|||
|
|||
|
For future reference, this is not a standalone test case, nor is it minimal. However your problem is that formItem names must be valid JavaScript identifiers.
|
|
#5
|
|||
|
|||
|
Could you please explain what is the correct way of sending multiple checkboxes as an array?
Based on your reply, the "[" and "]" and the number at the begging are the problems. |
|
#6
|
|||
|
|||
|
Just for the record. I have fixed the issue with the checkboxes that doens't show up on IE by using the theme SmartClient ( i was previously using the Enterprise one ).
I am pretty sure that there is a bug at the Enterprise theme. |
|
#7
|
|||
|
|||
|
No, you can see checkboxes working fine in the Showcase with IE8. There is a problem with how you've set up your deployment, and you should probably figure it out or it could come up again later.
|