Re: Please confirm css ok from client-side jscript validation
Sorry for the delay ,yes all works fine cheers 4 your contribution. Peter Alfors wrote: You can either link to a javascript file: SCRIPT language=JavaScript src=myJavascriptFile.js/SCRIPT Or include the javascript code directly: SCRIPT language=JavaScript function myFunct() {} /SCRIPT and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: I have placed the CSS file in my struts-bbnpa( named web app) and not directly in WEB-INF directory. but as follows - /struts-bbnpa/css/bbnpa.css same level as WEB-INF I have used the LINK tag as the href the client's browser should not be able to access the style sheet. as demonstrated - works fine . CHEERS!! link rel=stylesheet href=css/bbnpa.css charset=ISO-8859-1 type=text/css/struts-bbnpa/css/bbnpa.css nevertheless how do i embed the javascript within jsp as i had js working on my college assignment web-site (a timed window status scroll ) albiet wont work on my companies web project. any ideas. Cheers again chuck -- 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: Please confirm css ok from client-side jscript validation
Cheers 4 that advice , i did try the javascript declartion and inclued the javascript code directly , thus the jsp worked but no javascript event.Thus i 'll try the src (source). I have a created a javascript file at the same level as the CascadeStyle Sheet - ( /struts-bbnpa / css/ graphics ) thus do i do the same i.e ( struts-bbnpa / javascript/ ) and must i add the js extension to javascript file when i amend it later within windows.Thus shall i create html page with the embeded js code within the js file. cheers chuck ( trying it out ) SCRIPT language="JavaScript" src="myJavascriptFile.js">/SCRIPT> Or include the javascript code directly: SCRIPT language="JavaScript"> function myFunct() {} /SCRIPT> and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: > I have placed the CSS file in my struts-bbnpa( named web app) and > not directly in WEB-INF directory. but as follows - > /struts-bbnpa/css/bbnpa.css" same level as WEB-INF > > I have used the LINK tag as the href the client's browser should not > be able to access the style sheet. as demonstrated - works fine . > CHEERS!! > link rel="stylesheet" href="css/bbnpa.css" > charset="ISO-8859-1" > type="text/css">"/struts-bbnpa/css/bbnpa.css" > nevertheless how do i embed the javascript within jsp as i had js > working on my college assignment web-site (a timed window status > scroll ) albiet wont work on my companies web project. any ideas. > > Cheers again chuck > > > -- > 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 dilwch bob copi. > -- 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 dilwch bob copi.
Re: Please confirm css ok from client-side jscript validation
Cheers Peter and the other similiar examples must of been a bad day as all is well with my javascript running on jsp . Some how the directly included js code wouldn't work , thus i made sure that it was embeded within the head elements and valar yippy do it works fine . Until the next prob cheers chuckie Peter Alfors wrote: You can either link to a javascript file: SCRIPT language=JavaScript src=myJavascriptFile.js/SCRIPT Or include the javascript code directly: SCRIPT language=JavaScript function myFunct() {} /SCRIPT and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: I have placed the CSS file in my struts-bbnpa( named web app) and not directly in WEB-INF directory. but as follows - /struts-bbnpa/css/bbnpa.css same level as WEB-INF I have used the LINK tag as the href the client's browser should not be able to access the style sheet. as demonstrated - works fine . CHEERS!! link rel=stylesheet href=css/bbnpa.css charset=ISO-8859-1 type=text/css/struts-bbnpa/css/bbnpa.css nevertheless how do i embed the javascript within jsp as i had js working on my college assignment web-site (a timed window status scroll ) albiet wont work on my companies web project. any ideas. Cheers again chuck -- 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 dilwch bob copi. -- 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: Please confirm css ok from client-side jscript validation
The source (src) attribute should work. This can be very helpful if you have common methods that you want to share across multiple pages. SCRIPT language=JavaScript src=/struts-bbnpa/javascript/myJavascriptFile.js/SCRIPT notice the leading '/' and also, do you have the ending /SCRIPT tag, this is required as well. As for the js extension... here is an snippet from HTML: The Definitive Guide by Oreilly. The value of the src attribute is the URL of the file containing the JavaScript program. The stored file should have a MIME type of application/x-javascript; but will also be properly handled automatically by a properly configured server if the filename suffix is .js. Looking at my computer, I have the MIME type set. However, I did not set this manually. Either it was a default of windows, or an application that I loaded added it. HTH, Pete Chuck Amadi wrote: Cheers 4 that advice , i did try the javascript declartion and inclued the javascript code directly , thus the jsp worked but no javascript event.Thus i 'll try the src (source). I have a created a javascript file at the same level as the CascadeStyle Sheet - ( /struts-bbnpa / css/ graphics ) thus do i do the same i.e ( struts-bbnpa / javascript/ ) and must i add the js extension to javascript file when i amend it later within windows.Thus shall i create html page with the embeded js code within the js file. cheers chuck ( trying it out ) SCRIPT language=JavaScript src=myJavascriptFile.js/SCRIPT Or include the javascript code directly: SCRIPT language=JavaScript function myFunct() {} /SCRIPT and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: I have placed the CSS file in my struts-bbnpa( named web app) and not directly in WEB-INF directory. but as follows - /struts-bbnpa/css/bbnpa.css same level as WEB-INF I have used the LINK tag as the href the client's browser should not be able to access the style sheet. as demonstrated - works fine . CHEERS!! link rel=stylesheet href=css/bbnpa.css charset=ISO-8859-1 type=text/css/struts-bbnpa/css/bbnpa.css nevertheless how do i embed the javascript within jsp as i had js working on my college assignment web-site (a timed window status scroll ) albiet wont work on my companies web project. any ideas. Cheers again chuck -- 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 dilwch bob copi. -- 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. begin:vcard n:; x-mozilla-html:FALSE org:BRIMG SRC=http://www.irista.com/logo/irista.gif;BRBRFONT Color=#80FONT SIZE=2BBringing Vision to Your Supply Chain adr:;; version:2.1 end:vcard
Re: Please confirm css ok from client-side jscript validation
Hi, Peter the js code direct script> /script> procedure worked within the head element and the directive of script language="JavaScript". Thus at a later stage i'll try and config src just 4 knowledge purposes as i've got another dillema with java invalid packages declarations now!! hard life hey. Cheers again Chuck. Peter Alfors wrote: The source (src) attribute should work. This can be very helpful if you have common methods that you want to share across multiple pages. SCRIPT language="JavaScript" src="/struts-bbnpa/javascript/myJavascriptFile.js">/SCRIPT> notice the leading '/' and also, do you have the ending /SCRIPT> tag, this is required as well. As for the js extension... here is an snippet from "HTML: The Definitive Guide" by Oreilly. "The value of the src attribute is the URL of the file containing the JavaScript program. The stored file should have a MIME type of application/x-javascript; but will also be properly handled automatically by a properly configured server if the filename suffix is .js." Looking at my computer, I have the MIME type set. However, I did not set this manually. Either it was a default of windows, or an application that I loaded added it. HTH, Pete Chuck Amadi wrote: > Cheers 4 that advice , i did try the javascript declartion and inclued > the javascript code directly , thus the jsp worked but no javascript > event.Thus i 'll try the src (source). > I have a created a javascript file at the same level as the > CascadeStyle Sheet - ( /struts-bbnpa / css/ graphics ) thus do i do > the same i.e ( struts-bbnpa / javascript/ ) and must i add the js > extension to javascript file when i amend it later within windows.Thus > shall i create html page with the embeded js code within the js file. > > cheers chuck ( trying it out ) > >> SCRIPT language="JavaScript" src="myJavascriptFile.js">/SCRIPT> >> >> Or include the javascript code directly: >> >> SCRIPT language="JavaScript"> >> function myFunct() {} >> /SCRIPT> >> >> and call methods from whichever event you want: onLoad, onClick, etc >> >> HTH, >> Pete >> >> Chuck Amadi wrote: >> >> > I have placed the CSS file in my struts-bbnpa( named web app) >> and >> > not directly in WEB-INF directory. but as follows - >> > /struts-bbnpa/css/bbnpa.css" same level as WEB-INF >> > >> > I have used the LINK tag as the href the client's browser should >> not >> > be able to access the style sheet. as demonstrated - works fine . >> > CHEERS!! >> > link rel="stylesheet" href="css/bbnpa.css" >> > charset="ISO-8859-1" >> > type="text/css">"/struts-bbnpa/css/bbnpa.css" >> > nevertheless how do i embed the javascript within jsp as i had js >> > working on my college assignment web-site (a timed window status >> > scroll ) albiet wont work on my companies web project. any ideas. >> > >> > Cheers again chuck >> > >> > >> > -- >> > 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 dilwch bob copi. >> > > > -- > 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 dilwch bob copi. > Name: peter.alfors.vcf peter.alfors.vcf Type: VCard (text/x-vcard) Encoding: 7bit Description: Card for Peter Alfors -- 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;
Re: Please confirm css ok from client-side jscript validation
You can either link to a javascript file: SCRIPT language=JavaScript src=myJavascriptFile.js/SCRIPT Or include the javascript code directly: SCRIPT language=JavaScript function myFunct() {} /SCRIPT and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: I have placed the CSS file in my struts-bbnpa( named web app) and not directly in WEB-INF directory. but as follows - /struts-bbnpa/css/bbnpa.css same level as WEB-INF I have used the LINK tag as the href the client's browser should not be able to access the style sheet. as demonstrated - works fine . CHEERS!! link rel=stylesheet href=css/bbnpa.css charset=ISO-8859-1 type=text/css/struts-bbnpa/css/bbnpa.css nevertheless how do i embed the javascript within jsp as i had js working on my college assignment web-site (a timed window status scroll ) albiet wont work on my companies web project. any ideas. Cheers again chuck -- 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.