473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

pass popup form value to main window

The browser-based WYSIWYG editor I'm developing has a popup window
with a form that generates table code from user input (width, border,
cols, rows, bgcolor.) But the user has to copy-paste the generated
table HTML into the editor window as it works now. How do I pass the
form-generated HTML directly to the editor window so copy-paste is not
necessary? I know I have to set focus on the editor window in the
generate table code function, but I don't understand how to use
javascript opener to pass generated code.

Do I have to create the popup window from within the main window HTML
or can I leave it as an external popup opened by the ordinary
javascript method? The editor is strictly for offline use, so
server-side scripts are not the answer.
Jul 23 '05 #1
1 2711
I think what you're looking for is window.opener
That way that popup window can pass back pretty much
whatever it likes to the original window that created it:
For example:

window.opener.generatedTableContents =
document.getElementById('myTable').innerHTML

HTH
Csaba Gabor

"William Starr Moake" <ws*****@yahoo.com> wrote in message
news:95********************************@4ax.com...
The browser-based WYSIWYG editor I'm developing has a popup window
with a form that generates table code from user input (width, border,
cols, rows, bgcolor.) But the user has to copy-paste the generated
table HTML into the editor window as it works now. How do I pass the
form-generated HTML directly to the editor window so copy-paste is not
necessary? I know I have to set focus on the editor window in the
generate table code function, but I don't understand how to use
javascript opener to pass generated code.

Do I have to create the popup window from within the main window HTML
or can I leave it as an external popup opened by the ordinary
javascript method? The editor is strictly for offline use, so
server-side scripts are not the answer.

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keith | last post by:
This is for an Intranet application before I go any further. I have a form which requires calendar dates, cities etc. to be input. This is not a problem, but when a user clicks to input a date...
4
by: Peter Kirk | last post by:
Hi, I want to open a popup-window which displays a list to the user. From this list, the user can select an item, and the data regarding this item is then transferred to some fields on the main...
1
by: TErnst | last post by:
Hello All.... What I am attempting to do is have a link/button on a page (testpopup.cfm) that opens a popup page (popupwindow.cfm). The popup page displays a resultset from a query and the...
2
by: umashd | last post by:
Hi, I am doing a web based project for my graduation. I studied bit of java for backend processesing and javascript for the client. Here is the scenario. In the FORM, I use INPUT TYPE=text...
3
by: Alex | last post by:
Hi, I'm having some trouble implementing a popup in firefox. I attached some simplified code at the bottom. This is part of a firefox extension. What happens is that a popup window is created,...
4
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a...
2
by: jackson2005 | last post by:
OK, I need to do three different things. On the ONLOAD event I would like a popup box to open. In this popup box I need two text boxes. One for the UserName and one for the BillingTo name. ...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
3
by: Jimmy | last post by:
It is also possible for popup window to call function in main window by using the opener property. Will "opener.someFunctionInMain(param1, param2)" in the popup window work? It's possible for...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.