NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 24, 2017, 02:06:20 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Projectile Motion Applet by Wee Loo Kang  (Read 15048 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
on: August 17, 2007, 08:08:21 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Code:
how to post live applet again  ;D?




http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/

[code]]<applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="." archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20"  id="weelookangresistance20"  width="750" height="550"></applet>][/code

seems can't follow the previous posts

Code:
<applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/" archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20" id="weelookangresistance20" width="750" height="550"></applet>

<applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/" archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20" id="weelookangresistance20" width="750" height="550"></applet>

my url:
http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/

my source:
<applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class"
  codebase="." archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar"
  name="weelookangresistance20"  id="weelookangresistance20"
  width="750" height="550">
  </applet>

Code:
<appletcode="_examples.weelookangresistance20.weelookangresistance20Applet.class"codebase="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/"archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar"name="weelookangresistance20"  id="weelookangresistance20"width="750" height="550"></applet>
[/code]
« Last Edit: August 17, 2007, 08:50:02 am by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: August 17, 2007, 09:37:19 am »

Applet created by Wee Loo Kang
The tag should be <applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="http://66.7.205.91/~lookangc/_apps/_examples/" archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20" id="weelookangresistance20" width="750" height="550"></applet>

You need to put it all in one line. Do not break it into more than one line (Hit enter within the tag)
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: August 17, 2007, 09:44:56 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

is it using insert code button

can show the text that i can copy and paste to understand how you do the live applet thing

thanks
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: August 17, 2007, 10:03:27 am »

You should just copy the applet tag. But you need to put all the applet tag in one line. (Without CR/LF: ie. jump to another line. Which you would not be able to find the difference).
Because this forum will add an html tag between lines. So it will break the applet tag.
However, there are some other error! I am trying to find out the reason.
For now. I would suggest you just link to your original web page.
The html code is (All in one line)
<iframe src="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/weelookangresistance06_Simulation.html" width=800 height=800>


 
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #4 on: August 17, 2007, 02:45:32 pm »

another applet
<iframe src="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/weelookangresistance06_Simulation.html"  width=800 height=800>
« Last Edit: August 19, 2007, 11:20:24 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #5 on: August 17, 2007, 02:58:43 pm »

You forgot to add spaces between iframe and src, and you need to add space between width and src.
I already corrected it for you. And please add some text string other than applet tag. Otherwise, the forum will complain no message entered.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #6 on: August 19, 2007, 11:37:26 pm »

can use the insert code button and copy and paste the text you used to create the live applet

i have problem following the copy and paste because my is text

thanks

Code:
put the text inside here, i copy exactly
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #7 on: August 20, 2007, 05:47:17 pm »

You did not need to use the insert code button.
Just type in the following text in one line
[iframe src="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/weelookangresistance06_Simulation.html"  width=800 height=800][/iframe]

You should replace [ with < and ] with >
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: August 20, 2007, 10:47:35 pm »

[applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="http://66.7.205.91/~lookangc/_apps/_examples/" archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20" id="weelookangresistance20" width="750" height="550"][/applet]

[applet code="_examples.weelookangresistance20.weelookangresistance20Applet.class" codebase="http://66.7.205.91/~lookangc/_apps/_examples/" archive="../../../_library/ejsBasic.jar,weelookangresistance20.jar" name="weelookangresistance20" id="weelookangresistance20" width="750" height="550"][/applet]
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #9 on: August 20, 2007, 11:26:41 pm »

There are two problems with the above applet tags, so I modified it to prevent crash my browser (runing in VISTA).
1. http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance20.jar is not exists.
2. Because we add some functions to let java applets communicate with html pages.
It would not allow applet site different from html site (Due to security reason).
So I suggest you upload jar files and html files to your server.
And add iframe command to show your web page (if you want applets to be shown as part of forum message) or just add URL of your web page.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #10 on: August 20, 2007, 11:43:29 pm »

i did it!!!

<iframe src="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/projectile.html" width=800 height=800>

Code:
[html]<iframe src="http://66.7.205.91/~lookangc/_apps/_examples/weelookangresistance06.app/projectile.html" width=800 height=800> </iframe>[/html]

It works in my own forum, where i am admin

http://66.7.205.91/~lookangc/forum/index.php?topic=3.msg4#msg4

could it be you are admin in your forum, and you can publish in  html code ? i type the html codes is just disappear!
Code:
[html][/html]


« Last Edit: August 20, 2007, 11:52:54 pm by lookang » Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #11 on: August 21, 2007, 09:31:01 am »

Yes.  it seems that the forum did not allow normal users to add html code as part of forum message.  I think it is for security reason. Sorry! Wink
Now. You can add EJS simulations to your own forum. I would suggest you just add URLs into the forum message when you want to announce it here. Thank you!
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #12 on: August 21, 2007, 12:59:19 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Login as admin goto

Posts and Topics

Bulletin Board Code

Enable basic HTML in posts (?):    check it!!

maybe now can  Grin
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #13 on: August 21, 2007, 01:50:26 pm »

From the provided information for enablePostHTML

This will allow the posting of some basic HTML tags:
Code:
  * <b>, <u>, <i>, <s>, <em>, <ins>, <del>
  * <a href="">
  * <img src="" alt="" />
  * <br />, <hr />
  * <pre>, <blockquote>


The applet tag was not included. So I modify the php code(Sources/Subs.php) and add applet tag.
May be it will work now.
Logged
lookang
Hero Member
*****
Offline Offline

Posts: 1784


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #14 on: August 21, 2007, 05:43:48 pm »

exciting codes !!

thanks for sharing. i will try them on my forum too

you are my idol  Grin
Logged
Pages: [1]   Go Up
  Print  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Quadratic Equation Applet by Wee Loo Kang
misc
lookang 3 13255 Last post September 06, 2007, 10:14:25 pm
by lookang
Fire work (projectile motion)
Examples for beginner who want to learn EJS
Fu-Kwun Hwang 1 10289 Last post February 16, 2009, 12:34:45 pm
by lookang
Applet on projectile motion with air resistance
Collaborative Community of EJS
LeeTl 2 10740 Last post March 23, 2009, 09:08:05 pm
by lookang
Another projectile motion (Set up initial condition)
Kinematics
Fu-Kwun Hwang 0 8715 Last post April 02, 2009, 04:12:53 pm
by Fu-Kwun Hwang
Trajectory of projectile motion
Kinematics
Fu-Kwun Hwang 0 7031 Last post September 04, 2009, 10:10:39 pm
by Fu-Kwun Hwang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.076 seconds with 23 queries.since 2011/06/15