On Thu, 22 Jul 2004 18:11:21 -0400, Vern <[EMAIL PROTECTED]> wrote:
> I have a page where a user comes to the page and submits a form after
> filling it out with dropdown menus that are dynamically driven and get their
> info form out tables.
> 
> Now there are times when some one needs to add to this drop down list so I
> have a separate page open up that allows the user to add the needed item
> which after inserting sends them to a page that has the success message
> along with a Close Window Link that refreshes the page below it (using
> javascript:window.opener.location.reload();window.close();) so that the new
> item is display in the drop down list. So far so good.
> 
> However, many users fill parts of the form out before they realize that one
> of the menus do not have the info needed. I thought that adding
> 
>     title="<?php echo $_POST['form_field']; ?>"
> 
> would cause the values of the field already filled out to be displayed again
> as the page is being refreshed, but they are not.so I guess refresh is not
> the same as POST, which of course we don't want to happen as it will POST
> the form which is not what we are trying to do. Anyone have any ideas?
> 

I'm not sure if this is possible, but I would say having the popup
just add the value to the select box, via JS, then select it
automatically, would be a much better way to do this.

select = windows.opener.document.getElementById('selectBox');

or

select = windows.opener.document.forms['formName'].elements['selectBox'];

option = new Option();
option.value = "optionValue";
option.text = "optionText";
select.options[select.options.length] = option;

-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to