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 Edit However I want this link to open up from Javascript instead! For javascript I have a code like the following function openPopup() { windowReference = window.open('/cmrs/editProjectMonitor

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 > page="/editProjectMonitor.do" paramId="report_id" > paramName="report" > paramProperty="reportId" target="_blank"> > Edit

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 Edit However I want this link to open up from Javascript instead! For javascript I have a code like the following function openPopup() { windowReference = window.open('/cmrs/editProjectMonitor.do?report_id=<%=WHAT TO

Re: Struts, AJAX, JSP, and JavaScript question

2006-12-04 Thread Adam Gordon
nd that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Adam Gordon" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 3:43 PM Subject: Struts, AJAX, JSP, and JavaScript question I have a JSP and

Re: Struts, AJAX, JSP, and JavaScript question

2006-12-04 Thread Adam Gordon
Frank- Yikes, I had no idea this thread would take on a life of its own...regardless, the execScripts function was exactly what I was looking forhad to tweak it to accomodate for the "type='text/javascript'" attribute on an opening

RE: Struts, AJAX, JSP, and JavaScript question

2006-12-01 Thread Levan Dvalishvili
t those two errors below. Levan Dvalishvili Support Lead  US Verticali,Inc (646) 736 - 6075 -Original Message- From: Chris Pratt [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 9:08 PM To: Struts Users Mailing List Subject: Re: Struts, AJAX, JSP, and JavaScript question (

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Martin Gainty
ordon" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 3:43 PM Subject: Struts, AJAX, JSP, and JavaScript question >I have a JSP and there's a link in the rendered page that makes an AJAX call > (to a Struts action) when clicked. The results of that action, and the

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Dave Newton
From: Chris Pratt [mailto:[EMAIL PROTECTED] > eval() evaluates JavaScript, not XML or HTML. Well, in FF, apparently it evaluates XML to some degree, huh? Dave > On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > > > (interestingly, in IE I

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Chris Pratt
eval() evaluates JavaScript, not XML or HTML. (*Chris*) On 11/29/06, Dave Newton <[EMAIL PROTECTED]> wrote: From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > (interestingly, in IE I get a syntax error, because it's trying to > interpret the markup as script, but in FF it just quietly doesn't

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
Yeah, can't say I knew it either :) One would assume then that what you ge back from eval()'ing valid XML is a Document object that you can then use DOM methods on, just as you do in IE if you get responseXML from XMLHttpRequest (assuming it was in fact an XML response)... that'd be pretty close t

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
s > - Original Message - > From: "Frank W. Zammetti" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Wednesday, November 29, 2006 12:49 AM > Subject: Re: Struts, AJAX, JSP, and JavaScript question > > >> That will only work i

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > I guess maybe it examines the contents your eval'ing > and differentiates between pure markup and script? Interesting! It must be; I didn't know it would do that. My first thought (here, by "thought" I mean "hope") was that FF had made XML into

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Frank W. Zammetti
Yeah, those messages make sense I think... I guess FF realizes that your trying to eval something that's purely markup and tries to parse it as XML... incorrect nesting of the tags in the first case makes sense for that message, as no closing tag makes sense for the second, if it were trying to par

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Musachy Barroso
You will save a lot of time if you use something that is done already, and tested, like the links provided by Frank. If you still want to try it yourself you can check "Bind.js" : http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/org/apache/struts2/static/dojo/struts/wid

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Dave Newton [mailto:[EMAIL PROTECTED] > From: Chris Loschen [mailto:[EMAIL PROTECTED] > > Perhaps I'm missing something > > Yes; that eval evaluates *javascript*. ...generally. In FireBug if you eval("baz") in the console it will print a bold "baz". Dave

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Chris Loschen [mailto:[EMAIL PROTECTED] > Perhaps I'm missing something Yes; that eval evaluates *javascript*. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Chris Loschen
sure if that makes sense -- still waking up this morning. Hope it helps. Chris -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 7:49 AM To: Struts Users Mailing List Subject: RE: Struts, AJAX, JSP, and JavaScript question From: Frank W. Zammetti

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Martin Gainty
or copying of it or its contents - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, November 29, 2006 12:49 AM Subject: Re: Struts, AJAX, JSP, and JavaScript question > That will only work if

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-29 Thread Dave Newton
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > (interestingly, in IE I get a syntax error, because it's trying to > interpret the markup as script, but in FF it just quietly doesn't > work, not even a notice in Firebug). Something else interesting in FF: eval("") "XML tag name mismatch"

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Frank W. Zammetti
That will only work if the response is nothing but JavaScript, in which case your 100% correct (although many people say that eval() should be renamed evil() and should be avoided like the plague... I'm not *quite* that extreme in my avoidance of it). As a quick proof: var

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Chris Pratt
Or you could just call eval(ajax.responseText). (*Chris*) On 11/28/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Hi Adam, If your doing straight AJAX yourself, i.e., directly interacting with the XMLHttpRequest object, this won't execute script for you automatically. In fact, it won't do m

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Frank W. Zammetti
Hi Adam, If your doing straight AJAX yourself, i.e., directly interacting with the XMLHttpRequest object, this won't execute script for you automatically. In fact, it won't do much of anything for you automatially, aside from parsing XML if that's your return type. Otherwise, it's just text to t

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Musachy Barroso
In struts 2 we already do that for you(link tag and button tag in the ajax theme), this is the code to extract the javascript sections(from Dojo): parse : function(s) { this.log("Parsing: " + s); var match = []; var tmp = []; var scripts = []; while(match){ match = s.match(/]

Struts, AJAX, JSP, and JavaScript question

2006-11-28 Thread Adam Gordon
I have a JSP and there's a link in the rendered page that makes an AJAX call (to a Struts action) when clicked. The results of that action, and the contents of the response are set as the innerHTML on a hidden defined inside the afore mentioned rendered page. The is then un-hid. Everything is

Re: struts & javascript question

2005-11-20 Thread Laurie Harper
t;Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: struts & javascript question Date: Fri, 18 Nov 2005 11:05:29 -0500 Look for examples in the net or you can use validate method in the form it is easier. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wro

Re: struts & javascript question

2005-11-18 Thread Srinivas Jadcharla
gt;Reply-To: "Struts Users Mailing List" > >To: Struts Users Mailing List > >Subject: Re: struts & javascript question > >Date: Fri, 18 Nov 2005 11:05:29 -0500 > > > >Look for examples in the net or you can use validate method in the form > it > >is

Re: struts & javascript question

2005-11-18 Thread fea jabi
using dynaactionforms. would prefer using the the validator xml for this. thanks for your response. From: Srinivas Jadcharla <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: struts & javascript question Date: Fri,

Re: struts & javascript question

2005-11-18 Thread Srinivas Jadcharla
ere can I find an example that does such stuff? > > Thanks. > > > >From: Srinivas Jadcharla <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: Struts Users Mailing List > >Subject: Re: struts & javascript question > >Date:

Re: struts & javascript question

2005-11-18 Thread fea jabi
ers Mailing List Subject: Re: struts & javascript question Date: Fri, 18 Nov 2005 10:57:36 -0500 Use Validate method in the Action Form or write your own Validator. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > In my JSP > have a checkbox. When it is checked by user have

Re: struts & javascript question

2005-11-18 Thread Srinivas Jadcharla
Use Validate method in the Action Form or write your own Validator. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > In my JSP > have a checkbox. When it is checked by user have to make sure 2 of the > entries are enteried. > > i.e > chkBox1 -- checkbox --- checked > txtfield1

struts & javascript question

2005-11-18 Thread fea jabi
In my JSP have a checkbox. When it is checked by user have to make sure 2 of the entries are enteried. i.e chkBox1 -- checkbox --- checked txtfield1 --- Should have entered value. txtfield2 Should have entered value. Also, have a 2 radio buttons. When sele

Re: JavaScript question?

2005-07-25 Thread Frank W. Zammetti
AIL PROTECTED] Sent: Monday, July 25, 2005 4:10 PM To: Struts Users Mailing List Subject: Re: JavaScript question? Hi Sezhiyan, There isn't any "standard" way of doing this... what's happening is that the request is coming back just like any other would that updates what the user

RE: JavaScript question?

2005-07-25 Thread Balasubramaniam, Sezhiyan
] Sent: Monday, July 25, 2005 4:10 PM To: Struts Users Mailing List Subject: Re: JavaScript question? Hi Sezhiyan, There isn't any "standard" way of doing this... what's happening is that the request is coming back just like any other would that updates what the user sees. As

Re: JavaScript question?

2005-07-25 Thread Frank W. Zammetti
Hi Sezhiyan, There isn't any "standard" way of doing this... what's happening is that the request is coming back just like any other would that updates what the user sees. As you mentioned though, the save as dialog appears instead... there is no event you can hook that will tell you when the

JavaScript question?

2005-07-25 Thread Balasubramaniam, Sezhiyan
Though this is not a direct struts question, hope I will some guidance for my issue. In one of our struts application, we have a CSV download functionality. We use response.setContentType("application/csv;"). When the download happens, user has no clue about the state of the request and keeps o

Re: javascript question

2004-11-03 Thread Michael Rush
Excellent. I figured there was something like this. Your solution worked nicely. For any others that may be interested, here's an example of what I used: onclick="this.form['parent.nestedname'][2].checked='true'" Thanks, Michael On Nov 3, 2004, at 10:51 AM, Jason King wrote: document.formnam

Re: javascript question

2004-11-03 Thread Mark Miller
This is where the HTML styleId attribute comes in handy in combination with indexId of the LOGIC Iterator. This sets up unique object identifiers by id and then you can get at them by reference in your javascript: var ns4 = document.layers? true : false; var ie = document.all? true : false;

Re: javascript question

2004-11-03 Thread Jason King
document.formname["parent.nestedname"] will reference an element in the form formname which has a period in it's name. Michael Rush wrote: I've got a form that's using nested forms, with the following type of layout.. [radio] option 1 [text] value 1 [text] value 2 [radio] option 2 [tex

javascript question

2004-11-03 Thread Michael Rush
I've got a form that's using nested forms, with the following type of layout.. [radio] option 1 [text] value 1 [text] value 2 [radio] option 2 [text] value 1 [text] value 2 [radio] option 3 [text] value 1 [text] value 2 Each of the groups is a nested form, so the form element na

Re: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
Problem solved. It is possible after all to use input control names containing equals or semicolon or any delimiter as follows: document.formname.elements("value(number=1480;countryCode=USA;templateNumber=7;typeCode=STAGE;languageCode=EN;idTypeCode=MODE:)").value = ""; just in case anyone

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Christina Siena [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:10 PM > To: [EMAIL PROTECTED] > Subject: RE: Javascript question re: dynamically generated input > type='text' controls > > > If I try to use

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
>> To: [EMAIL PROTECTED] >> Subject: Javascript question re: dynamically generated input >> type='text' >> controls >> >> >> Hi, >> >> I am developing a page containing dynamically generated input >> type="text" cont

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Christina Siena [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:23 AM > To: [EMAIL PROTECTED] > Subject: Javascript question re: dynamically generated input > type='text' > controls > > > Hi, > >

Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
Hi, I am developing a page containing dynamically generated input type="text" controls where their names consist of multiple composite keys. The name of the input type="text" controls, however, can not be referenced correctly using javascript. For example, I have the following html input tag: T

RE: Validator - Javascript question

2004-08-12 Thread Ratnakar Parakala
2004 1:14 AM To: [EMAIL PROTECTED] Subject: Validator - Javascript question Hi, I tried to write custom validation rule called "identical". But, if I give oIdentical = new identical(); I didn't get any client side alert messages. Hope this statement doesn't generate necessary

RE: Validator - Javascript question

2004-08-12 Thread Andy Schmidgall
ECTED] Sent: Thursday, August 12, 2004 1:14 AM To: [EMAIL PROTECTED] Subject: Validator - Javascript question Hi, I tried to write custom validation rule called "identical". But, if I give oIdentical = new identical(); I didn't get any client side alert messages. Hope th

Validator - Javascript question

2004-08-11 Thread Ratnakar Parakala
Hi, I tried to write custom validation rule called "identical". But, if I give oIdentical = new identical(); I didn't get any client side alert messages. Hope this statement doesn't generate necessary javascript code when the rule is configured and executed. I'm using Struts 1.2.1 (Beta). Cou