Solved

How do I make this open in a new window when clicked?

Posted on 2008-06-10
3
143 Views
Last Modified: 2010-04-16
Have a local dumbed down user interface for a database.  When a user clicks the client's name, the link opens up the full blown database application.  Unfortunately, it opens in the same window thus replacing my 'dumb' interface.  How can I make it open the full blown application in a new web page?  

I need my form target to be "_SO" to drill into the database properly, so I can't use _blank.
I tried putting _blank as the target of <a>, but the result is it opens up my dumb interface in a new page (losing the currently displayed client information) while my original page is replaced with the full blown application.


nsv_cell1.innerHTML=" <form name='"+nsv_formname+"' action='https://smartoffice.client.com/cdsApp?trustedWindow=1&_pageno=3&Module=DeepLink&Object=Contact&Operation=View&Data="+nsv_contact_id+"&OBO=' method='POST' target='_SO'><input name='Office' type='hidden' value='"+nsv_nslon+"'/><input name='User' type='hidden' value='"+nsv_nslun+"'/><input name='Pwd' type='hidden' value='"+nsv_nslp+"'/><a href='#' onclick=nsf_sendUserDetails('"+nsv_formname+"')  ><b>"+nsv_nameInfo+"</b></a>"+nsv_extraInfo+"";

Open in new window

0
Comment
Question by:lovetr
  • 2
3 Comments
 
LVL 10

Expert Comment

by:margajet24
ID: 21756726
0
 

Author Comment

by:lovetr
ID: 21762014
thx...but I can't seem to figure out where to place window.open to accomplish my goal.
0
 
LVL 10

Accepted Solution

by:
margajet24 earned 500 total points
ID: 21766199
put it inside  "onclick" so that when the user clicks on the name, it will open a window instead of updating the current page
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question