open a window in parent frame - html help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dickblast
    Confirmed User
    • Oct 2002
    • 666

    #1

    open a window in parent frame - html help

    i need to have a link from a popup open in the PARENT window (meaning the window that originally created the popup) and close the popup. i need whatever java/html is needed 2 make this happen (or related links plz.)

    thx in advance

    Ben Curtis is a Ninja
  • grumpy
    Too lazy to set a custom title
    • Jan 2002
    • 9870

    #2
    if browser A opens a popup...browser A has full controll over the popup.
    The popup can never have control over the parent!!

    so if you do tmpw=window.open(.......)
    then you can do
    from the parent

    tmpw.window.close or tmpw.document.url=


    I dont know exactly what you want but i hope it makes sense,
    Don't let greediness blur your vision | You gotta let some shit slide
    icq - 441-456-888

    Comment

    • Amputate Your Head
      There can be only one
      • Aug 2001
      • 39075

      #3
      Originally posted by grumpy
      if browser A opens a popup...browser A has full controll over the popup.
      The popup can never have control over the parent!!
      not true... the popup can indeed control the parent.
      SIG TOO BIG

      Comment

      • grumpy
        Too lazy to set a custom title
        • Jan 2002
        • 9870

        #4
        tell me amp... i would like to know.

        or you mean parent.window and that stuf?
        Don't let greediness blur your vision | You gotta let some shit slide
        icq - 441-456-888

        Comment

        • dickblast
          Confirmed User
          • Oct 2002
          • 666

          #5
          plz elaborate
          Ben Curtis is a Ninja

          Comment

          • Amputate Your Head
            There can be only one
            • Aug 2001
            • 39075

            #6
            it's complicated.... lemme try and put the code together for you....
            SIG TOO BIG

            Comment

            • dickblast
              Confirmed User
              • Oct 2002
              • 666

              #7
              awesome thanks

              i found java 2 open the child and keep on top, and pass info, but its via a form (damnit!!!)

              no luck finding href code 2 send back 2 the parent as you exit child

              Ben Curtis is a Ninja

              Comment

              • Amputate Your Head
                There can be only one
                • Aug 2001
                • 39075

                #8
                okay.... lemme know if this is what you're looking for:

                (link removed)
                Last edited by Amputate Your Head; 11-01-2002, 07:34 PM.
                SIG TOO BIG

                Comment

                • dickblast
                  Confirmed User
                  • Oct 2002
                  • 666

                  #9
                  perfect! that is exactly what i need



                  *deletes browser cache so IE6 will let him src it*
                  Ben Curtis is a Ninja

                  Comment

                  • Amputate Your Head
                    There can be only one
                    • Aug 2001
                    • 39075

                    #10
                    okay.... like I said, it's complicated.

                    1. You need some code in your main parent head, and there's some things you'll need to change in that section of code...

                    2.then of course, you need the page that you're ultimately sending back to the parent....

                    3. you need to set your intial link for the popup very specifically.

                    4. You need to make sure all the paths are set up correctly in all the code in all these files.

                    5. You need a javascript file that carries the bulk of the code, which will also hafta be modified.

                    6. you need the popup page.... again, which will need to be modified.

                    there's basically 4 main files you need to make this work:
                    Main page
                    Popup page.
                    Javascript file.
                    Final destination page.

                    Obviously I can't post all that here.... but if you want, I'll send you a zip file, and you can go through all the code and make the changes to fit what you need. Just check out the paths and it should all make sense to you in no time. This one is set up for the popup to carry a video, but you could set it up for practically anything.... put an image on there, or some Flash, or whatever.
                    SIG TOO BIG

                    Comment

                    • XXXPaysiteDesign
                      Confirmed User
                      • Mar 2002
                      • 2201

                      #11
                      thanks!
                      Last edited by XXXPaysiteDesign; 11-01-2002, 07:43 PM.
                      SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

                      Comment

                      • dickblast
                        Confirmed User
                        • Oct 2002
                        • 666

                        #12
                        [email protected] plz
                        Ben Curtis is a Ninja

                        Comment

                        • Amputate Your Head
                          There can be only one
                          • Aug 2001
                          • 39075

                          #13
                          yours bounced bro....
                          Last edited by Amputate Your Head; 11-01-2002, 07:49 PM.
                          SIG TOO BIG

                          Comment

                          • Amputate Your Head
                            There can be only one
                            • Aug 2001
                            • 39075

                            #14
                            .
                            Last edited by Amputate Your Head; 11-01-2002, 07:49 PM.
                            SIG TOO BIG

                            Comment

                            • dickblast
                              Confirmed User
                              • Oct 2002
                              • 666

                              #15
                              motherrrrrr

                              i just sent myself 1, mayb ur ISP is on a block list or somethin

                              webmaster at sexatm dot com

                              thx
                              Ben Curtis is a Ninja

                              Comment

                              • Amputate Your Head
                                There can be only one
                                • Aug 2001
                                • 39075

                                #16
                                sent
                                SIG TOO BIG

                                Comment

                                • grumpy
                                  Too lazy to set a custom title
                                  • Jan 2002
                                  • 9870

                                  #17
                                  found a samplehttp://www.dwfaq.com/Tutorials/JavaS...pToParent1.asp
                                  Don't let greediness blur your vision | You gotta let some shit slide
                                  icq - 441-456-888

                                  Comment

                                  • Amputate Your Head
                                    There can be only one
                                    • Aug 2001
                                    • 39075

                                    #18
                                    yep.... that's basically the same thing grumpy...
                                    SIG TOO BIG

                                    Comment

                                    • grumpy
                                      Too lazy to set a custom title
                                      • Jan 2002
                                      • 9870

                                      #19
                                      self.opener.location =url

                                      so you also have control over self.opener.document

                                      self.opener is the parent

                                      use self.opener in the script on the popup

                                      Hope this helps
                                      Don't let greediness blur your vision | You gotta let some shit slide
                                      icq - 441-456-888

                                      Comment

                                      • kenny
                                        Confirmed User
                                        • Mar 2002
                                        • 7245

                                        #20
                                        I like Iframes


                                        But netscape dont
                                        7

                                        Comment

                                        • dickblast
                                          Confirmed User
                                          • Oct 2002
                                          • 666

                                          #21
                                          ok got a prob

                                          it opens a page but im tryin 2 call a cgi in a template

                                          so the way u have it set up it cant call the script and load the content

                                          let me know if i should gfmyself and search html forums

                                          Ben Curtis is a Ninja

                                          Comment

                                          • dickblast
                                            Confirmed User
                                            • Oct 2002
                                            • 666

                                            #22
                                            2 clarify a little:

                                            i have to load the javascript inside a cgi, that pops up and reads in a template on queried data

                                            then when closed, close that popup and return the the cgi page that did that

                                            hehe this is getting ridiculous

                                            Ben Curtis is a Ninja

                                            Comment

                                            • kenny
                                              Confirmed User
                                              • Mar 2002
                                              • 7245

                                              #23
                                              Originally posted by dickblast
                                              2 clarify a little:

                                              i have to load the javascript inside a cgi, that pops up and reads in a template on queried data

                                              then when closed, close that popup and return the the cgi page that did that

                                              hehe this is getting ridiculous

                                              I havent mixed much Javascript with perl, is the cgi script not printing out the Javascript right? I am not totally sure what your trying to do
                                              7

                                              Comment

                                              • Amputate Your Head
                                                There can be only one
                                                • Aug 2001
                                                • 39075

                                                #24
                                                Originally posted by dickblast
                                                2 clarify a little:

                                                i have to load the javascript inside a cgi, that pops up and reads in a template on queried data

                                                then when closed, close that popup and return the the cgi page that did that

                                                hehe this is getting ridiculous

                                                you're gonna need a programmer for that bro.... that's beyond my scope.
                                                SIG TOO BIG

                                                Comment

                                                • kenny
                                                  Confirmed User
                                                  • Mar 2002
                                                  • 7245

                                                  #25
                                                  Originally posted by Amputate Your Head


                                                  you're gonna need a programmer for that bro.... that's beyond my scope.
                                                  I noticed that you strongly not recommend IIcinternet hosting services, did you get fucked over by them? I am curious being that I currently have a server over there
                                                  Last edited by kenny; 11-01-2002, 09:25 PM.
                                                  7

                                                  Comment

                                                  • ChrisH
                                                    Confirmed User
                                                    • Aug 2001
                                                    • 1355

                                                    #26
                                                    Originally posted by grumpy
                                                    found a samplehttp://www.dwfaq.com/Tutorials/JavaS...pToParent1.asp
                                                    Thanks for that link man!!
                                                    Add Your Niche Sites
                                                    Add Your Shemale Sites/Galleries
                                                    Talk About the NFL

                                                    Comment

                                                    • dickblast
                                                      Confirmed User
                                                      • Oct 2002
                                                      • 666

                                                      #27
                                                      got it 2 open in the right window but is there code 2 close the child window when u click a link in it? html i guess cause the java is funky. thx
                                                      Ben Curtis is a Ninja

                                                      Comment

                                                      • kenny
                                                        Confirmed User
                                                        • Mar 2002
                                                        • 7245

                                                        #28
                                                        Originally posted by dickblast
                                                        got it 2 open in the right window but is there code 2 close the child window when u click a link in it? html i guess cause the java is funky. thx

                                                        You are using frames in a webpage along with Javacript and cgi perl, there isnt a soul here that can make this work without admin access or acute information from you
                                                        7

                                                        Comment

                                                        • Fire
                                                          Confirmed User
                                                          • Feb 2002
                                                          • 486

                                                          #29
                                                          Hey dickblast.. want my help???

                                                          Comment

                                                          • dickblast
                                                            Confirmed User
                                                            • Oct 2002
                                                            • 666

                                                            #30
                                                            Originally posted by Fire
                                                            Hey dickblast.. want my help???

                                                            i think u misread the title of the thread, i said html help not peanut gallery

                                                            thanks 4 the attempt guys ill get back 2 u tomorrow with more details, given up on this biatch fer now
                                                            Ben Curtis is a Ninja

                                                            Comment

                                                            Working...