Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 15th Sep 2009, 11:16
fernandomm fernandomm is offline
Registered Developer
 
Join Date: May 2009
Posts: 114
Default Browser specific bugs?

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 );
	}});
The request is sent, but callback isn't executed.


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..
Reply With Quote
  #2  
Old 15th Sep 2009, 22:40
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,520
Default

These can result from usage errors. Try posting standalone test cases.
Reply With Quote
  #3  
Old 16th Sep 2009, 04:10
fernandomm fernandomm is offline
Registered Developer
 
Join Date: May 2009
Posts: 114
Default

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
});
As you might see, the form actually calls for doSearch() function, which is the RPC Request that i am having problems:

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 );
	}});
}
Reply With Quote
  #4  
Old 16th Sep 2009, 21:35
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,520
Default

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.
Reply With Quote
  #5  
Old 17th Sep 2009, 05:16
fernandomm fernandomm is offline
Registered Developer
 
Join Date: May 2009
Posts: 114
Default

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.
Reply With Quote
  #6  
Old 17th Sep 2009, 12:52
fernandomm fernandomm is offline
Registered Developer
 
Join Date: May 2009
Posts: 114
Default

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.
Reply With Quote
  #7  
Old 18th Sep 2009, 23:07
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,520
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved