Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor network networking outlook problem processor recovery registry cleaner router safe mode slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Javascript closing a greybox window

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
28-Oct-2009, 09:33 AM #1
Javascript closing a greybox window
Anthony, how about passing a value from the greybox page back to the parent while still preserving the form field entries on the parent page? I have the users choosing a value from a large list in greybox which will populate a textbox on the parent, but there are many other form fields on the parent page, which all get reset if it is refreshed. Any ideas? Thanks!
Anthony:-P's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Nov 2006
Location: Cornwall, UK
Experience: Advanced
28-Oct-2009, 10:01 AM #2
Hi frat78,

Welcome to TSG! In order to help you find a solution to your problem it's always best to start a new topic - many of the helpers here at TSG look for zero reply posts in order to provide answers / help / advice; so you have more chance of being seen that way.

I'll ask a moderator to split this topic and then I'll post some code to do as you wish

Many thanks,
A..
__________________
RapidVPS; Non-oversold, low cost hosting - cPanel shared hosting from $2.91 p/m - VPS from $19.95 p/m
If your thread is solved, please use the thread tools menu to mark it as solved.
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
28-Oct-2009, 10:07 AM #3
Thanks so much Anthony! Any code you can provide would be greatly appreciated!

Ken
Anthony:-P's Avatar
Computer Specs
Senior Member with 512 posts.
 
Join Date: Nov 2006
Location: Cornwall, UK
Experience: Advanced
05-Nov-2009, 12:53 PM #4
frat78,

Sorry for the delay in replying!

The following should work:
HTML Code:
function PopupFindMemberReturn(CID, Itm){
	parent.parent.document.getElementById(Itm).value = CID;
	parent.parent.GB_hide();
}
Whereby CID = the value you're returning (in this case the ID of the row in the database) and Itm = the element on the page (outside of greybox) that you want a value set to


Regs,
A...
__________________
RapidVPS; Non-oversold, low cost hosting - cPanel shared hosting from $2.91 p/m - VPS from $19.95 p/m
If your thread is solved, please use the thread tools menu to mark it as solved.
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
05-Nov-2009, 02:17 PM #5
That worked. Thanks Anthony!
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:15 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.