I have recently experienced two problems with an application we moved from V10 to V11. The first is Java script in a on-click event that will not fire. Firebug errors function not found. If I run the same code on V10 it works fine. The second problem is where we have x-baisc code in free format area on a grid. Either the x basic code does not fire or sometimes the page displays the x-baisc code.
I have attached two short swf files that show the error in V11 and how it should perform in V10. I have also attached the actual code for the on-click event and the code in the free form edit region.
The app was developed in V10, it was moved and tested in V11, then we upgraded the server on 1/12 and all was fine until about 1/27 when the problems were noticed.
We are now rolling back to v10 app server and reinstalling the application from pre v11 code.
Has anyone else experienced this type of problem with an app developed in v10 and moved to V11?
Thanks,
Tom
Free Form edit region Code
Java script on click event code
I have attached two short swf files that show the error in V11 and how it should perform in V10. I have also attached the actual code for the on-click event and the code in the free form edit region.
The app was developed in V10, it was moved and tested in V11, then we upgraded the server on 1/12 and all was fine until about 1/27 when the problems were noticed.
We are now rolling back to v10 app server and reinstalling the application from pre v11 code.
Has anyone else experienced this type of problem with an app developed in v10 and moved to V11?
Thanks,
Tom
Free Form edit region Code
Code:
<p><font size=2>{Mcid_msg}</font></p> <p> <%a5 if "{data.Questionnum}" < "99" then %> <font size=4> <font face="Comic Sans MS" >Question {Cvqnum}:</font> </font> </p> <table width="572" border="1" cellpadding="5" cellspacing="0" style="WIDTH: 572px; HEIGHT: 49px" background=""> <tr> <td> <font face="Comic Sans MS"><font size=4> <font size=3 >{Question}</font></font></font></td> </tr> </table> <font size="6"><font face="Comic Sans MS"> </font></font> <p></p> <p style="MARGIN-RIGHT: 0px" dir=ltr><font size=4 face="Comic Sans MS"><font size=3><font size=2>{Head}: {_Unbound_Button_1}</font> </font></font> <p><font size=4 face="Comic Sans MS"><font size=3> {_Unbound_LinkedGrid_1} <p align=center> <%a5 else %> {_Unbound_Button_2} </p> <p align=center> {_Unbound_Button_3} <%a5 end if %> </p></font></font>
Java script on click event code
Code:
var vanswer1 = {grid.Object}.getValue('G','SELECTION', {grid.rowNumber}); var vtheanswer = {grid.Object}.getValue('G','RIGHTANSWER',{grid.rowNumber}); vanswer1 = vanswer1.toLowerCase(); vtheanswer = vtheanswer.toLowerCase(); if (vanswer1 == vtheanswer) { alert('CORRECT! Click SUBMIT to continue'); {grid.Object}.setValue('G','SHOWSUBMIT',{grid.rowNumber},'t'); } else { alert('TRY AGAIN'); {grid.object}.setValue('G','SELECTION',{grid.rowNumber},''); } {grid.Object}.ajaxCallback('G','{Grid.RowNumber}:all','setchoicevar','','_getData=true'); //Get a pointer to the parent Grid object that opened this Grid and execute a .refresh() method on the parent. var po = {grid.object}.getParentObject(); //If this Grid does not have a parent then 'po' will be false. if(po) po.refresh(true)