Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 3rd, 2003, 12:58 AM
Registered User
 
Join Date: Jun 2003
Location: Pantai Remis, Perak, Malaysia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to samlow82 Send a message via Yahoo to samlow82
Default How to create pop up windows in web application?

:(I'm currently facing problem in creating a pop up windows. The page (aspx) should be appeared after i click 1 button. I use the pop up windows to send notification to others (mail). Can somebody tell me??
Reply With Quote
  #2 (permalink)  
Old July 4th, 2003, 11:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Wien, Wien, Austria.
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Popup windows can be opened only form the client, and you can open a new popup window after the click on HTML button:
Code:
<INPUT type="button" value="Show Popup" onclick="window.open(some_url,null,'height=400,width=400')">
You can, however, control the new window's settings from Page_Load event of your aspx page.
I am not understood what do you want exactly with this popup, and why this problem has posted to Web Services forum, so, please, be more precisely about your needs.

Regards


...but the Soon is eclipsed by the Moon
Reply With Quote
  #3 (permalink)  
Old July 6th, 2003, 11:56 PM
Authorized User
 
Join Date: Jun 2003
Location: , , Slovakia.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The solution from NotNowJohn isn't for opening popup window but it goot if you want to open new window.

Popup window you can open by javascript like this

<script language='javascript'>
function showpopupmenu()
{ mouseX = window.event.clientX;
  x = mouseX - 10;
  mouseY = window.event.clientY;
  y = mouseY - 10;
  oPopup = window.createPopup();
  oPopup.document.body.innerHTML = menutable.innerHTML;
  oPopup.show(x, y, menutable.offsetWidth, menutable.offsetHeight, document.body);
}
</script>

where menutable is some element (visibility:hiddne) on page (for example DIV) and contains
html tags which you can show in popup window.
You can't show separate aspx page on popup window.

Another way is open modal window by javascript function showModalDialog/showModalessDialog
Reply With Quote
  #4 (permalink)  
Old July 10th, 2003, 02:14 AM
Registered User
 
Join Date: Jun 2003
Location: Pantai Remis, Perak, Malaysia.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to samlow82 Send a message via Yahoo to samlow82
Default

Thanks a lot to all of kind man help. I found a way as mention by NotNowJohn, which open my another aspx web form when i click on the button.

<script language="javascript" type="text/javascript">
<!--
function create()
{
    open ("AlertOptional.aspx","myChild","resizeable");
}
</script>

<input id="Button2" style="WIDTH: 128px; HEIGHT: 24px" onclick="create()" type="button" value="Send Alert" name="Button2" runat="server">

Nevertheless, can i close it automatically without alert prompted by Windows when i click a button on the pop up windows after i send the alert?

I really appreciated your helps.
Reply With Quote
  #5 (permalink)  
Old April 5th, 2005, 11:30 PM
Registered User
 
Join Date: Mar 2005
Location: bkk, , Thailand.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to hillol Send a message via MSN to hillol
Default

thank you all your disscussion helped me solve the same problem:)

HILLOL

CAT
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application is Web Or Windows! How to Identify? sizzlin_samy General .NET 1 October 8th, 2007 11:20 AM
Web Application OR Windows Application adesilva .NET Framework 2.0 2 May 4th, 2007 07:12 AM
How can i debug my web/windows application? vijaykumartaduri ASP.NET 2.0 Professional 1 March 20th, 2007 06:40 AM
Hide application windows when using Pop-Up form mmcdonal Access VBA 4 October 25th, 2005 06:31 AM
Web application Vs Windows Application Ned .NET Web Services 2 January 20th, 2004 01:27 PM



All times are GMT -4. The time now is 09:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.