Categories | Question details Back To List | ||
Grid problem Hi all, using a grid I have the problem with some urls. For example: mygrid.attachEvent( "onRowDblClicked", function( id, ind ) { var data = id.split( "%%" ); var req = "?clientID=<? echo $_REQUEST['clientID'] ?>&admID="+data[1]+"&mdl=adm30"; if ( data[0] == "adm30adm" ) { if ( ind == 0 ) { location.href="adm30adm.inc.php"+req; } else if ( ind == 1 ) { location.href="adm30dak.inc.php"+req; } else if ( ind == 4 || ind == 5 || ind == 9 || ind == 10 ) { location.href="adm30fc.inc.php"+req; } }); IE6 and IE7 are working with a url like this especailly included "&" as url divider. Other browsers want to get just "&". What can I do to solve this problem for all browsers or is it necessary to decide which browser is used. Thanks so lot Klaus Answer posted by Support on Jan 22, 2009 05:02 Actually there must not be problem with such approach , it must work with all browsers. If you are using special chars inside data you may change the code to the var req = "?clientID="+encodeURIComponent("<? echo $_REQUEST['clientID'] ?>")+"&admID="+encodeURIComponent(data[1])+"&mdl=adm30"; |