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

Opening ne window OnClick

How can I change the following client side javascript to open the referenced
asp page in a new window:

Response.Write "
<td align=""left"" nowrap
onClick=""javascript:document.location=my.asp?ID1= " & ID1& "&ID2=" & ID2&
"';"">"

For now it work perfectly excect that it opens in the paren window.

Thanks,

TJ
Jul 22 '05 #1
3 1323
The open_win() function works perfectly but somehow fails to recognise one
of the parameters. Is there a way of opening a new window using the
following syntax:

onClick=""javascript:document.location=my.asp?ID1= " & ID1& "&ID2=" & ID2&
"';"">"
Thanks

"Tapi" <t.******@free.fr> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl... How can I change the following client side javascript to open the referenced asp page in a new window:

Response.Write "
<td align=""left"" nowrap
onClick=""javascript:document.location=my.asp?ID1= " & ID1& "&ID2=" & ID2&
"';"">"

For now it work perfectly excect that it opens in the paren window.

Thanks,

TJ

Jul 22 '05 #3
Found the solution:

onClick=window.open(""table_candidature_fiche.asp? ID1=" & ID1&"&ID1=" &
ID1&""")>"
"Tapi" <t.******@free.fr> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
The open_win() function works perfectly but somehow fails to recognise one
of the parameters. Is there a way of opening a new window using the
following syntax:

onClick=""javascript:document.location=my.asp?ID1= " & ID1& "&ID2=" & ID2&
"';"">"


Thanks

"Tapi" <t.******@free.fr> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
How can I change the following client side javascript to open the

referenced
asp page in a new window:

Response.Write "
<td align=""left"" nowrap
onClick=""javascript:document.location=my.asp?ID1= " & ID1& "&ID2=" & ID2& "';"">"

For now it work perfectly excect that it opens in the paren window.

Thanks,

TJ


Jul 22 '05 #4

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

Similar topics

10
by: -DRB- | last post by:
Hi all, I'm very much an amateur designing a page (for free!) for a friend, so any help offered would be hugely appreciated. I'm aiming to open a maximised window (and isn't that fun...) and...
9
by: Karel | last post by:
All, I am completely new to Javascript but I have read some articles and examples about opening new windows from a webpage. However I am trying to open a data file ( in html format) that is...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
5
by: REB | last post by:
Can someone help me with adding some javascript functionality to a button? What would the proper syntax for for (please help with the javascript I am rusty) for doing this: ...
2
by: Keshav Gadia | last post by:
Hi, I am an ASP.net newbie. I am writing a user control that is made up of datagrid with one of the columns opening a new window to display some details on click of the set image. I have...
1
by: OtisUsenet | last post by:
Hello, I have some onClick events in <a href...> elements, so they get called when a user clicks on a link. This works well, and looks like this: <a onclick="onLinkClick(123);"...
26
by: Nospam | last post by:
I am trying to open a link in a new template window : <a onclick="windowopen('example.html','example');return false;" href="http://www.example.com" target="_blank"example link</a> such that...
2
by: Oliver Wong | last post by:
I'm trying to have the "submit" button of a form open a new window which loads a PDF, and also to redirect the window containing the submit button to a new location. Here's a small HTML file...
1
by: abhishekbrave | last post by:
The code below is opening a calendar on mouse over in the same window. I need the calendar to be opened in new window. Have to fulfill this requirement urgentely so posting the whole code here. I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.