Re: Force a submit() on parent from child?
- From: Lee <REM0VElbspamtrap@xxxxxxx>
- Date: 15 Sep 2007 16:53:33 -0700
The Natural Philosopher said:
Randy Webb wrote:
The Natural Philosopher said the following on 9/15/2007 3:38 AM:
Randy Webb wrote:
The Natural Philosopher said the following on 9/14/2007 6:52 PM:
<snip>
This would be a dummy submit and wouldn't actually update the
database. Although there is no reason why it shouldn't, but if I do
an actual submit/update before calling the sub window, I guess I
lose the code that had decided to do the window spawn...submit being
a sort of 'GOTO' if you like..
Please don't mention GOTO in connection with JS.
Offends your religious beliefs?
;-)
Nah, my common sense.
In principle the sequence of events I want to see, is this:-
User clicks on something.
This spawns a new window, which independently fiddles with the
database.
Instead, you show/hide a div element in the page that has the form in
it that "fiddles with the database".
On closing that window, the main window does a submit(), to force
post data back to the server, and reload it, and the new data.
The part of the form that "fiddles with the database" (Is that
opposed to drumming or guitaring with the database?) is hidden and
shown. When it is filled out, you submit the *entire form* to the
server. The server updates the database and sends a modified page
back to the browser.
Stop making it harder than it has to be.
Randy: hardness is relative. To carry the code for ALL of this would
be a nightmare. Especially as the data sizes grow. Believe me, there
are good reasons to do it this way. I don't want to have to duplicate
code that is already there on a separate screen.
Based on the other recent threads you have posted, I am not convinced of
that. And also because I know better. It is your choice to make it
harder than it has to be, not mine.
Just two points randy.
First, your syntax was all to shit on what you gave me, however the idea
was basically sound. Thank you for that.
Secondly, you cannot possibly know the context of what I am doing here,
and to claim you know what's best for me without that knowledge makes
you a fool or an arrogant prick.
Or far more experienced and competent. Based on your postings,
I know which way I'm leaning.
--
.
- Follow-Ups:
- Re: Force a submit() on parent from child?
- From: The Natural Philosopher
- Re: Force a submit() on parent from child?
- References:
- Force a submit() on parent from child?
- From: The Natural Philosopher
- Re: Force a submit() on parent from child?
- From: Randy Webb
- Re: Force a submit() on parent from child?
- From: The Natural Philosopher
- Re: Force a submit() on parent from child?
- From: Randy Webb
- Force a submit() on parent from child?
- Prev by Date: FAQ Topic - How do I access a property of an object using a string?
- Next by Date: Re: Debugging simple script under Aptana
- Previous by thread: Re: Force a submit() on parent from child?
- Next by thread: Re: Force a submit() on parent from child?
- Index(es):
Relevant Pages
|