- This topic has 5 replies, 3 voices, and was last updated 9 years, 8 months ago by support-tony.
-
AuthorPosts
-
amir55Participanthi dear all
I am tired of looking for a simple web example using javascript .js but not there any.
I created web project and amended index.jsp to access utility.js but not done why? even when CTRL +click on getName it does not lead me to function !! should I configure somewhere. I use myeclipse for spring 2014
I found a video but not working with me here are the files
************************* webroot/js/utilitiy.js
function getName (){
var name = “amir” ;
return name ;
}************************** indewx.jsp
<%@ page language=”java” import=”java.util.*” pageEncoding=”ISO-8859-1″%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<base href=”<%=basePath%>”><title>My JSP ‘index.jsp’ starting page</title>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”>
<!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
<script type=”text/javascript” src=”js/utility.js”> </script></head>
<body>
<table>
<tr>
<td> Name:
</td>
<td> <input id=”name” />
<input value=”lookup” type = “button” onclick=”document.getElementById(‘name’).value(getName);” />
</td></tr>
</table></body>
</html>
support-swapnaModeratorAmir,
onclick=”document.getElementById(‘name’).value(getName);” />
This code does not look right.In our Examples on Demand, there is a project named GoogleMapsExample which will demonstrate how to include a js in a JSP. Go to MyEclipse > Examples on Demand > JEE tab. Scroll down and look for Google Maps Mashup. Click on ‘Install’ to install the project to your workspace.
Our tutorials will only help you get started. For all development related queries like this one, I recommend you please post to development forums for help from other developers.
Let us know if you see any issues with MyEclipse.
amir55Participanthi sir
again my thanks to you personally
two point to make here
1 – the code of javascript is taken from your myeclipse webinar
so please follow webinar and send me the index.jsp and utility.jar
2 – how to put a query in development team forum i,e how to access it
simply I am grateful to you really
Amir
support-tonyKeymasterAmir,
The video you saw is for a very old release and we no longer have those samples. However, the video is very clear and you should be able to type in the sample code when viewing it (just pause at the relevant parts). There isn’t the capability to Ctrl-click on the function name and be taken to the file in which it is declared. That is a function of the Java editor but not of the JavaScript editor.
Refer to this document for more information on JavaScript support (note that the document is referring to release 2015, which is our latest release).
I’m not sure what your second question is. If you are referring to external development forums, mentioned by Swapna, then you will have to go to the relevant forum site to look for that information. Usually, you will have to register to post on forums and there will be a link to a registration page. For example, if you go to http://stackoverflow.com, which is one well-used development site, there is a “sign up” link to register for that site. The site also has a Help link for more information. There are other external development forums, also, but we can’t offer support for external sites.
I hope this helps.
amir55Participantdear tutor
thanks a lot but I could find a link to download your video tutorial in next
https://www.genuitec.com/forums/topic/eny-exmaple-to-create-using-javascript/#post-354128
the lesson goes so fast so no way to follow up without donloading
I wonder where we can find all MyEclipse video tutorials as a library to download and I run any in interest
take care
Amir
support-tonyKeymasterAmir,
You actually linked to an earler post by you, in this topic.
Please check out our learning center for various videos, explanations and tutorials for the MyEclipse features:
https://www.genuitec.com/products/myeclipse/learning-center/
Please let us know if you see any issues with MyEclipse.
-
AuthorPosts