Page 1 of 1

Refresh without reset form

Posted: Mon Oct 13, 2003 8:11 pm
by richie256
Hi

I want to display all the city from a MySQL Database in a combo-box and put a "Add" link that open a new sub-window to be able to add a new city in the database. When all of the informations are correctly enteted in the sub-window, it close and send back the information to the main window.

So my question is this one: I really don't know how to send back the information to the main window and refresh the combo-box without reset the form? If someone can help me to get me in the right way, it will be a pleasure.

Thanks.

Posted: Mon Oct 13, 2003 8:20 pm
by JAM
You can't as far as I know.

You can recall the database, and put in it's default values, but you need the server to send the information. But you can store the info in for example a session, that you can later use when going back to the old page.

Perhaps a javascript guru can make this happen with an inputbox script, but that is beyond me.

Posted: Tue Oct 14, 2003 12:05 am
by richie256
I remember I already see it in one webpage... can't remember on wich page :?

Hope I can find it back