Solved

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

Posted on 2008-06-10
3
139 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now