473,387 Members | 1,512 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,387 software developers and data experts.

ASP.NET Popups

Hello,

I am tring to use a Popup to open a texteditor and then press a save button
on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to
convert them.

Thanks for any help,

Jack
Nov 18 '05 #1
6 1260
Jack,

You have to do it on client side with a bit of javascript programming. Look
at function showModalDialog.

Eliyahu

"jack" <ja**@mrolinux.com> wrote in message
news:eX****************@tk2msftngp13.phx.gbl...
Hello,

I am tring to use a Popup to open a texteditor and then press a save button on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to
convert them.

Thanks for any help,

Jack

Nov 18 '05 #2
"jack" <ja**@mrolinux.com> wrote in message
news:eX****************@tk2msftngp13.phx.gbl...
I am tring to use a Popup to open a texteditor and then press a save button on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to
convert them.


There was a discussion here about this recently. When you say "popup" are
you referring to a new browser window opened by the JavaScript
showModalDialog method, or merely something which "appears" in the browser
window at the click of a button?

If you mean a modal dialog, that's going to need a bit of thinking about
first, because it only works with IE, AFAIK. Also, if you're hoping to
submit the dialog back to itself in order to do some server-side processing,
you're going to need to "wrap" it in an iframe otherwise it will submit to a
new non-modal window.

Another option might be to include a real text editor on your page e.g.
http://www.freetextbox.com. and forget about a popup.
Nov 18 '05 #3
Hello,

Thanks for the replies. I want a seprate window to pop up and be able to
type text into a textbox on that new windows. Then Press submit and the new
window close and put the what has in the textbox into the textbox on the
parent window. The popup text box will have editing features that don't
what to clutter up the main window with.

Thanks,

Jack

"jack" <ja**@mrolinux.com> wrote in message
news:eX****************@tk2msftngp13.phx.gbl...
Hello,

I am tring to use a Popup to open a texteditor and then press a save button on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to
convert them.

Thanks for any help,

Jack

Nov 18 '05 #4
There are a couple of ways to do what you're looking for but I agree the
best is going to be the showModalDialog method. Though the answer to your
question seems to be agreed on, I wanted to give you some of the reasoning
and considerations in coming up with that solution.

The modal dialog box is different from what you see in most calendar
controls. Most calendar controls are created using DHTML and DIV objects.
That is the problem with most calendar controls...Because they're DIVs they
are children of the main window. When the div pops up over an object that
is its own window, such as a <SELECT> element, then the <SELECT> element
shows through the calendar.

The advantage of the DHTML method is that, to varying degrees of success and
difficulty, it can be made to work in Mozilla and IE based browsers. The
other two methods are IE only solutions.

The modal dialog is, in my opinion, ugly. It has to have the "chrome"
around it.. ie. buttons, borders, and title bar and that "Web Page Dialog"
phrase in the title, no matter what you do.

The createPopup won't implement most user interaction in HTML. It won't
respond to HTML Anchors, won't accept input typed into input text boxes,
etc. You can do a lot of interactive work as long as it is all done by
mouse clicks by creating hyperlinks as spans with mouse click events and
setting the cursor to a hand onmouseover and back to pointer onmouseout.
You can simulate buttons by images with click events handled in the code of
the popup.

Dale Preston
MCAD, MCSE, MCDBA

"jack" <ja**@mrolinux.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
Hello,

I am tring to use a Popup to open a texteditor and then press a save button on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to
convert them.

Thanks for any help,

Jack

Nov 18 '05 #5
Look at window.prompt() method of javascript.

"jack" <ja**@mrolinux.com> ¦b¶l¥ó
news:%2****************@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g...
Hello,

Thanks for the replies. I want a seprate window to pop up and be able to
type text into a textbox on that new windows. Then Press submit and the new window close and put the what has in the textbox into the textbox on the
parent window. The popup text box will have editing features that don't
what to clutter up the main window with.

Thanks,

Jack

"jack" <ja**@mrolinux.com> wrote in message
news:eX****************@tk2msftngp13.phx.gbl...
Hello,

I am tring to use a Popup to open a texteditor and then press a save

button
on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to convert them.

Thanks for any help,

Jack


Nov 18 '05 #6
If you go with the showModalDialog then you just need to put this line in
your <Head> tag to make it post back to itself. <BASE target="_self"> Good
luck! Ken.
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:uC**************@TK2MSFTNGP10.phx.gbl...
"jack" <ja**@mrolinux.com> wrote in message
news:eX****************@tk2msftngp13.phx.gbl...
I am tring to use a Popup to open a texteditor and then press a save button
on the popup window and have the text go back to parent windows in a
textbox. I have seen calender popups that do this, but can't find how to convert them.


There was a discussion here about this recently. When you say "popup" are
you referring to a new browser window opened by the JavaScript
showModalDialog method, or merely something which "appears" in the browser
window at the click of a button?

If you mean a modal dialog, that's going to need a bit of thinking about
first, because it only works with IE, AFAIK. Also, if you're hoping to
submit the dialog back to itself in order to do some server-side

processing, you're going to need to "wrap" it in an iframe otherwise it will submit to a new non-modal window.

Another option might be to include a real text editor on your page e.g.
http://www.freetextbox.com. and forget about a popup.

Nov 18 '05 #7

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

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
7
by: Bob Wightman | last post by:
I've had a look through the archives but cannot find anything that really answers this so... I have a menu system composed of a series of "buttons" (actually span elements) that react to the...
3
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
2
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar,...
1
by: dejausenet | last post by:
I have firefox 1.0, running on winxp Firefox blocks popups fine, but sometimes, for selected occassions only, i would like to be able to have window popup; without enabling whole domains, as...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
4
by: dd | last post by:
I have a scenario where my popups are being blocked by IE6+ and Firefox. The problem is that although the popup is a direct result of the user clicking on the link (meaning that they WANT the...
1
by: YotamElal | last post by:
Hello, I have a popup problem. When a popup is opened, I want all other popups to close immediatly. (except for its self and it's child popups) Here is my code: code: <!DOCTYPE HTML PUBLIC...
1
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.