Hi all, I know this is not the Javascript list but still... Am designing a webinterface for an intranet application for a client and for one of the form fields a huge amount of options is available. Too many to use a dropdown menu as one would normally do (should choose a client from their customer database).
Thus handiest now looks like making a textinput for the customer code. But the operator will not know the customer code by heart, so I made a button next to this field opening a popup with a search for the right customer (by name, phone number, email, so the employee can find the right customer quickly from his contact info). All OK so far. Now having found the customer in the popup I want to fill in the textinput on the main form using a button and an onclick action. This should be something like below, isn't it? This is what I put as the action: onclick="main_form_%ID%.formname.fieldname.value='.$Customer[$CustomerID].'" Of course the main form has an id set to main_form_%ID% where %ID% is derived from the session, and the formname and fieldname match. But nothing happens, the textfield stays empty What is going wrong? Or: to give some help: want to fill in a textfield in page 1 using a button action in page 2 without reloading page 1. What to do (must be Javascript, but what?)? Marc ------------------------ Yahoo! Groups Sponsor --------------------~--> AIDS in India: A "lurking bomb." Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
