APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

EJS_5.0_beta_140506 and EJS_5.0_beta_140421 post and replies

Return to the EJS_5.0_beta_140506 and EJS_5.0_beta_140421 thread
Login to post to this thread

EJS_5.0_beta_140506 and EJS_5.0_beta_140421
Chi-Feng Lin
28 Posts

I run or export my job normally with EJS_5.0_beta_140421. But with EJS_5.0_beta_140506, most of objects can't display when running. Is there anyone help me to check the error?

Thank you for all your help.

Chi-Feng

Attached File: Ex_Cantilever_CF_20140512.zip


Replies to EJS_5.0_beta_140506 and EJS_5.0_beta_140421

Re: EJS_5.0_beta_140506 and EJS_5.0_beta_140421 -
lookang Avatar
lookang
222 Posts

hi Chi-Feng Lin,

i was only able to export in EJS_5.0_beta_140414.

i understand that EJS is still in beta meaning it could still be buggy for the time being.

EJS_5.0_beta_140506 does not produce EJSS models correctly for your model

by the way, your model is awesome :) like the ability to touch();

Post edited May 14, 2014 at 1:30 AM EST.

Attached File: debug.png


OSP@SG blog
OSP@SG Digital Library


Re: Re: EJS_5.0_beta_140506 and EJS_5.0_beta_140421 -
Chi-Feng Lin
28 Posts

Dear lookang

Thank you. Your work and source files help me a lot.

Chi-Feng



Re: EJS_5.0_beta_140506 and EJS_5.0_beta_140421 -
Francisco Esquembre
228 Posts
Hi Chi-Feng, That was an interesting one! In the last version, we changed EjsS to generate XHTML files, instead of HTML files. This forces the HTML code in HTMLArea elements to be more correctly formatted. See the code below. One other thing I remembered, but never thought as possible cause of problems before, is that Label elements accept valid HTML code. This gives more freedom to write nice labels, But also forces you to use valid HTML code. One of your labels has this text as property: ( a < b ) which is not valid HTML because of the <. Change it to this: ( a < b ) and this will be fixed. Now, again to the HTMLArea element. Your code reads now like this: ??

?????
??????????????????????
?????????????????????

????????
????????????????????????????

???????????????????????????????

Change it to this: (notice the /> ending for some tags) ??

?????
??????????????????????
?????????????????????

????????
????????????????????????????

???????????????????????????????

With these two corrections, the example exports ok. Paco

Re: Re: EJS_5.0_beta_140506 and EJS_5.0_beta_140421 -
Chi-Feng Lin
28 Posts

Dear Paco

All problems are fixed. Thanks a lot.


Chi-Feng



Re: EJS_5.0_beta_140506 and EJS_5.0_beta_140421 -
mrg_psu
9 Posts

This is a different problem with ejss but I didn't think it worthy of a new thread.

I was porting one of my ejs apps and I've come across two things I've not been able to figure out.

The first was displaying values for the slider value on the slider itself.  I couldn't seem to get formats I've used before (even mundane formats) to display any numerical value on the slider.  I've gotten a work around but I'm wondering if this is a deprecated feature that won't carry into ejss.

The second is using the call _view.clearData() to clear data from a trace.  The attached source file has that statement commented out in custom function rewinder().  The model runs fine.  If that call is not commented out, the model hangs when rewinder is called (whenever any of the slider values are changed).  This used to work in ejs, what do I do differently now?  Is this documented somewhere in the wiki? I have to confess I couldn't find anything on it, and the original rewinder() was based on info from Wolfgang.

Thanks in advance for help!

-Mike Gallis

Attached File: ejss_src_BungeeJumpingbeta5.zip



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book