ab5ni
Posts: 177
|
| Posted: 08/06/2010, 12:22 PM |
|
Hi folks,
Just wondering what would be the easiest way to pass Form values (Record Form) from a pop-up back to the parent Form window. The pop-up Form is going to generate a primary key, which the parent Form will use as a foreign key once submitted. Off the top of my head, I'm thinking of just setting a cookie, although I'm pretty things would work just as well using $Get and $Put. Anyway, I guess what I"m really looking for here is the "CodeCharge" way of doing things .
TIA
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
datadoit
|
| Posted: 08/06/2010, 2:37 PM |
|
Peek under the hook of this example:
http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
|
|
|
 |
ab5ni
Posts: 177
|
| Posted: 08/06/2010, 4:22 PM |
|
Thank u very much for the info.
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 08/08/2010, 4:04 PM |
|
Well, I looked at the example, and I didn't see any code associated with the thing. I downloaded the ExamplePack2, and noticed that all the code is in asp, and I'm using PHP. Not a big, as we all know that if u know one language, then u can read other languages as well. Anyone have any idea which example in ExamplePack2 would be associated with the aforementioned example?
TIA
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ckroon
Posts: 869
|
| Posted: 08/09/2010, 2:20 PM |
|
Abn51 when you set up the example pack.. select PHP as the language... then you get the Example Pack in PHP
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ab5ni
Posts: 177
|
| Posted: 08/11/2010, 11:16 AM |
|
tyvm, ck. Must have missed that during the installation.
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 08/11/2010, 1:36 PM |
|
Well, I tried re-installing the examplepack2, and never saw an option to select a language.
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
ab5ni
Posts: 177
|
| Posted: 08/11/2010, 3:18 PM |
|
Another conundrum . After the pop-up window closes, a new version of the main page opens up instead of the original main page which holds data and is located on another tab. Using google chrome and can't seem to find a way to stop the pop-up from opening in a new tab. Any ideas here, folks?
TIA
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
datadoit
|
| Posted: 08/11/2010, 4:08 PM |
|
In your popup page that set's the opener's value, omit the line:
window.opener.focus();
That refreshes the parent window.
var win=window.open();
win.focus();
will typically open in a popup window without a security warning.
Tested in all the latest browsers.
|
|
|
 |
ab5ni
Posts: 177
|
| Posted: 08/12/2010, 9:42 AM |
|
Quote datadoit:
In your popup page that set's the opener's value, omit the line:
window.opener.focus();
That refreshes the parent window.
var win=window.open();
win.focus();
will typically open in a popup window without a security warning.
Tested in all the latest browsers.
Works like charm...tyvm!
_________________
Randall Jouett
Amateur Radio: AB5NI
I eat spaghetti code out of a bit-bucket while sitting at a hash table! And yes, I paid for the meal in cache!
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 08/15/2010, 7:00 AM |
|
ab5ni
Please don't forget to add [Resolved] or [Solved] to the thread title. Thanks.
|
 |
 |