473,573 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open a new browser window without using javascript

hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()" .i need some server side code behind the linkbutton,if
any one knows plz rply soon.

Apr 14 '07 #1
6 12065
Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.as px?myparm=1" target="_blank" >Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you can
pass it querystring parameters, so in many cases this will work to both open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"bushi" <bu*******@gmai l.comwrote in message
news:11******** **************@ y5g2000hsa.goog legroups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()" .i need some server side code behind the linkbutton,if
any one knows plz rply soon.
Apr 14 '07 #2
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwr ote:
Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.as px?myparm=1" target="_blank" >Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you can
pass it querystring parameters, so in many cases this will work to both open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmai l.comwrote in message

news:11******** **************@ y5g2000hsa.goog legroups.com...
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()" .i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -
thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open('ad2. html');</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actu ally i have
to select the value at run time,
as

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open(page) ;</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously

Apr 14 '07 #3
"bushi" <bu*******@gmai l.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
thanx steve!
but i can't got ur point,
Steve's point is that he was actually trying to answer your question i.e.
how to open a new browser window without using JavaScript - that's what you
said you were looking for...

i have solved my problem by using the
following code snippet:

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open('ad2. html');</script>");
There's the problem... You ask for help in opening a new browser window
without using JavaScript (note the title of this thread which you started),
and then you say that you have solved it by using JavaScript...
Apr 14 '07 #4
The new window you are trying to open by streaming javascript from server to
browser will be treated as "bad or unwanted" pop-ups and would be blocked by
most browser by default.

Only client-side started new window due to user's explicit action(cliking)
on client-side is considered "good" pop-up. So, you better follow Steve's
suggestion if you really hate "javascript ", or just use client-side
javascript, there is nothing wrong to use it, and you used it in your found
solution anyway.

"bushi" <bu*******@gmai l.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwr ote:
>Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.as px?myparm=1" target="_blank" >Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you
can
pass it querystring parameters, so in many cases this will work to both
open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmai l.comwrote in message

news:11******* *************** @y5g2000hsa.goo glegroups.com.. .
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()" .i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -

thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open('ad2. html');</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actu ally i have
to select the value at run time,
as

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open(page) ;</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously

Apr 14 '07 #5
I've never seen anyone contradict themself so many times with just two
posts.
You explicitly said you need a solution that doesn't just JavaScript or the
window.open method.
Then you ignore my advice that met your requirements and you instead use the
JavaScript window.open method.
But, hey, whatever you're happy with dude.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"bushi" <bu*******@gmai l.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
On Apr 14, 12:10 pm, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwr ote:
>Without JavaScript your only real solution is to use a hyperlink with the
target attribute set:
<a href="MyPage.as px?myparm=1" target="_blank" >Click Me</a>
Now this doesn't post back the originating page to the server, however in
the above example MyPage.aspx will cause a server page request and you
can
pass it querystring parameters, so in many cases this will work to both
open
a new window and process server side code.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsiderhttp://SteveOrr.net

"bushi" <bushra...@gmai l.comwrote in message

news:11******* *************** @y5g2000hsa.goo glegroups.com.. .
hi everyone!
i have diplayed my hyperlinks in a iframe.when i redirect
to next page.the next page also open in the same frame,but i want to
open a new browser window,when i click on the link.actually i 'm using
link button control to diplay the hyperlinks.i cant use java script
"window.open()" .i need some server side code behind the linkbutton,if
any one knows plz rply soon.- Hide quoted text -

- Show quoted text -

thanx steve!
but i can't got ur point,i have solved my problem by using the
following code snippet:

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open('ad2. html');</script>");

a little bit problem remains.i want to use variable instead of the
hardcoded page address,as above i have used 'ad2.html'.actu ally i have
to select the value at run time,
as

Response.Write( "<script type='text/
javascript'>det ailedresults=wi ndow.open(page) ;</script>");

when i use this piece of code,the page is not redirected.i can solve
it by checking the value of page using if conditions and then use the
address of the corresponding page.
but i dont like such type of hardcoding,if u hav any idea other then
mine plz recommend me,i will wait 4 ur rply anxiously
Apr 14 '07 #6
On Apr 15, 12:49 am, "Steve C. Orr [MCSD, MVP, CSM, ASP Insider]"
<S...@Orr.netwr ote:
I've never seen anyone contradict themself so many times with just two
posts.
You explicitly said you need a solution that doesn't just JavaScript or the
window.open method.
Then you ignore my advice that met your requirements and you instead use the
JavaScript window.open method.
When we're at it, that's no window, THIS is a window:
http://ajaxwidgets.com/AllControlsSa...hatClient.aspx
(click the "Start Chatting" button")

..t

Apr 18 '07 #7

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

Similar topics

6
12149
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page where I can set the window height, statusbar=no, etc? Thanks, -Luke
2
4113
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size. However, this is not happening in IE 5. Can anyone help me solve this problem? Code: Script:
2
3948
by: Raptor | last post by:
I'm a complete Javascript n00b, using a snippet I found on the web. I'll probably be buying a Javascript book. What's the authoritative on-line resource for Javascript, like php.net is for PHP? I'm a relative PHP n00b. This code works fine on Opera & Mozilla under Linux, but fails for both Netscape & IE under Windows: <script...
3
2002
by: kaith | last post by:
The following code used to popup a window when I used netscape 4.79. Now I switched to mozilla 1.4 and the window doesn't popup. function newWindow(newContent) { winContent =window.open(newContent,'nextWin','screenX=0,screenY=20,width=600....); winContent.focus(); } ....
10
11205
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#" onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES', 'fullimage', 'WIDTH=420,HEIGHT=405,status=0')"> The original window should not reload, but...
29
4975
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
6
6964
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug: <http://support.microsoft.com/default.aspx?scid=kb;en-us;888021> The statement like myPopup = window.open(args); gives you runtime error and halts...
5
7799
by: Nathan Sokalski | last post by:
How do I open and change properties of (such as size, position, scroll position, visibility of toolbars, etc.) a browser window? Thanks. -- Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/
18
3315
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to the image. The desired behavior is that when the pop-up is invoked, I want the underlying window to stay put. I don't have this problem when I...
0
7679
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...
0
8048
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 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...
0
6385
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5571
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5281
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3722
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...
0
3722
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2183
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
1
1284
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.