[PHP] Re: PHP pop-up windows

2009-02-06 Thread Clancy
On Thu, 05 Feb 2009 01:47:28 +, nrix...@gmail.com (Nathan Rixham) wrote:

Clancy wrote:
 I'm working on a website editor, primarily for my own use. Normally it will 
 be used on my
 own computer, and much of what I wish to achieve could arguably be better 
 done in either C
 or JavaScript, but both of these have a similar programming syntax to PHP, 
 but with subtle
 differences, and I don't think my brain could cope with trying to work in 
 two similar but
 different languages simultaneously.
...

 Is this a feasible mode of operation, and if so would anyone like to suggest 
 ways to
 implement it, and/or traps to be avoided?

if ever somebody needed flex, it's you

Thanks. But what is flex?

1. Flex electrical cable: I've got plenty of that out in the shed, but it 
doesn't seem to
be relevant here (unless I decide that it is all too much, and decide to hang 
myself with
it!)

2. Single tasking operating system for the Motorola 6800: I once programmed in 
6800
assembler, but I rather doubt if you can buy it, or them, these days.

3. Bodybuilding magazine: too late for that!

4. Adobe application builder - widely criticised for being inflexible: not what 
I'm
looking for.

Perhaps I ought to just give up, and get somebody else to do the job for me, 
but then I
would get the solution to somebody else's problem.  

Also, although my mental agility is less than it used to be, so that I can't 
really handle
working in multiple environments, I still enjoy programming, and it does keep 
my brain
from going rusty!

I have had what seems to me to be a bright idea, and I wondered if anybody had 
tried
anything similar, and could cast any light either on how to go about it, or on 
problems
that I might encounter. 

Just telling me to use something else, without explaining what it is or why it 
is better,
is not really being helpful.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP pop-up windows

2009-02-04 Thread Nathan Rixham

Clancy wrote:

I'm working on a website editor, primarily for my own use. Normally it will be 
used on my
own computer, and much of what I wish to achieve could arguably be better done 
in either C
or JavaScript, but both of these have a similar programming syntax to PHP, but 
with subtle
differences, and I don't think my brain could cope with trying to work in two 
similar but
different languages simultaneously.

 An example of what I would like to achieve is:

The primary instance of the program opens a text input window for the user to 
enter, say,
one or more addresses from the contact list. It then pops up a second window, 
which could
be another instance of the same program. In this window the user can search the 
contacts
for the names he wants, and highlight them. When he is satisfied he clicks the 
submit
button on the second window.

When he does this the second window closes, and the primary window detects the 
response,
processes it, and inserts it into the entry area.

I gather that it would be possible for the first program to spawn a child 
process when the
user clicks the button, and this could then open the second window. I think 
that the child
can share session variables with the parent, so the parent could redraw its 
window, then
wait for some flag to be set in the session window, indicating the second 
window was
closing. The parent would then redraw its page incorporating the new 
information.

Is this a feasible mode of operation, and if so would anyone like to suggest 
ways to
implement it, and/or traps to be avoided?




if ever somebody needed flex, it's you

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php