Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-07-2007, 09:09 AM   #1 (permalink)
newbie_paul
Recruit
 
Join Date: Feb 2007
Posts: 3
newbie_paul is on a distinguished road
reference the opener

hey guyz....this is regardin referencin the opener.....i mean..am tryin to populate a textbox in parent using child window......i got it all worked out....but when am tryin the add one more form it does'nt work..can anyone tell me y its not workin....am addin the html codes below...plz chk that and lemme know what is wrong.............

parent.html........
Quote:
<SCRIPT LANGUAGE="JavaScript">
<!--

function showList() {
sList = window.open("stocklist.html", "list", "width=150,height=210");
}

function remLink() {
if (window.sList && window.sList.open && !window.sList.closed)
window.sList.opener = null;
}

// -->
</SCRIPT><FORM NAME="stockForm">Enter your favorite tech stock:
<INPUT TYPE="text" NAME="stockBox" SIZE="10" VALUE="">
<INPUT TYPE="button" VALUE="list" onClick="showList()">
</FORM>
child window....(stockList.html)
Quote:
<SCRIPT LANGUAGE="JavaScript">
<!--

function pick(symbol) {
if (window.opener && !window.opener.closed)
window.opener.document.stockForm.stockBox.value = symbol;
window.close();
}

// -->
</SCRIPT>
</HEAD>
<BODY>
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="5">
<TR BGCOLOR="#cccccc"><TD><B>NYSE</B></TD><TD><B>NASDAQ</B></TD></TR>
<TR><TD><A HREF="javascript:pick('AOL')">AOL</A></TD>
<TD><A HREF="javascript:pick('CSCO')">CSCO</A></TD></TR>
<TR><TD><A HREF="javascript:pick('CPQ')">CPQ</A></TD>
<TD><A HREF="javascript:pick('INTC')">INTC</A></TD></TR>
<TR><TD><A HREF="javascript:pick('NOK')">NOK</A></TD>
<TD><A HREF="javascript:pick('SUNW')">SUNW</A></TD></TR>
<TR><TD><A HREF="javascript:pick('LU')">LU</A></TD>
<TD><A HREF="javascript:pick('AMZN')">AMZN</A></TD></TR>
<TR><TD><A HREF="javascript:pick('T')">T</A></TD>
<TD><A HREF="javascript:pick('MSFT')">MSFT</A></TD></TR>
</TABLE>
</BODY>
i tried renamin all the field names and form names ,,,but am gettin to work with the 1st form,but 2nd form is not workin....plz lemme know what i have to change in order to get this workin.....thnx.........
newbie_paul is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reference question! quick question, pls help albtross Standard C, C++ 5 08-19-2008 03:58 AM
DevC++ Help clavezza Platform/API C++ 2 04-13-2006 11:19 AM
Is a Static Reference to an Object Garbage Collected? dancer Java 1 03-01-2005 10:50 AM
Newbie not understanding crap book. Need better reference. slashdot Standard C, C++ 8 12-27-2004 10:36 AM
Add an Assembly Reference - Mono twixntwix MS Technologies ( ASP, VB, C#, .NET ) 4 07-08-2004 08:00 AM


All times are GMT -8. The time now is 09:52 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting