Forum Moderators: open

Message Too Old, No Replies

Pop-up like the one in google calendar

Pop up that puts the entered data into database

         

shruti

2:12 pm on Jul 16, 2008 (gmt 0)

10+ Year Member



When your boss sees something and wants similar stuff it gets crazy around.

I have a tableABC in MYSQL with few fields(name, count 1 ,count 2 ,count 3 and they are being displayed on a webpage via PHP.
Now when any row is clicked then a pop up opens and then he can select the problem from drop down, and a solution from drop down and enter comments in a text field.

Now the Name(ABCtable) with the selected problem and solution ans entered text should go in a sepereate table say XYZ in the MYSQL.

I can do it in any language. PHP alone or PHP+javascript or JSP or AJAX.

But I have no idea what to do and trying to search something like this in google gets me nothing.

Can you please help me? If someone has done a project like that before then can you share few ideas, links or references or anything that might get me a start? (I am learning PHP and Java script a little from web, so dont know much)

Thanks in advance

rocknbil

6:04 pm on Jul 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard shruti, I'm not sure what the task or problem is.

If you mean how do you get the data from the pop up window to the main window, look at window.opener. Window.opener is the window that opened the pop up and is used to refer to if from the pop up. So if you have a comments field in BOTH the pop up and your main window,

window.opener.comments.value=comments.value;

would bring the text from the pop-up to the main window.

To post data from the pop up window to the database, you would just do a post to a script that does so directly from that pop up. Not sure what you'd want it in a new table though.

shruti

6:40 pm on Jul 16, 2008 (gmt 0)

10+ Year Member



Sorry my explanation was a bit hasty.
And thanks for letting me join such a nice community.

Ok, my task here is that.I have

A B C
--------------------------
a b c
w x y
m n o

This is a table displayed on my screen which comes from database

Now if i click on "a" or "b" or "c" or "m".......
then a pop up comes up.
That pop up has 2 drop down , a text area to be filled and a submit button.
When you fill and click submit. then the window closes and the data gets submited to the database table.

shruti

6:41 pm on Jul 16, 2008 (gmt 0)

10+ Year Member



Can you please demonstrate such a thing with an example?

Fotiman

7:33 pm on Jul 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could do this without actually opening a new "window" per say. Check out the Yahoo UI Library [developer.yahoo.com], specifically the Container components [developer.yahoo.com] and more specifically the Dialog [developer.yahoo.com] component.

[edited by: Fotiman at 7:42 pm (utc) on July 16, 2008]

shruti

8:25 pm on Jul 16, 2008 (gmt 0)

10+ Year Member



thank you. I will try and tell you.