Current location: Hot Scripts Forums » General Web Coding » JavaScript » write to another form


write to another form

Reply
  #1 (permalink)  
Old 01-13-07, 06:42 AM
funny_shrshr funny_shrshr is offline
Newbie Coder
 
Join Date: Nov 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy write to another form

what can I do gothering between php and javascript
I have a form that contain a blank text area , user should choose number of items to add inside it.

he click on "add" button, a pop up window opened and make check on choices and click "choose" button

i take its choices and add it on the blank text area where user also can choose one of these choice and make delete.

I thought that when user click on "choose" I add option in the text area with his choice but i can't write to the form while the pop up is opened

any idea.....
or any source code make this....
thanks
Reply With Quote
  #2 (permalink)  
Old 01-13-07, 10:43 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
If I understand you correctly, I think you can do this through the DOM via javascript by referencing the parent or child windows.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 01-13-07, 06:04 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
yes, this is javascript indeed. If your textfield is named "txtMessage", then the javascript in the popup should be:

Code:
window.opener.document.forms['FORM_NAME'].elements['txtMessage'].value += "the option";
__________________
Jack Bauer makes Chuck Norris cry
Reply With Quote
  #4 (permalink)  
Old 01-13-07, 06:16 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Topic moved to Javascript. Thanks Tom.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add top 5 form fields and write them e-XPLoDeR JavaScript 4 09-03-06 09:27 AM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
formmail problem gscraper Perl 12 08-27-04 03:06 AM
PHP form and write to file Adragon PHP 1 03-12-04 01:00 PM
Write form data to file dragge PHP 1 12-27-03 07:26 PM


All times are GMT -5. The time now is 11:22 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.