473,407 Members | 2,676 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,407 software developers and data experts.

open window, what am I missing

I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.

Nov 19 '05 #1
2 3044
I usually just do a quick javascript to open a window..something like this:

response.write ("<script
language=javascript>window.open('mypage.aspx?parm1 =hello', '_blank',
'height=250,width=500,titlebar=yes,top=75,left=125 ,scrollbars=no,status=no,resizable=yes');</script>")

Most likelyit not the answer you want, but it works for most cases If you
wanted to be picky, you could register the script instead of just
response.write-ing it.

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page
height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add
function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this
once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.

Nov 19 '05 #2
Thanx, I'm using that now but was hoping someday to get more control
programmically over the opening process. Not to mention the growing "pop-up"
disable issues and the new standards for making pop-ups less accepted and
allowed.
I also need to make some data base calls and saves prior to the button's
open method. That I'm still playing around with and need help on.

"Rob T" wrote:
I usually just do a quick javascript to open a window..something like this:

response.write ("<script
language=javascript>window.open('mypage.aspx?parm1 =hello', '_blank',
'height=250,width=500,titlebar=yes,top=75,left=125 ,scrollbars=no,status=no,resizable=yes');</script>")

Most likelyit not the answer you want, but it works for most cases If you
wanted to be picky, you could register the script instead of just
response.write-ing it.

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:32**********************************@microsof t.com...
I know this is a dead horse I'm beating but why is it so impossible to ask
for functionality in the HTML tag to open a window/page more controllable?
why is:
<a href="somepage.aspx?value1=xyz" target="_blank">click here</a>
can't be:
<a href="somepage.aspx?value1=xyz" pagewidth="500px or %" page
height="500px
or %" target="_blank">click here</a>

then what about in the code behind using:
response.redirect("somepage.aspx?value1=xyz", "width=500", "height=500")

to better control browser window opening, etc. Why is this asking for too
much?

I have a button that I add form the code behind the attributes.add
function
for a JavaScript 'window.showModalDialog' but I also need to add some more
code (save data) before the opening of the new window. How can I do this
once
the button is click and the 'on_click' fires, the window is opened.

using in code behind:
btnxyz.Attributes.Add("onclick",
"window.showModalDialog('page.aspx','dialogWidth:5 00px; scroll:no; help:0;
resizable:no; center:yes; edge:sunken; status:no')")

Can I turn on the AutoPostBack to "Submit" the form then will the
"On_Click"fire?

Sorry if so confusing. Thanx.


Nov 19 '05 #3

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

Similar topics

8
by: vishal | last post by:
hi i am creating one site and i am not allowed to use client side scripting in site and i have one link in my one page. when user clicks on this link the target page must be opened in another...
4
by: ken quirici | last post by:
Hi, I'm a beginner working thru the javascript tutorial at htmlgoodies.com. The following works on netscape 7.1 and IE: *************************************************** <!DOCTYPE HTML...
9
by: Christopher Benson-Manica | last post by:
I have the following situation: Page A opens a window named 'foo'. Page A then reloads itself. Is there a way for the reloaded Page A to determine whether there is an open window named 'foo',...
2
by: KathyB | last post by:
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers',...
5
by: Chris | last post by:
Hello, I have a link on an aspx page. The URL is set in the Page Load event: lnkEventHistory.NavigateUrl = "javascript:window.open('EventHistory.aspx?TeenID=" & _ Request.Item("SubjectID") &...
13
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
1
by: R Reyes | last post by:
Hi, For some reason, the website I made does not open pages in a new page whenever I right-click "Open in New Tab" or "Open in New Window". But, as soon as I navigate to any other website, the...
4
by: arajunk | last post by:
In Firefox this opens a full size window (maximized) . In IE it opens the partial window requiring user to click restore (upper right) to maximize. What am I missing ? var...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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
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...
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
agi2029
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.