PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 3rd, 2005, 12:11 PM
b0zie b0zie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 3 b0zie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 40 sec
Reputation Power: 0
How can I send information from one window to another?

I want to send the image’s filename, which in this case is “banana.jpg”, to the red textbox, and then close the popup window.

See the illustration i have attached. (help.jpg)

It should be something like the attach system you have here on this forum..

Thanks in advance!

-b0zie
Attached Images
File Type: jpg help.jpg (21.9 KB, 187 views)

Reply With Quote
  #2  
Old February 3rd, 2005, 10:30 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 19 sec
Reputation Power: 6
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
After the file is uploaded and moved out of the Temp Directory (doesn't have to be moved, but it is normally easier that way) just use page.php?file=filelocationandname to call the picture into the pop up
__________________
CHornJr
"One day I'll know what I am doing"
My Blog
Suanhacky Lodge #49
Rebel Squadrons

Reply With Quote
  #3  
Old February 4th, 2005, 02:26 PM
b0zie b0zie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 3 b0zie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 40 sec
Reputation Power: 0
I don't think you did understand my question, but no problem.. I figured it out by myself

Reply With Quote
  #4  
Old February 23rd, 2005, 05:25 PM
ekimthegreat ekimthegreat is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 ekimthegreat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 29 sec
Reputation Power: 0
Smile What was your solution?

Quote:
Originally Posted by b0zie
I don't think you did understand my question, but no problem.. I figured it out by myself


Hi,

I am suffering from the same problem, ive managed to get my code to send information in the header when a link is clicked.
For some darn reason I cant get the info from the header on the next page.

Am I just being stupid in my newbieness?

Heres the code that creates the link:


<td align=\"left\"><a href=\"quizedit.php?uid={$row['quiz_id']}\">{$row['quiz_name']}</a></td>

and heres the created header:

http://localhost/quizedit.php?uid=1

Id rather not use cookies if possible

Cheers Mike T

Reply With Quote
  #5  
Old February 24th, 2005, 05:53 AM
b0zie b0zie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 3 b0zie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 40 sec
Reputation Power: 0
It's a javascript:

main.htm
Code:
 <form name="form">
<input type="text" name="field">
</form>
 
<a href=# onClick="window.open('popup.htm','PopUP','width=200,height=  200')">Click here to open popup</a>


popup.htm
Code:
 <a href=# onClick="opener.document.form.field.value='Okay'">Click here!</a>


This little script writes "Okey" to the field in main.htm.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > How can I send information from one window to another?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT