Re: Popping-up a window and updating original page: how?
Re: Popping-up a window and updating original page: how?
- Subject: Re: Popping-up a window and updating original page: how?
- From: John Larson <email@hidden>
- Date: Sun, 27 Jan 2008 20:10:36 -0600
Clark,
I don't know if you're still working on this, but I have a stock
component that I use for popup components called PopupLink. It is a
little application specific because it is for showing lists to chose
from. I can send you the PopupLink and the PopupList if you'd like to
see them. The popup page is probably of little use because it uses my
special list display component.
My approach is kind of corny in that you have to name your window
before the popup in javascript. (i.e window.onload = "window.name =
'main'") Then set the target name for the popup window to whatever
(popup?). From there you can do a number of things. You can do your
"yes/no" example with a simple target = "main" in the hyperlink and
window.onblur = window.close(); in the popup. For form uploads you
can do the same thing.
I'm not in front of my code right now, but I know I do something funny
to push selected values to the parent from the popup for selecting an
item in a list. So I'm not just showing a component in the main
window, but actually returning an EO to the main window. I don't
remember exactly what I do, but if you're interested let me know and
I'll look into it more.
John
On Jan 21, 2008, at 10:59 PM, Clark Mueller wrote:
I'm actually interested in all three as well.
1. The example I mentioned.
2. Ask the user, "would you like to do X?", and if they say yes, I
send them to some new component. If they say no, I send them to
still some other component.
3. Assistants or feedback pertaining to input as in (1).
(2) and (3) were always the things that were a thorn in my side with
YUIPanel as well, particularly (3). I think I'll spend some time
playing with the JavaScript and see what I can get. If I come up
with something useful, it will certainly make its way back to PW.
Clark
On 21 Jan 08, at 9:22 PM, Chuck Hill wrote:
On Jan 21, 2008, at 7:57 PM, Clark Mueller wrote:
That is a feeling I know well...
:-(
The ability to (easily) do something like ModalBox's behavior in
WO is something I have felt is really lacking, so I'm a bit
interested in playing around with this. I had some luck with
YUIPanel, back about a year ago, but it was very buggy and I
ultimately gave up with it because of this. As I recall, the
reason was mostly that the YUI library was not at all interested
in mixing with Scriptaculous. YUIPanel had a tendency to
completely flip out when multiple submit buttons were involved.
Fun!
What I would like is something that enables me to use a modal
dialog for more insignificant data entry forms and alerts. It is
often the case that I want to edit a related entity that doesn't
really have enough data to deserve a whole edit page itself. If I
were doing this in an application, I would use a sheet or a panel
for that, and I'd like to do the same within WO. So essentially I
want something that can be modal, handle a variety of content, not
choke on one or more submit buttons, work nicely with
Scriptaculous, and look good (in a nutshell, be everything that
ModalBox is). Like I said, I abandoned this previously and I have
been using the aforementioned edit pages, but I think I'd like to
start wiping that out and take a crack at developing a reusable
component based on ModalBox.
Doing what you want should not be too hard, relatively speaking.
Mike has done a very nice job on the Ajax framework, once you wrap
your head around it.
So... how far along did you get? Had you given much thought to the
actual design, or was this something that was just floating around
in your head? Do you have any code that you'd be willing to share?
Yes, but... I deleted it. I was cleaning up my disk and thought
"Well, I don't need that copy of Wonder.". Of course I was using
rm in Terminal not working in Finder. No big loss though, I did
not have much more than a proof of concept. What I really wanted to
be able to have is a modal box that could:
1. Open, accept input, and close to the same page
2. Open, accept input, and close to a different page (e.g. reload
the main page with a different URL)
3. Open, accept input, and transition to a different modal dialog
(think multi-step wizard)
It sounds like you just want (1). IIRC, that was not so hard but I
am not sure how far along I got.
Chuck
On 21 Jan 08, at 8:26 PM, Chuck Hill wrote:
It is still on the list and I am still side tracked. :-(
Some days it feels like I am running up a hill of loose sand.
Chuck
On Jan 21, 2008, at 7:13 PM, Clark Mueller wrote:
Chuck,
I am curious, have you explored this project any further?
Cheers,
Clark
On 22 May 07, at 12:13 PM, Chuck Hill wrote:
I am (was) working on an AJAX modal dialog / wizard / not quite
sure where it will go solution for this (to be part of the Ajax
framework in Wonder). I got side tracked onto some other
tasks, I won't get back to this for a while. See http://okonet.ru/projects/modalbox/
Chuck
On May 22, 2007, at 7:45 AM, Jean Pierre Malrieu wrote:
Hi,
I need to open a popup window (for example a file upload
form), and when the user submits the form, close the popup
window and update the original page.
This is pretty standard practice, I am sure, but I don't know
how to do it.
Thanks for your solutions.
JPM
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase
their overall knowledge of WebObjects or who are trying to
solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve
specific problems.
http://www.global-village.net/products/practical_webobjects
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden