473,405 Members | 2,279 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,405 software developers and data experts.

javascript window.opener problems

Hi,
I am developing the common page to iterate the names. I am calling this page using in 3 different scenarios/ from 3 different pages. eg calling user.jsp(popup page) from page1.jsp,page2.jsp,page3.jsp. In (user.jsp) popup page I had written window.opener to send the names to text boxes of particular main pages.

How can I differentiate the following pages.

Expand|Select|Wrap|Line Numbers
  1.  window.opener.document.getElementById("workflow_activityForm").fkUserId.value = loginName;
It is displaying error window.opener is null

can i give formnames or not. But it is working for single form only..
please suggest me..
Apr 19 '11 #1
1 1663
gits
5,390 Expert Mod 4TB
the line you posted is in the popup window?

kind regards
Apr 26 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Daniel Andersen | last post by:
Hi, Does anyone here know of a way of tracking the window that launched a popup window besides using window.opener? The problem i'm having is that the popup window submits a form within itself...
1
by: David Cohen | last post by:
From the main window, I'm opening a popup window. In that poupup window, the user loads a number of different pages (by submitting forms and clicking on buttons), some of which are in a...
1
by: Plasson | last post by:
<script language="JavaScript"> window.opener.location.reload(); setTimeout(window.close(), 5000); </script> I have this code in a popup in which I let user login using PHP (2 passages: insert...
1
by: fogwolf | last post by:
First a basic outline of what I am trying to do: I want to have a page spawn a pop-up when you click "submit" on its form. On this pop-up page there will be another form. When you click "submit"...
3
by: Steve Wark | last post by:
I have created a ASP.NET application and created two forms within the application (Webform1.aspx & Webform2.aspx). On the first form I have placed a textbox (TextBox1) and a button, which when...
1
by: ajay7387 | last post by:
i am facing a problem with window.opener. i have a function addToTable(var d) and if i am calling that from child window using window.opener.addToTable(var) its not working. "<A HREF='#'...
2
by: John | last post by:
Hi There is a <select name='city'item with <optionin the HTML <form name='france'> I have tried using the following in a JS routine: <a...
2
by: TheITGuyFromNY | last post by:
To set this up, I have a parent window with a list of things (doesn't matter what they are, but they are loaded by the page dynamically from a database with ASP server-side script. So, next to each...
1
by: Vexander | last post by:
Hi I am trying to right a script that closes a popup and then refreshes the pener to specific URL If have this that works form me <script type="text/javascript"> ...
5
by: gvamohan | last post by:
hai every one iam opening an window through javascript <script type="text/javascript" language="javascript"> var k=false; ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.