Can I write dynamic php content to an iFrame?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimthefiend
    So Fucking Banned
    • Oct 2003
    • 18889

    #1

    Can I write dynamic php content to an iFrame?

    ie. a forum or such?


    Noob question I know, sue me.
  • grumpy
    Too lazy to set a custom title
    • Jan 2002
    • 9870

    #2
    Originally posted by jimthefiend
    ie. a forum or such?


    Noob question I know, sue me.
    yes you can. Just see a iframe as a second browser window wich you can control from your main window.
    Don't let greediness blur your vision | You gotta let some shit slide
    icq - 441-456-888

    Comment

    • jimthefiend
      So Fucking Banned
      • Oct 2003
      • 18889

      #3
      Originally posted by grumpy
      yes you can. Just see a iframe as a second browser window wich you can control from your main window.


      ok thank you next question.

      you suggest using a force frame script?

      Comment

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

        #4
        what exactly do you wanna do with it?
        Don't let greediness blur your vision | You gotta let some shit slide
        icq - 441-456-888

        Comment

        • jimthefiend
          So Fucking Banned
          • Oct 2003
          • 18889

          #5
          embed a forum into an iframe lol
          gotta fit in with the site template so thats the reason behind the force frame question.

          or is there an easier way to do that?

          i just need to make sure that the interface sticks around and that no one can bypass it. i.e. sidebar etc.

          Comment

          • jimthefiend
            So Fucking Banned
            • Oct 2003
            • 18889

            #6
            like this:


            pageLoc = self.location;
            pageAdd = top.location;

            if (pageLoc hahahaha pageAdd) {
            contentSrc = escape(pageLoc);
            contPage = 'index.html?' + contentSrc;
            top.location.href = contPage;
            }

            Comment

            • modF
              Confirmed User
              • Aug 2002
              • 1888

              #7
              Why don't you use something like vBulletin where you control the actual template of the forum. Or am I off in my interperation of what you want to do?

              I do things
              skype:themodF

              Comment

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

                #8
                Originally posted by jimthefiend
                like this:


                pageLoc = self.location;
                pageAdd = top.location;

                if (pageLoc hahahaha pageAdd) {
                contentSrc = escape(pageLoc);
                contPage = 'index.html?' + contentSrc;
                top.location.href = contPage;
                }

                if you link a forum in your iframe and they have top.location in it then it wont work. It will break out of the iframe.
                Don't let greediness blur your vision | You gotta let some shit slide
                icq - 441-456-888

                Comment

                • jimthefiend
                  So Fucking Banned
                  • Oct 2003
                  • 18889

                  #9
                  Originally posted by modF
                  Why don't you use something like vBulletin where you control the actual template of the forum. Or am I off in my interperation of what you want to do?


                  but thats still gonna be a stand alone page.

                  i need to nestle it into the site.

                  its side and top bars surrounding an iframe where all the content is diplayed.
                  i need the forum to do the same.

                  Comment

                  • jimthefiend
                    So Fucking Banned
                    • Oct 2003
                    • 18889

                    #10
                    Originally posted by grumpy
                    if you link a forum in your iframe and they have top.location in it then it wont work. It will break out of the iframe.

                    i thought if LOC and ADD were the same then it forced a load of the index which contained the shit in an iframe?

                    Comment

                    Working...