Bluehost.com Web Hosting $6.95

Need some pop-up javascript/php help

This is a discussion on Need some pop-up javascript/php help within the PHP Language forums, part of the PHP Programming Forums category; Is there a technique for this? Take a standard order-entry. You have your "header" info with the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-25-2004
Al C.
 
Posts: n/a
Default Need some pop-up javascript/php help

Is there a technique for this?

Take a standard order-entry. You have your "header" info with the PO number,
and Tax rate, etc. and then you have one to many item lines. Currently I do
it all on one screen, but this is a PITA when an order has a lot of items as
it results in a lot of server-trips as well as scroling.

Everything is written in PHP.

What I'd like to do is have the "add new line item" and the "edit line item"
buttons create a pop-up where the user can enter, say up to ten times per
screen (that part is easy). Then when they click the submit button, the pop
closes and the bottom screen (with the PO number and Tax rate, etc.) gets
updated with line items.

I'm an accomplished PHP coder but my html and my javascript are not at the
same level. Is there some "magic" out there that makes all of this easy? Is
there some javascript that will close the pop, close the under-window, and go
back to server where I can update a database and re-direct the user to a new
(i.e. updated) order-entry screen.

The only alternative I know of would be to instruct the user with a "Please
Press the Recalc Button On Main Screen After This Pop-Up Closes" message.
But that seems so lame.

Thanks for any ideas, links, examples, etc.

Al
Reply With Quote
  #2 (permalink)  
Old 10-25-2004
Theo
 
Posts: n/a
Default Re: Need some pop-up javascript/php help

"Al C." <no.spam.acanton@adams-blake.no.spam.com> wrote in
news:10nogklehi0u7ff@news20.forteinc.com:

> Thanks for any ideas, links, examples, etc.


theres lots of javascript for stuff like this. just do a google search on
accessing and passing form variables betwen windows. example: on the child
popup, if you want to pass a value to a form on the parent, use

window.opener.document.parentformname.formboxname. value = value;


value on the child window could be

document.childformname.anotherformboxname.value

if you want to do alot of these, have the newvalue form in the popup. on
clicking a button, or a simple text link with javascript funtion as the
link, use onclick to call a function that will pass the values in the form
as shown above.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0