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
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
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
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
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
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
(
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
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
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
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
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
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
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
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
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
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]
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
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
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"
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
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
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
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(/]
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
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
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
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,
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:
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
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
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
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
]
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
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
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
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
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;
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
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
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
> -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
>> 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
> -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,
>
>
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
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
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
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
47 matches
Mail list logo