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 acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Javascript closing a greybox window

Reply  
Thread Tools
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
28-Oct-2009, 10: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
Senior Member with 521 posts.
 
Join Date: Nov 2006
Location: Cornwall, UK
Experience: Advanced
28-Oct-2009, 11: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..
__________________
[/SIZE]If your thread is solved, please use the thread tools menu to mark it as solved.[/CENTER]
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
28-Oct-2009, 11:07 AM #3
Thanks so much Anthony! Any code you can provide would be greatly appreciated!

Ken
Anthony:-P's Avatar
Senior Member with 521 posts.
 
Join Date: Nov 2006
Location: Cornwall, UK
Experience: Advanced
05-Nov-2009, 01: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...
__________________
[/SIZE]If your thread is solved, please use the thread tools menu to mark it as solved.[/CENTER]
frat78's Avatar
Junior Member with 3 posts.
 
Join Date: Oct 2009
05-Nov-2009, 03:17 PM #5
That worked. Thanks Anthony!
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:40 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.