Thread: eZPage Popup??

Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default eZPage Popup??

    Hello,

    I have an ezpage that loads an external link in an <iframe> however I want to take the external link and have it load into a popup when the ezPage is loaded so that the user can use it while there shopping on my site.

    Or am I going about this the wrong way, should I use a define page to make this happen?

    Thank you,
    avel
    User of zencart

  2. #2
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

  3. #3
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: eZPage Popup??

    I forgot to mention that the javascript can be changed from the header to inline and all you need to do is change the body bit to
    HTML Code:
    <script>
      document.body.onload = function(){ /* blah */ };
    </script>

  4. #4
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: eZPage Popup??

    Not going to work exactly the way I was hoping.

    Here is a little more detailed explanation.

    I want the link to be under the eZpage Sidebox, called Battery Central.
    When the user clicks on it I want a popup window to appear without interrupting the users current page on my website.

    The popup will assist a buyer to find a product, once the buyer finds the product and adds the product to the shopping cart I will have a close window link.

    so basically should I (and how) hard code a link under the ezpages sidebox, which is currently called "website tools" on my site?

    or is there a way to include a javasccript code inside of the ezpage that once the link is clicked it will load the popup without interrupting the current page the user is on?

    Thank you,
    Avel
    User of zencart

  5. #5
    Join Date
    Nov 2007
    Posts
    195
    Plugin Contributions
    2

    Default Re: eZPage Popup??

    You just want a standard popup window link, that page I gave you a link to will make them for you. You can use js on ez pages.

  6. #6
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: eZPage Popup??

    yes it will however it will try to open a window and then when it loads the popup the original window will display [OBJECT WINDOW] which is the interruption I am speaking.

    anyhow I am going to hard code the information.php file for now

    Thanks anyway
    User of zencart

  7. #7
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: eZPage Popup??

    yes it will however it will try to open a window and then when it loads the popup the original window will display [OBJECT WINDOW] which is the interruption I am speaking.
    I don't think a normal plan popup code will do it for ya... don't matter how you use it, it would go behind the main window soon you click outside of it. Also, many have popups disabled. You would have to code it to create a Layer or half Layer half Flash like the lightbox mod does. Also be very hard to keep it when switching pages.

    May be easer to create a new sidebox to do the work and it would tack from page to page easer then using layer or popup.

    Just a thought...
    Dave
    Always forward thinking... Lost my mind!

  8. #8
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: eZPage Popup??

    Ok I did a custom contact us for a client that comes up in a popup to replace the standard contact us. First I created a .js file to be placed in includes/templates/YOUR_CUSTOM_TEMPLATE/jscript
    In our case I named the file jscript_contactuspop.js and its contents are as follows:
    Code:
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=610,height=610,left = 387.5,top = 95');");
    }
    // End -->
    The custom contactus.php file was placed in the root of the cart

    the file is then called by using the page title as the link to call the script which then calls the file opening it in a popup. Instead of using a standard page title for the ezpage I put the following in the page title:
    Code:
    <A HREF="javascript:popUp('contactus.php')">Contact Us</a>
    I hope this helps.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  9. #9
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: eZPage Popup??

    Quote Originally Posted by davewest View Post
    I don't think a normal plan popup code will do it for ya... don't matter how you use it, it would go behind the main window soon you click outside of it. Also, many have popups disabled. You would have to code it to create a Layer or half Layer half Flash like the lightbox mod does. Also be very hard to keep it when switching pages.

    May be easer to create a new sidebox to do the work and it would tack from page to page easer then using layer or popup.

    Just a thought...
    Well i got it working correctly however when i used it to load a product in the checkout it loaded it directly into the popup, which sucked so I scrapped the whole idea for now

    thanks
    User of zencart

 

 

Similar Threads

  1. EZPage as HomePage
    By bentt in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 26 Jul 2010, 05:10 PM
  2. EZpage Sidebox
    By neighbornick in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2009, 07:26 AM
  3. ezpage
    By ronron in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Mar 2009, 03:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg