| | |
convert PHP to javascript?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Java and JavaScript are two different technologies develop by different companies just with similar name and language structure
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Java is a programming language that is used almost everywhere. It can be in server side web pages (eg: JSP) or in the browser (Java applet) or in desktop software, mobile phones etc.
PHP is used mainly on the server side, so when you say PHP, you most likely mean server side PHP.
JSP is a Java framework (the most popular of many I believe), used to building Java server side pages.
Here is the JSP forum on this site:
http://www.daniweb.com/forums/forum24.html
You could get a lot of help with JSP there.
JavaScript on the other hand, is very different from the two. It does not run on the server, it only runs in the browser. It is comparable to VBScript or Jscript which is available only in IE browsers. JavaScript on the other hand runs in all major browsers.
Relation to Java:
JavaScript was originally called LiveScript. It was named JavaScript in order to promote Java. This was a marketing deal between Netscape who created JavaScript and Sun who created Java. Other then that, and that they both share the same syntax derived from C, there is no relationship.
When you first posted, I think everyone was under the impression that you could not use JSP on your host, or any other server side language - since you wanted to use JavaScript (which only runs in the browser). That is why PHP on a separate server was recommended (in addition to you having invested in the PHP review script). If you were in the JSP forum, JSP on a separate server would have been recommended.
But since your host allows you to use JSP and edit it, then there is really no need for a separate server.
I think you should let go of the PHP review script you have, and just focus on a JSP solution - either getting a JSP review script or having someone code a custom solution. This is the simplest solution, and the one that will get you the best SEO results.
If you want to tackle it yourself, then the JSP forum is where to start. JSP should actually be easier then any of the JavaScript or Flash solutions mentioned - those solutions are quite "sophisticated" compared to the JSP solution.
PHP is used mainly on the server side, so when you say PHP, you most likely mean server side PHP.
JSP is a Java framework (the most popular of many I believe), used to building Java server side pages.
Here is the JSP forum on this site:
http://www.daniweb.com/forums/forum24.html
You could get a lot of help with JSP there.
JavaScript on the other hand, is very different from the two. It does not run on the server, it only runs in the browser. It is comparable to VBScript or Jscript which is available only in IE browsers. JavaScript on the other hand runs in all major browsers.
Relation to Java:
JavaScript was originally called LiveScript. It was named JavaScript in order to promote Java. This was a marketing deal between Netscape who created JavaScript and Sun who created Java. Other then that, and that they both share the same syntax derived from C, there is no relationship.
When you first posted, I think everyone was under the impression that you could not use JSP on your host, or any other server side language - since you wanted to use JavaScript (which only runs in the browser). That is why PHP on a separate server was recommended (in addition to you having invested in the PHP review script). If you were in the JSP forum, JSP on a separate server would have been recommended.
But since your host allows you to use JSP and edit it, then there is really no need for a separate server.
I think you should let go of the PHP review script you have, and just focus on a JSP solution - either getting a JSP review script or having someone code a custom solution. This is the simplest solution, and the one that will get you the best SEO results.
If you want to tackle it yourself, then the JSP forum is where to start. JSP should actually be easier then any of the JavaScript or Flash solutions mentioned - those solutions are quite "sophisticated" compared to the JSP solution.
Last edited by digital-ether; Sep 10th, 2008 at 6:24 am.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Similar Threads
- convert php function to ajax? (JavaScript / DHTML / AJAX)
- Coldfusion image upload w. javascript thumbnail preview (ColdFusion)
- link c++ with javascript/html (C++)
- <script language=\"javascript\"> Display problem with PHP & MYSQL (PHP)
- converting from javascript to HTML? (Java)
Other Threads in the PHP Forum
- Previous Thread: Problem with Radio Button error "[object HTMLInputElement]"
- Next Thread: check if email address is correct without sending email?
| Thread Tools | Search this Thread |
advanced apache api array basics beginner binary broken cakephp check checkbox class cms code codingproblem combobox cookies cron curl database date datepart display dynamic echo email error file files folder form forms function functions google head href htaccess html image include includingmysecondfileinthechain insert ip javascript job joomla js limit link login mail menu mlm mobile multiple mysql oop outofmemmory paging parse password paypal pdf php problem procedure query radio ram random recursion remote script search server sessions smarty sms source space sql stored syntax system table traffic tutorial unicode up-to-date update upload url validator variable video web webapplications websitecontactform youtube






