Re: struts and javascript

2006-04-14 Thread 王曾wang_zeng
this is wrong. because as far as I know, a struts tag's atrribute sholud not be filled with mixed stuff by jsp codes and plain text. if you write this way: " > I guess the error won't occur.

Re: struts and javascript

2006-04-13 Thread Frank W. Zammetti
On Thu, April 13, 2006 12:26 pm, Michael Jouravlev said: > Or generate the target location in JSP like this: > > > var mytarget = > That's a good option too. > Then look up for target in your main Javascript function. I guess it > would be easier t

Re: struts and javascript

2006-04-13 Thread Michael Jouravlev
e the script in the JSP as you mentioned, or include it in the JSP > via server-side JSP include, or configure you web/app server to run .js files > through the JSP processor. > > Frank > > -Original Message- > From: "fea jabi" <[EMAIL PROTECTED]> >

RE: struts and javascript

2006-04-13 Thread Frank W. Zammetti
through the JSP processor. Frank -Original Message- From: "fea jabi" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: 4/13/06 9:14 AM Subject: struts and javascript In a JS file I created a function as below. function showPopup(htmlRewrite) { var w = 480, h = 340;

struts and javascript

2006-04-13 Thread fea jabi
In a JS file I created a function as below. function showPopup(htmlRewrite) { var w = 480, h = 340; if (document.all || document.layers) { w = screen.availWidth; h = screen.availHeight; } var popW = 200, popH = 100; var leftPos = (w-popW)/2, topPos = (h-popH)/2; window.open( 'htmlRewrite', "",

[OT] Re: struts and javascript

2005-12-14 Thread Dave Newton
fea jabi wrote: In my JSP, have to use the defined variable in javascript. How can I use it? var totalObj = document.getElementById("total"); Wow, that's so far off I'm not even sure where to start. Marked OT because this has more to do with a fundamental misunderstanding of how webapps wor

struts and javascript

2005-12-14 Thread fea jabi
In my JSP, have to use the defined variable in javascript. How can I use it? The below code is returning a null obj for totalObj in the javascript. . . var totalObj = document.getElementById("total"); totalObj=Number(obj1) + Number(obj2); .