Re: HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?
Hi, have i got to create a JavaScript (Resource Folder) at the same level as Cascade Style Sheets, thus each JavaScript code to be named separatly and given a .js extension, in order to include in .jsp pages. ie </i></b> <br><b><i> Cheers Chuck# Satish Khanzode wrote: Thanks -Original Message- From: Chuck Amadi [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 4:37 PM To: Satish Khanzode Subject: Re: HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page? Hi , As requseted . "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html"%> <%@ page language ="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> Brecon Beacons National Park charset="ISO-8859-1" type="text/css"> // create scrolling status window <p>function infoscroll(seed,looped) <br>{ <br> var text1 = " W E L C O M E T O BRECON BEACONS NATIONAL PARK <br>AUTHORITY PARC CENEDLAETHOL BANNAU BRYCHEINIOG. The Brecon Beacons <br>National Park has some of the finest landscape in Wales. These walks and <br>activities have been designed to help <br> you discover this wonderful countryside around you. !!"; <br> var text2 = " N O W OPEN TO THE PUBLIC "; <br> var msg=text1+text2; <br> var putout = " "; <br> var c = 1; <p> if (looped > 10) <br> { window.status="Brecon Beacons National Park Authority - Parc <br>Cenedlaethol Bannau Bryncheiniog"; } <br> else if (seed > 100) <br> { <br> seed--; <br> var cmd="infoscroll(" + seed + "," + looped + ")"; <br> timerTwo=window.setTimeout(cmd,100); <br> } <br> else if (seed <= 100 && seed > 0) <br> { <br> for (c=0 ; c < seed ; c++) <br> { putout+=" "; } <br> putout+=msg.substring(0,100-seed); <br> seed--; <br> var cmd="infoscroll(" + seed + "," + looped + ")"; <br> window.status=putout; <br> timerTwo=window.setTimeout(cmd,100); <br> } <br> else if (seed <= 0) <br> { <br> if (-seed < msg.length) <br> { <br> putout+=msg.substring(-seed,msg.length); <br> seed--; <br> var cmd="infoscroll(" + seed + "," + looped + ")"; <br> window.status=putout; <br> timerTwo=window.setTimeout(cmd,100); // 100 <br> } <br> else <br> { <br> window.status=" "; <br> looped += 1; <br> var cmd = "infoscroll(100," + looped + ")"; <br> timerTwo=window.setTimeout(cmd,75); // 75 <br> } <br> } <br>} <br>// --> <p><!-- <br>infoscroll(100,1) <br>// --> <p> [home] [up] [map] href="news.jsp">[news] [contact] href="cym-index.jsp">[cymraeg] [help] Foot and mouth - see here for latest information Beacons Bus / Bws y Bannau - service starts May 28th - advance details here National Park Visitor Centre, Libanus (Mountain Centre) is still CLOSED Places you CAN visit and walks you CAN do! (updated with phone nos.) Volunteers' Newsletter Spring 2001 now available for download (320KB - PDF format) New National Park Officer appointed. Christopher Gledhill joins the Authority from the Clyde Muirshiel Regional Park, Renfrewshire in Scotland - see press release See jobs Introduction to the Park Archaeology Education Park Management,href="english/wardens-index.jsp"> Warden Services & href="english/wardens-volunteer.jsp">Volunteers Planning Community Development Corporate Services Things to do in the Park Free Resources & Gallery Kids Stuff! Publications by post Job Opportunities Press Releases Links to other National Parks There are National Parks all over the world, set up by nations to protect their most valuable scenery and wildlife. Some National Parks are in wilderness areas, others are landscapes where people have lived and worked for thousands of years. The Brecon Beacons National Park is one of these 'working' landscapes, evolving over the centuries as a harmonious blend of natural beauty and human history. ©Brecon Beacons National Park Authority 1999-2001. border="0" alt="Best viewed with any browser"> Cheers Chuck. Satish Khanzode
Re: HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?
Hi, there folks , Firstly regarding Cascade Style Sheets it worked by moving it to were web apps was looking at top level. My next problem i have scripted a infoscroll script (window status in JavaScript for our Index.jsp , thus it works on my personnal site albeit not my conpanies prototype. I have scripted before with JavaScript in html elements only and works fine any suggestions Brecon Beacons National Park charset="ISO-8859-1" type="text/css"> //create scrolling window status
cheers chuck "Dudley Butt@i-Commerce" wrote: Does anyone have an example of this? -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
RE: HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?
You can get help of including JAVASCRIPT FILE.js and style sheet in struts jsp from the below lines of code: e.g: <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/app.tld" prefix="marsh" %> Regards, Manoj -Original Message- From: Dudley Butt@i-Commerce [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 1:50 PM To: '[EMAIL PROTECTED]' Subject:HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page? Does anyone have an example of this?
HOW TO INCLUDE JAVASCRIPT FILE.js in your struts jsp page?
Does anyone have an example of this?