I think I have found the reason there is a difference but I don't see how
to fix it.
I think the difference is between the function jevdo() in j804 and j805,
which are both in the scriptfiles j64-804/addons/ide/jhs/utiljs.ijs and
j64-805/addons/ide/jhs/utiljs.ijs
shown below.
I should add that this error occurs only for radio buttons in groups, not
for simple buttons and although the error alert is presented, processing
continues and is done correctly in most cases.
Also there is another new problem that occurs with other radio buttons.
All of the problems seem to occur because these radio buttons are being
submitted early, before the
`'made' jhselect Choices `
control in my app -- shown in this next line -- is clicked/tapped by the
user.
jhtr ('made'jhselect Choices);('output1' jhtextarea '';25;20);('output2'
jhtextarea '';30;50)
I could use suggestions about how to revise my app for the new JHS.
j805:
function jevdo()
{
JEV= "ev_"+jform.jmid.value+"_"+jform.jtype.value;
//alert(JEV);
//try{eval(JEV)}
//catch(ex)
if('undefined'==eval("typeof "+JEV))
{
// undef returns true or does alert and returns false for events that
should have handlers
if(null==jevtarget)return true;
if(jform.jtype.value=="click"||jform.jtype.value=="enter"){alert("not
defined: function "+JEV+"()");return false;}
return true;
}
try{var r= eval(JEV+"();")}
catch(ex){alert(JEV+" failed: "+ex);return false;}
if('undefined'!=typeof r) return r;
return false;
}
804:
function jevdo()
{
JEV= "ev_"+jform.jmid.value+"_"+jform.jtype.value;
// alert(JEV);
//try{eval(JEV)}
//catch(ex)
if('undefined'==eval("typeof "+JEV))
{
// undef returns true or does jsubmit for buttons
if(null==jevtarget)return true;
var c=jevtarget.getAttribute("class");
if(c=="jhb"||c=="jhab"||c=="jhmab")jsubmit();
return true;
}
try{var r= eval(JEV+"();")}
catch(ex){alert(JEV+" failed: "+ex);return false;}
if('undefined'!=typeof r) return r;
return false;
}
On Thu, Mar 16, 2017 at 9:44 AM, Brian Schott <[email protected]>
wrote:
> I am getting the following error when I click button 2 in my
> http://127.0.0.1:65002/bridge window and similar errors when I click any
> button. This is not happening in JHS 804.
>
> Notice there is no ending / on the first error line.
>
> http://127.0.0.1:65002
> not defined:function ev_2_click()
>
>
> The "offending" lines of code follow.
>
> HBS =:
>
> jhtr ('2' jhradio'two';0;'bidgroup');('3'
> jhradio'♠';0;'suitgroup');('1'
> jhradio'double';0;'dblgroup');('100' jhradio'100';0;'honorgroup');(
> '1'jhradio'They';0;'wetheygroup')
>
> )
>
> JVERSION
> Engine: j805/j64/darwin
> Beta-9: commercial/2016-07-05T17:11:06
> Library: 8.05.08
> Platform: Darwin 64
> Installer: J805 install
> InstallPath: /applications/j64-805
> Contact: www.jsoftware.com
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm