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-05-2007, 08:11 AM   #1 (permalink)
newbie_paul
Recruit
 
Join Date: Feb 2007
Posts: 3
newbie_paul is on a distinguished road
need help plz

hello there.....
am a newbie....plz bear with me....i have a parent window.....in the parent there is a text box with a link which opens a new window...when i click the link ...a popup will open....i do some search in the popup and get some results...when i click the result....it should pass to the parent from the popup....if u r gettin confused...go to sidestep.com......in this site....u can see airport code....so when u click airport code....it will open a popup window....in that popup window type in a airport code or city and hit search....then it will display the results....then when u hit on the result...the popup will close and it will populate the parent window.....i wanna know how to do this...is there a example code or a script to do that...can some one tell me in detail what to do......plz guyz am a newbie.....and am a little confused....plz help me with this.....thanx.....
newbie_paul is offline   Reply With Quote
Old 02-05-2007, 08:27 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
sounds a lot like this post.

everything you need should be there.
__________________
Mike
sde is offline   Reply With Quote
Old 02-05-2007, 09:39 AM   #3 (permalink)
newbie_paul
Recruit
 
Join Date: Feb 2007
Posts: 3
newbie_paul is on a distinguished road
thanx for the help man....i got it workin.....i have a small problem though.....when i hit the href in parent window it is refreshin the whole page..what should i do to not refresh the page and one more....what should i do to add one more form in the same page.......

parent window is........
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 is....
Quote:
<HTML>
<HEAD>
<TITLE>Stock List</TITLE>
<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>
</HTML>
plz check the javascript in both the files and lemme know what should be added to
1) not refresh the page when hittin the href in parent
2) how to add one more form.......

thanx for the great help man.....
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
plz -----abt concept deepak_kr_mehta Standard C, C++ 3 05-11-2005 07:06 AM
Can anyone help me in this assignment plZ? VaMpIrE Standard C, C++ 7 12-22-2004 07:30 AM
i have a quetion that needs answered plz... Termite HTML, XML, Javascript, AJAX 6 05-15-2004 09:28 PM
i have a child window which i want to print at the same time hiding plz help deepanakr HTML, XML, Javascript, AJAX 0 05-10-2004 10:08 PM
colo in L.A. area needed .. plz sde Lounge 1 12-21-2002 05:53 AM


All times are GMT -8. The time now is 07:22 AM.


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