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

how do I popup a window w/o using client-side script

I have a requirment to utilize popup windows for edit/add screens from
datagrids. I have accomplished this using client-side javascript. I have
been told this is not acceptable and I must do it another way to avoid the
possiblity that someones popup blocker may make the program not function
correctly.

I have no idea how to do this another way. Any ideas?

Thanks,

Shawn
Nov 18 '05 #1
4 1661
You can do it with a plain HTML link such as this:
<a href='mypage.aspx' target='_new'>click here</a>

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Shawn Mason" <sh***@issda.com> wrote in message
news:Oo*************@tk2msftngp13.phx.gbl...
I have a requirment to utilize popup windows for edit/add screens from
datagrids. I have accomplished this using client-side javascript. I have
been told this is not acceptable and I must do it another way to avoid the
possiblity that someones popup blocker may make the program not function
correctly.

I have no idea how to do this another way. Any ideas?

Thanks,

Shawn

Nov 18 '05 #2
We use window.open statements for our data entry screens.
We used to use hidden DIVs that contained IFRAMEs (which
did work fine in IE), but moved to popup windows because
they looked much nicer and could be repositioned anywhere
on the screen.

You can try the window.showModalDialog or
window.showModelessDialog functions, but I'm not sure if
pop-up blockers block those or not.

- Dave Davidson, MCP

(E-mail address is a "no-spam" account - other than my MCP
I have no association with Microsoft.)
-----Original Message-----
I have a requirment to utilize popup windows for edit/add screens fromdatagrids. I have accomplished this using client-side javascript. I havebeen told this is not acceptable and I must do it another way to avoid thepossiblity that someones popup blocker may make the program not functioncorrectly.

I have no idea how to do this another way. Any ideas?

Thanks,

Shawn
.

Nov 18 '05 #3
I am not so sure this can be done with out using some kind of client side
operation. Because the server doesn't have control over the client so the
server cannot force a window to pop up. It can put script there for the
client to interpret but ultimatly it's the clients call on if a pop up will
be allowed or not.

The best method around this is to probably use DHMTL that shows and hides
windows in the back ground. Much like those stupid drop down ads on Yahoo.
Just telling the user to click here to open a window.

As a side not Pop Up blockers up till this point really only block pop ups
that are un requested so if a user clicks a link to launch a window that is
generally excepted a valid pop up by most if not all pop up blockers.
"Shawn Mason" <sh***@issda.com> wrote in message
news:Oo*************@tk2msftngp13.phx.gbl...
I have a requirment to utilize popup windows for edit/add screens from
datagrids. I have accomplished this using client-side javascript. I have
been told this is not acceptable and I must do it another way to avoid the
possiblity that someones popup blocker may make the program not function
correctly.

I have no idea how to do this another way. Any ideas?

Thanks,

Shawn

Nov 18 '05 #4
They'll only block it if it's done without an action taken by the user
(like in an onClick event). If you have, say, a button that adds a
literal control to the form that has a window.open, it'll get blocked by
any of the pop-up blockers.

Dave Davidson wrote:
We use window.open statements for our data entry screens.
We used to use hidden DIVs that contained IFRAMEs (which
did work fine in IE), but moved to popup windows because
they looked much nicer and could be repositioned anywhere
on the screen.

You can try the window.showModalDialog or
window.showModelessDialog functions, but I'm not sure if
pop-up blockers block those or not.

- Dave Davidson, MCP

(E-mail address is a "no-spam" account - other than my MCP
I have no association with Microsoft.)

-----Original Message-----
I have a requirment to utilize popup windows for edit/add


screens from
datagrids. I have accomplished this using client-side


javascript. I have
been told this is not acceptable and I must do it another


way to avoid the
possiblity that someones popup blocker may make the


program not function
correctly.

I have no idea how to do this another way. Any ideas?

Thanks,

Shawn
.


--
-----
Aaron Lewis
GuildPortal.com Development
www.guildportal.com

Nov 18 '05 #5

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

Similar topics

1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
1
by: gregcd | last post by:
My client wants me to make a popup on exit window with a discount coupon. I have found how to do this if someone exits the site or closes their browser window, but I can't find a way to prevent...
13
by: ldan | last post by:
Hi everybody, I would not consider myself an expert in javascript - but so far whatever I know, helped me reaching my goals. Recently I started to experience a lot of javascript errors related...
2
by: julie.siebel | last post by:
I KNOW this can't be as hard as I am making it. I have a travel client with two related websites. On the homepage of the new site (Call it "Site A") I am building for them, there is a link to a...
1
by: Jeyush | last post by:
Hey buddy, I have three pages 1)index.php 2)login.php 3)client.php. When I click on "login" on index.php page, it opens a popup. When I submit that login page at that time I want to redirect...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
tracyyun
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...

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.