Help! I’m trying to get popups to work in asp.net. I’m Using the following
javascript code in a sub, but I can’t get the PopupWindow to work. At
first I thought the routine wasn’t working but it is. It looks like it’s the
window.open that’s not working. I have site popup allowed turned on, if I
replace window.open with alert it works, if I put the code in the html code
it works. Any suggestions?
Dim PopupScript As String = "<script language='javas cript'>" & _
"window.open('p opup.aspx', 'CustomPopUp', " & _
"'height=55 0, width=550, menubar=no, resizable=no'); " & _
"</script>"
Me.RegisterStar tupScript("Popu pScript", PopupScript) 2 1707
try this code ............
--
Regards
John Timney
Microsoft Regional Director
Microsoft MVP
<html>
<head>
<script language="VB" runat="server">
Sub Page_Load( sender as Object,e as EventArgs)
'Form the script that is to be registered at client side.
Dim scriptString as String = "<script language=JavaSc ript> function
DoClick() {"
ScriptString +=
"window.open('h ttp://www.mvps.org',' MyWindow','widt h=500,height=50 0');}<"
scriptString += "/"
scriptString += "script>"
If(Not IsClientScriptB lockRegistered( "clientScript") )
RegisterClientS criptBlock("cli entScript", scriptString)
End If
End Sub
</script>
</head>
<body topmargin="20" leftmargin="10" >
<form id="myForm" runat="server">
<INPUT id="launchButto n" onclick="DoClic k();" type="button"
value="Submit" name="myButton" runat="server">
</form>
</body>
</html>
"Logger" <Lo****@discuss ions.microsoft. com> wrote in message
news:C4******** *************** ***********@mic rosoft.com... Help! I'm trying to get popups to work in asp.net. I'm Using the
following javascript code in a sub, but I can't get the PopupWindow to work. At first I thought the routine wasn't working but it is. It looks like it's
the window.open that's not working. I have site popup allowed turned on, if I replace window.open with alert it works, if I put the code in the html
code it works. Any suggestions?
Dim PopupScript As String = "<script language='javas cript'>" & _ "window.open('p opup.aspx', 'CustomPopUp', " & _ "'height=55 0, width=550, menubar=no, resizable=no'); " & _ "</script>" Me.RegisterStar tupScript("Popu pScript", PopupScript)
Also, make sure popup blockers are disabled. They might interfere with this
code.
"John Timney (Microsoft MVP)" <ti*****@despam med.com> wrote in message
news:O1******** *****@TK2MSFTNG P11.phx.gbl... try this code ............
-- Regards
John Timney Microsoft Regional Director Microsoft MVP
<html> <head> <script language="VB" runat="server">
Sub Page_Load( sender as Object,e as EventArgs)
'Form the script that is to be registered at client side. Dim scriptString as String = "<script language=JavaSc ript> function DoClick() {" ScriptString += "window.open('h ttp://www.mvps.org',' MyWindow','widt h=500,height=50 0');}<" scriptString += "/" scriptString += "script>"
If(Not IsClientScriptB lockRegistered( "clientScript") ) RegisterClientS criptBlock("cli entScript", scriptString) End If End Sub </script> </head> <body topmargin="20" leftmargin="10" > <form id="myForm" runat="server">
<INPUT id="launchButto n" onclick="DoClic k();" type="button" value="Submit" name="myButton" runat="server">
</form> </body> </html>
"Logger" <Lo****@discuss ions.microsoft. com> wrote in message news:C4******** *************** ***********@mic rosoft.com... Help! I'm trying to get popups to work in asp.net. I'm Using the following javascript code in a sub, but I can't get the PopupWindow to work. At first I thought the routine wasn't working but it is. It looks like it's the window.open that's not working. I have site popup allowed turned on, if I replace window.open with alert it works, if I put the code in the html code it works. Any suggestions?
Dim PopupScript As String = "<script language='javas cript'>" & _ "window.open('p opup.aspx', 'CustomPopUp', " & _ "'height=55 0, width=550, menubar=no, resizable=no'); " & _ "</script>" Me.RegisterStar tupScript("Popu pScript", PopupScript)
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 ... it is the most
elegant and graceful language I have ever used (Fortran, Cobol, Basic, many
assemblers, Forth, C, VB, etc.). I don't have the resources or the
|
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 locally-installed
application interfaces. I understand some people object, on grounds having
nothing to do with disabilities, to links that generate new browser windows.
I don't know what the basis of their objection is, but I wonder whether the
same...
|
by: Logger |
last post by:
Help! I’m trying to get popups to work in asp.net. I’m Using the following
javascript code in a sub, but I can’t get the PopupWindow to work. At
first I thought the routine wasn’t working but it is. It looks like it’s the
window.open that’s not working. I have site popup allowed turned on, if I
replace window.open with alert it works, if I put the code in the html code
it works. Any suggestions?
Dim PopupScript As String...
|
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
|
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, Norton Internet Security, etc) that block unsolicited
popups.
| |
by: jonathon |
last post by:
Hi all,
I have a web app with a popup window for entering data. I don't want
to access the web every time this window is opened, as most of the app
is AJAX. But I can't figure out how to open a new window and build it
with DOM rather than having to provide a src. Even a blank.html as src
takes time to fetch.
How can I create a popup and dynamically add DOM content without any
html at all?
|
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 drop-down popups, fade
in/out, slide in etc.
The URL is: http://dhtmlpopups.webarticles.org/
I hope you will find the information useful. Any feedback is welcomed
|
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 '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
|
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, Default.aspx and
Default2.aspx. Note that the example is a deliberately simplified example -
just used to reproduce the problem, and not meant to be very useful.
Default.aspx - add button1. In codebehind, hookup click event :
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |