NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: lookang on August 25, 2008, 10:25:00 pm



Title: Physlet Electric field lines one positive & one negative charges java applet
Post by: lookang on August 25, 2008, 10:25:00 pm
Electric field lines generated by one positive and one negative charges applet

i copy n paste from the html and removed the spaces, it can't run, any idea why?  Grin
it seem to work when i click on this link ?
http://home.phy.ntnu.edu.tw/~lookang/Physletbuilder/Efieldgeneratedbyonepositiveandonenegativecharge01.html
 name="AppletNames" value="Efield">






reference: prof hwang's code





Physlets®, i.e., the Java applets themselves, are a registered trademark of Wolfgang Christian.  


Title: Re: i copy n paste from the html and removed the spaces, it can't run, any idea why?
Post by: Fu-Kwun Hwang on August 26, 2008, 06:09:51 am
It is working now. I just changed the following code:
from
timerID=setTimeout('init()',100);
to
timerID=setTimeout("init()",100);

And do not leave any line break between code. The server will change line break into <br />


Title: Re: i copy n paste from the html and removed the spaces, it can't run, any idea why?
Post by: lookang on August 26, 2008, 02:58:18 pm
so tricky, the website generated html. i was comparing using my eyeballs to spot the difference. :-\

it will help future users of
the html code of the downloaded and sent to email files can be easily copy and pasted to work with as little changes as possible :)


Thanks! i will try the other module builder soon :)


Title: Re: i copy n paste from the html and removed the spaces, it can't run, any idea why?
Post by: Fu-Kwun Hwang on August 26, 2008, 06:02:27 pm
I was not expecting user will use physletBuilder to generate simulation and post on my server.
O.K. I will modify the code to make it more consistent.

It is done. 2008/08/26


Title: Draw Electric field line with EJS
Post by: Fu-Kwun Hwang on November 06, 2009, 11:18:41 pm
Please check out Electric field structure and Field lines for two point charges  (http://Electric field structure and Field lines for two point charges)


Title: Re: Physlet Electric field lines one positive & one negative charges java applet
Post by: Monybarx on September 20, 2018, 11:39:52 am
Because of this, I have gained a lot more knowledge than I ever received.