1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you display a page WITHOUT the page container?

Discussion in 'XenForo Development Discussions' started by Jaxel, Mar 1, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    return $this->responseView('EWRhabla_ViewPublic_Chat', 'EWRhabla_Chat', $viewParams);
    When you use the code above, it sends the template into the view and wraps the template with the rest of your website's page container. http://www.8wayrun.com/chat/

    However, I would like to offer an option like... http://www.8wayrun.com/chat/popup/

    If a user goes to that link, I would like to open the page in a popup (not an OverlayTrigger), where the chat window consumes 100% of the page. How would I do this without loading up the page_container?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Darkimmortal does this with his chat add-on, which has the option of a pop-up window so it's definitely possible.

    Might be worth sending him a PM.
  3. Shadab

    Shadab Well-Known Member

  4. Jaxel

    Jaxel Well-Known Member

    Thanks... this is what I was looking for... additional question...

    Does jQuery have it's own window popup method? All I could find is the overlay popup method...
  5. Shadab

    Shadab Well-Known Member

    I couldn't find any such method in the jQuery API docs.
    But there's a plugin available for it: http://swip.codylindley.com/popupWindowDemo.html

    Btw, You can always fall back to the native javascript way of opening a popup, using window.open().
  6. Kier

    Kier XenForo Developer Staff Member

    No it doesn't. As Shadab says, if you want to open a new browser window popup, window.open() is the way to go.

Share This Page