Struts 1 Javascript Question

2008-03-27 Thread bhaarat Sharma
Hello I am using struts 1 to show a link to the user like this html:link page=/editProjectMonitor.do paramId=report_id paramName=report paramProperty=reportId target=_blank Edit/html:link However I want this link to open up from Javascript

Re: Struts 1 Javascript Question

2008-03-27 Thread Antonio Petrelli
2008/3/27, bhaarat Sharma [EMAIL PROTECTED]: Hello I am using struts 1 to show a link to the user like this html:link page=/editProjectMonitor.do paramId=report_id paramName=report paramProperty=reportId target=_blank

Re: Struts 1 Javascript Question

2008-03-27 Thread Laurie Harper
bhaarat Sharma wrote: Hello I am using struts 1 to show a link to the user like this html:link page=/editProjectMonitor.do paramId=report_id paramName=report paramProperty=reportId target=_blank Edit/html:link However I want this link to

Re: struts and javascript

2006-04-14 Thread 王曾wang_zeng
html:select name=Form1 property=typeselected onchange='showPopup(html:rewrite action=/PrepareSchedule.do/);' 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: html:select name=Form1

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', ,

RE: struts and javascript

2006-04-13 Thread Frank W. Zammetti
files 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

Re: struts and javascript

2006-04-13 Thread Michael Jouravlev
@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; if (document.all || document.layers) { w = screen.availWidth; h = screen.availHeight; } var popW = 200, popH = 100; var leftPos

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: script language=javascript var mytarget = html:rewrite action=/PrepareSchedule.do/ /script That's a good option too. Then look up for target in your main Javascript function. I

issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi I am trying to do a test application using struts, DWR I am having problem with document.getElementById method in javascript, this works fine in IE 6.0 and opera I am using struts tag html:text title=last property=last size=60 readonly=true / and then in my javascript doing the following

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
I am trying to do a test application using struts, DWR I am having problem with document.getElementById method in javascript, this works fine in IE 6.0 and opera I am using struts tag html:text title=last property=last size=60 readonly=true / and then in my javascript doing the following

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Ashish Kulkarni
Hi Thanx for the answer, where in documenation is it written that styleId is id?? Ashish --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: I am trying to do a test application using struts, DWR I am having problem with document.getElementById method in javascript, this works fine in IE

RE: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Slattery, Tim - BLS
Thanx for the answer, where in documenation is it written that styleId is id?? http://struts.apache.org/struts-taglib/tagreference-struts-html.html#htm l:text -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail:

Re: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Dave Newton
Ashish Kulkarni wrote: where in documenation is it written that styleId is id?? http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#text Identifier to be assigned to this HTML element (renders an id attribute). Dave

Re: issue with Struts , DWR, javascript in Firefox browser

2006-04-04 Thread Michael Jouravlev
On 4/4/06, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi Thanx for the answer, where in documenation is it written that styleId is id?? semi-offtopic Current Struts website is too busy and font in the left menu is too small, which is especially striking comparing to gigantic wiki font. JSP

Struts with javascript

2006-03-29 Thread Jose Maria Tristan
Hi: I have a text: html:text property=cadenaDesdeText maxlength=10/. I need use this control in a function of javascript. Por example function showText(){ alert(cadenaDesdeText); } How can i use any control of struts into a function?

Re: Struts with javascript

2006-03-29 Thread Deepa Khetan
When the HTMl page is rendered on screen, all the struts controls are rendered as normal HTMl controls. So u can refer them as document.forms [0].cadenaDesdeText.value. On 3/29/06, Jose Maria Tristan [EMAIL PROTECTED] wrote: Hi: I have a text: html:text property=cadenaDesdeText

RE: Struts with javascript

2006-03-29 Thread José María Tristán
ok. Thank you very much. -Mensaje original- De: Deepa Khetan [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 29 de marzo de 2006 11:55 Para: Struts Users Mailing List Asunto: Re: Struts with javascript When the HTMl page is rendered on screen, all the struts controls are rendered

Re: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Gary Feidt
I'm sorry, but this is a Javascript issue. If you want to use Struts, use Struts. Create an ActionForm to get your value from the drop-down list and then redirect to any number of Actions from your Action. I believe that is the easiest way, and a LOT less time consuming then sending all of

RE: why my page can't redirect under Struts with Javascript?

2006-02-21 Thread Scott Purcell
-Original Message- From: Gary Feidt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 7:44 AM To: user@struts.apache.org Subject: Re: why my page can't redirect under Struts with Javascript? I'm sorry, but this is a Javascript issue. If you want to use Struts, use Struts. Create

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Swapnil Patil
phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, February 19, 2006 10:12 PM Subject: Re: why my page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before,like follows: document.forms[0

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Jari Fredriksson
Swapnil Patil wrote: Hi, I modify my Javascript like follows: function goURL(tmp){ document.forms[0].action=eval(/Log/log.do?action=First); document.forms[0].submit(); } Is eval really needed? . Check whether you really need /Log in contexet path? Try wih following function. function

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
I tried follows: function goURL(tmp){ document.forms[0].action=eval(/Log/log.do?action=First); document.forms[0].submit(); } and function goURL(tmp){ document.forms[0].action=eval(/log.do?action=First); document.forms[0].submit(); } My page also can't redirect! And I try function

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
red phoenix wrote: I tried follows: function goURL(tmp){ document.forms[0].action=eval(/Log/log.do?action=First); document.forms[0].submit(); } and function goURL(tmp){ document.forms[0].action=eval(/log.do?action=First); document.forms[0].submit(); } My page also can't

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Martin Gainty
@struts.apache.org Sent: Monday, February 20, 2006 8:17 PM Subject: Re: why my page can't redirect under Struts with Javascript? red phoenix wrote: I tried follows: function goURL(tmp){ document.forms[0].action=eval(/Log/log.do?action=First); document.forms[0].submit(); } and function goURL(tmp

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Saul Qunming Yuan
Struts with Javascript? red phoenix wrote: I tried follows: function goURL(tmp){ document.forms[0].action=eval(/Log/log.do?action=First); document.forms[0].submit(); } and function goURL(tmp){ document.forms[0].action=eval(/log.do?action=First); document.forms[0].submit(); } My page

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread Dave Newton
Martin Gainty wrote: If you are looking for a way for JavaScript to dynamically change targetting action based on Javascript code take a look at http://husted.com/struts/tips/002.html Uh, no, I was answering the OP with regards to his hosed up JavaScript :) Dave

Re: why my page can't redirect under Struts with Javascript?

2006-02-20 Thread red phoenix
I try follows: function goURL(tmp){ document.forms[0].submit(); } I debug the Javascript,when running the statement document.forms[0].submit(); Javascript raise a error: Microsoft JScript running error:object can't support this attribute or method Why? On 2/21/06, Dave Newton [EMAIL

why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
I use Javascript in Struts,like follows: script language=JavaScript function goURL(tmp){ alert(tmp); document.forms[0].action=/log.do?action=+eval(tmp); document.forms[0].submit(); } /script html:form method=post action=log.do html:link page=/log.do?action=FirstFirst Page/html:link html:select

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
] To: user@struts.apache.org Sent: Sunday, February 19, 2006 6:48 PM Subject: why my page can't redirect under Struts with Javascript? I use Javascript in Struts,like follows: script language=JavaScript function goURL(tmp){ alert(tmp); document.forms[0].action=/log.do?action=+eval(tmp); document.forms[0

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
@struts.apache.org Sent: Sunday, February 19, 2006 6:48 PM Subject: why my page can't redirect under Struts with Javascript? I use Javascript in Struts,like follows: script language=JavaScript function goURL(tmp){ alert(tmp); document.forms[0].action=/log.do?action=+eval(tmp); document.forms[0].submit

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Saul Qunming Yuan
in this case. Saul - Original Message - From: red phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, February 19, 2006 10:12 PM Subject: Re: why my page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before,like

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, February 19, 2006 10:12 PM Subject: Re: why my page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before,like follows: document.forms[0].action=/Log/log.do?action

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread Swapnil Patil
. Saul - Original Message - From: red phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, February 19, 2006 10:12 PM Subject: Re: why my page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
- Original Message - From: red phoenix [EMAIL PROTECTED] To: user@struts.apache.org Sent: Sunday, February 19, 2006 6:48 PM Subject: why my page can't redirect under Struts with Javascript? I use Javascript in Struts,like follows: script

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread raja sekar
redirect under Struts with Javascript? My web context is Log,so I add prefix before,like follows: document.forms[0].action=/Log/log.do?action=+eval(tmp); but when I change the value of html:select,it still can't redirect,I am puzzled it for several days.I don't know

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before,like follows: document.forms[0].action=/Log/log.do?action=+eval(tmp); but when I change the value of html:select,it still can't redirect,I am puzzled

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread raja sekar
Subject: Re: why my page can't redirect under Struts with Javascript? My web context is Log,so I add prefix before,like follows: document.forms[0].action=/Log/log.do?action=+eval(tmp); but when I change the value of html:select,it still can't

Re: why my page can't redirect under Struts with Javascript?

2006-02-19 Thread red phoenix
. Saul - Original Message - From: red phoenix [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, February 19, 2006 10:12 PM Subject: Re: why my page can't redirect under Struts with Javascript? My

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. . script . var totalObj = document.getElementById(total); totalObj=Number(obj1) + Number(obj2);

[Struts Validator] JavaScript Validations

2005-04-13 Thread Rosario, Blossom
Hi, I am trying to use client as well as server-side validations using the Struts Validator. The mapping in the Struts config file is actionpath=/register type=com.pampers.registration.action.RegisterAction name=registerForm scope=session

Re: [Struts Validator] JavaScript Validations

2005-04-13 Thread Kumar deepak
Have a look at http://www.roseindia.net/struts/address_struts_validator.shtml Regards Deepak Kumar --- Rosario, Blossom [EMAIL PROTECTED] wrote: Hi, I am trying to use client as well as server-side validations using the Struts Validator. The mapping in the Struts config file is

struts validation javascript code

2005-02-22 Thread jonathan zhang
Hi folks it seems like struts prints all the javascript validation code from validation-rule.xml regardless wheather they are used or not, for example, i only use the basic validation-required. but the javasript functions such as validateCreditCard and validateEmail still gets printed regardless.