We thought about that, but at first blush that seemed worse. The biggest
problem is that each page is going to have N number of spans containing
N number of data relating to the provider. So the popup getting called
from page one may have to update...

Provider Name
Provider Address

and the popup getting called from page two may have to update...

Provider Name

That's the real problem. As far as the form goes, the biggest problem
is how to get the name of the form to be somehow passed into the
JavaScript in a way that the same JavaScript can be used for multiple
forms when all we want to do is change one value. Or maybe we should
give in and use forms[0].X, etc.

Preston

>>> [EMAIL PROTECTED] 11/19/2005 11:57:50 AM >>>
Preston CRAWFORD wrote:
> Yeah, no easy solution for this. The more I think about it the more
it
> occurs to me that what we're attempting to do is setup a common code
> base for updating any N number of forms using Javascript. The
plumbing
> for this is easy and obvious (I listed it earlier). But making it a
> single code base that can be applied to any form is going to be
> impossible. We're going to have to have a separate JSP for the popup
for
> each form. I can't think of a way to make the pop that's being used
in
> the form dynamic, without burying a great deal of logic in an Action.
Or
> worse, actually submitting the form (but not submitting it to save),
and
> then refreshing. So essentially having control logic in the action as
to
> what kind of submission (as we leave the page and go to the provider
> search page) was just performed. I'm thinking this is going to end
up
> being multiple actions, multiple JSP pages, multiple action entries
in
> struts-config.

That sounds horrendous, and I'm not sure why you'd need it. I might be

missing something, but why can't you write one Javascript function that

knows how to serialize a form into an object and pass it to a callback,

and just include that function in each popup?

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to