Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to create an extensible mechanism for linked drop downs.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

816 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

10 Experts available now in Live!

Get 1:1 Help Now