I tried what you suggested, I placed an empty div but I got the same result,
still undefined with IE. I looked at the debug output and it parses the
proper javascript code just that it doesn't execute. The debug output is
practically the same between firefox and IE.
I'll try reserching in the Doj
Pablo Vázquez Blázquez wrote:
Well... I think it's using s:url "value" attribute instead of "action"
one. Isn't it?
Ah, I see what you mean. Yes, via s:url, or s:form action="a url", or
sx:submit href="a url" (for ajax tags).
The tags include code to generate the URL to an action based on th
Well... I think it's using s:url "value" attribute instead of "action"
one. Isn't it?
Pablo Vázquez Blázquez escribió:
Yes, yes, I know, but my doubt is:
When calling "DoItNow.do" or "DoItNow.xhtml"? Where in my config do I
say that "DoItNow" is having .xhtml extension or .do one? Because, in
Yes, yes, I know, but my doubt is:
When calling "DoItNow.do" or "DoItNow.xhtml"? Where in my config do I
say that "DoItNow" is having .xhtml extension or .do one? Because, in
you do not specify the extension.
Thanks.
Jeromy Evans escribió:
Pablo Vázquez Blázquez wrote:
May I have 2 differe
Pablo Vázquez Blázquez wrote:
May I have 2 different action extensions in the same webapp? Where do
I indicate the extension for each action? Now, I have set name="struts.action.extension" value="do"/> in my struts.xml file, so
.do is the extension for all actions.
Hi Pablo,
That's simply a c
May I have 2 different action extensions in the same webapp? Where do I
indicate the extension for each action? Now, I have set name="struts.action.extension" value="do"/> in my struts.xml file, so
.do is the extension for all actions.
Thanks.
Jeromy Evans escribió:
Pablo Vázquez Blázquez wro
Just a quick thought. Try this but include an empty div in the body.
The "undefined" in IE may be because Dojo is inserting an empty string
into the DOM using innerHTML.
(Dojo extracts the scripts and executes them separate
It'll definitely be possible using pure Dojo but you'll have to explore
their mailing list and wiki for 0.4 notes.
I'd start by trying to include an alert("message") in the inline script,
or window.status="messages" lines, to isolate what does and doesn't work.
Also turn on debugging using the
Pablo Vázquez Blázquez wrote:
- the interceptor can detect that the request is ajax either by the
partitioning of your packages/URLs or by inspecting the http header;
How can you know it is an ajax request by inspecting the http header?
I looked in my request headers and I can´t know whether it
Well my interceptor was working already with the request object so from there
I just got the request URL. All my AJAX operations have the word Ajax in
them. So I just check if there's an Ajax string in my request URL.
This is what I had in my code:
boolean ajaxOperation = request.getRequestURL()
Well I tried all approaches but I had a small problem with the javascript
redirect approach: I perform an AJAX operation and my interceptor redirects
to a page which displays the error message and has an inline javascript to
redirect to the login page as suggested.
It works fine in firefox but in
- the interceptor can detect that the request is ajax either by the
partitioning of your packages/URLs or by inspecting the http header;
How can you know it is an ajax request by inspecting the http header?
I looked in my request headers and I can´t know whether it is ajax or not.
Thanks.
Jero
Thanks Jeromy!
Yeah that helped a lot!
It seems that making a topic for all ajax operations a little more tedious
than the basic approaches you've suggested. Although, I'm going to try them
all out for the learning experience!
Thanks Again!
Jeromy Evans - Blue Sky Minds wrote:
>
>
> Gri
Grish wrote:
I'm using the ajax theme with my struts tags, based on the struts 2
tutorial, to implement ajax functionality. Where can I define my code to
catch the result and perform a redirect? I apologize for my inexperience.
I'm a little unclear on how to
hmm...ok, this is using Dojo 0.
Thanks for the reply!
I'm a little unclear about using the header result and the javascript
callback.
So I define a specific result for ajax actions and use the header type where
I define my own status code. Which will then be processed on the client
side.
I'm using the ajax theme with my stru
Grish wrote:
Is there a way to intercept these ajax actions and properly direct my users
to the login page? Or is my approach fundamentally wrong? Any suggestions?
You can only force the redirect to a login page from the client-side.
There's a couple of ways you can do this:
- the intercep
16 matches
Mail list logo