pop-up window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mychikka
    New Member
    • Mar 2009
    • 21

    pop-up window

    Hi,

    Im just starting to learn PHP nor Java and I dont have any basic idea how to do this. But im asking of basic knowledge or script on how to do a pop-up window inside PHP and select the name inside the pop-up window to transfer on my main page. All I know is I have to use Java to make things work. To clarify, here the steps user will do.

    1. open main page
    2. cick the button contact name
    3. a pop up window will appear with list box of contacts.
    4. after selecting the contact people it will display the name back to main page.

    I hope i made it clear. let me know if you need more information.

    thanks!
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    PHP is server-side; it does not interact directly with the browser.

    Ask in the javascript forum.

    - mark.

    Comment

    • mychikka
      New Member
      • Mar 2009
      • 21

      #3
      thanks Mark for the input

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        a popup in Javascript is basicly like
        Code:
        window.open(file, name, settings);

        Comment

        • mychikka
          New Member
          • Mar 2009
          • 21

          #5
          Looks like after putting this thread on Java forum their kicking me out :) to PHP.

          but anyways I was able to do the pop-up window the next problem Im having is how to copy the value selected from window 2 to window 1 back?

          Code:
          echo ' 
              <h2>' . ( $id ? translate ( 'Edit Entry' ) : translate ( 'Add Entry' ) ) 
           . $eType_label . '&nbsp;<img src="images/help.gif" alt="' . translate ( 'Help' ) 
           . '" class="help" onclick="window.open( \'search_contact.php' 
           . ( empty ( $id ) ? '?add=1' : '' ) 
           . '\', \'cal_help\', \'dependent,menubar,scrollbars,height=400,width=800,' 
           . 'innerHeight=420,outerWidth=420\' );" /></h2>'

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Javascript, not Java. Two completely different things.

            - mark.

            Comment

            • vrsoft
              New Member
              • Apr 2009
              • 9

              #7
              well

              Originally posted by mychikka
              Hi,

              Im just starting to learn PHP nor Java and I dont have any basic idea how to do this. But im asking of basic knowledge or script on how to do a pop-up window inside PHP and select the name inside the pop-up window to transfer on my main page. All I know is I have to use Java to make things work. To clarify, here the steps user will do.

              1. open main page
              2. cick the button contact name
              3. a pop up window will appear with list box of contacts.
              4. after selecting the contact people it will display the name back to main page.

              I hope i made it clear. let me know if you need more information.

              thanks!
              Thanks that works for me.

              Comment

              • vrsoft
                New Member
                • Apr 2009
                • 9

                #8
                some more

                hi i want to know more and more regarding this.

                Comment

                • Dormilich
                  Recognized Expert Expert
                  • Aug 2008
                  • 8694

                  #9
                  Originally posted by vrsoft
                  hi i want to know more and more regarding this.
                  about this (the topic) or this (the JavaScript keyword)?

                  Comment

                  • vrsoft
                    New Member
                    • Apr 2009
                    • 9

                    #10
                    Sorry i mean...

                    i want to learn php sample projects

                    Comment

                    • Dormilich
                      Recognized Expert Expert
                      • Aug 2008
                      • 8694

                      #11
                      if you have something specific in mind open a new thread and ask it. if it's some general, you may find some articles in the insights section useful or (even more general) look for a tutorial.

                      the PHP Manual Pages also offer lots of useful information.

                      Comment

                      • vrsoft
                        New Member
                        • Apr 2009
                        • 9

                        #12
                        tell me with kind.

                        Originally posted by Dormilich
                        Thank you.
                        Thanks.actually i am new to this forums.so i don't know how to use it.
                        if u don't mind will u give details about this?
                        how to lock my thread not to be replied by others.
                        how will i be informed if i've got a reply 4 my post.
                        i wonder how u monitor our posts and replies,kindly tell me.

                        Comment

                        • waqasahmed996
                          New Member
                          • Jun 2008
                          • 160

                          #13
                          you can do this in javascript just like this in popup window

                          Code:
                          window.opener.document.getElementById( 'xyz' ).value = value_from_contactbox 
                          window.close();

                          Comment

                          • Dormilich
                            Recognized Expert Expert
                            • Aug 2008
                            • 8694

                            #14
                            Originally posted by vrsoft
                            Thanks.actually i am new to this forums.so i don't know how to use it. if u don't mind will u give details about this?
                            general advice you can find in the help section and the posting guidelines

                            Originally posted by vrsoft
                            how to lock my thread not to be replied by others.
                            this can be done by moderators, although it's not practiced.
                            Originally posted by vrsoft
                            how will i be informed if i've got a reply 4 my post.
                            i wonder how u monitor our posts and replies,kindly tell me.
                            you can change these notification settings in the user control panel. make sure to regularly check your PMs

                            kind regards and welcome at Bytes

                            Comment

                            • vrsoft
                              New Member
                              • Apr 2009
                              • 9

                              #15
                              may i know how you moderators monitor our posts and replies,kindly tell me.
                              are u having mail alert or database checking or are u having any technical user interface tool?
                              bcaz as soon as i posted here u would reply.so how?

                              Comment

                              Working...