+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Javascript takeover

  1. #1
    Barn Newbie Rangerbob5 is on a distinguished road Rangerbob5's Avatar
    Join Date
    Nov 2009
    Posts
    40
    Rep Power
    3

    Javascript takeover

    Alright, so I managed to get the accordian working. And with a Javascript framework called highslide I managed to create a takover or "iframe" popup. All was working fine on a simple html test page. Now when I had to apply it to my actual home page, it doesn't work. It just says it's loading, but never opens anything up.

    The page in question is El Corte Inglés: Electrónica, informática, casa, supermercado, moda, desporto, viagens.... I had to put a simple "open browser window" script while I'm looking for the solution, because the campaign had to start today.

    I think the problem might be that the page already has too much script on it and that's generating a conflict somewhere along the way. On top of everything, a lot of the script already on the page was used directly from the Spanish version of the site, so I'm not totally sure what all of it does.

    Is there a quick and easy solution to create a takeover?

    Thanks

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Have you checked the error console in FireFox? Tools -> Error Console.

    Gives detailed JS error messages, if there are any.

    If I remember rightly, I had an ActiveX warning popup when I tried viewing the test page you uploaded. I had to allow an ActiveX. Don't know if that might be related.

    Do you have a test page that is still using just the IFrame popup?

  3. #3
    Barn Newbie Rangerbob5 is on a distinguished road Rangerbob5's Avatar
    Join Date
    Nov 2009
    Posts
    40
    Rep Power
    3

    The test page I posted yesterday still works. The problem isn't activeX in this instance. I actually think it's a conflict of Javascripts. But half the other javascript is written in spanish, so it's harder to understand everything :P

    I'll try out the Firefox errors concole

    Thanks

  4. #4
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by Rangerbob5 View Post
    The test page I posted yesterday still works. The problem isn't activeX in this instance. I actually think it's a conflict of Javascripts. But half the other javascript is written in spanish, so it's harder to understand everything :P

    I'll try out the Firefox errors concole

    Thanks
    The only conflict I could think of would be 2 functions with the same name.

    Do you have a test page with just the IFrame running?

  5. #5
    Barn Newbie Rangerbob5 is on a distinguished road Rangerbob5's Avatar
    Join Date
    Nov 2009
    Posts
    40
    Rep Power
    3

    This is the link of the test page, with only the iframe popup running:
    Untitled Document

    And this is the link of only the content:
    El Corte Inglés - Passatempo LG

  6. #6
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    I mean the page in your original post. Do you have an example of that with just the IFrame? That's what isn't working, is that right?

    So, there must be something on that page that is preventing it from working correctly..

  7. #7
    Barn Newbie Rangerbob5 is on a distinguished road Rangerbob5's Avatar
    Join Date
    Nov 2009
    Posts
    40
    Rep Power
    3

    Unfortunately my company has a very complicated system, so I can't give you access to the test server. But basically all I did to the homepage was add the script from that test page, so that it looked something like this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="es">
    	<head>
    		<meta http-equiv="content-type" content="text/html;charset=utf-8">
    		<meta name="description" content="Grandes armazéns, com espaços de venda em várias áreas, da moda à restauração. Compra online em Supermercado, Club Gourmet, Cartão Presente e Viagens">
    		<meta name="keywords" content="supermercado,club,gourmet,armazéns,comércio,electrónico,distribuição,saldos,promoções,online,compra,comprar,venda,viagens,moda,restauração,alimentação">
    		<title>El Corte Inglés: Electrónica, informática, casa, supermercado, moda, desporto, viagens...</title>
    		<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="El Corte Inglés">
    		<link href="http://www.elcorteingles.es/favicon.ico" rel="shortcut icon">
    		<link rel="stylesheet" href="/portada/estilos/estructura.css" media="all">
    		<link rel="stylesheet" href="/portada/estilos/cabecera.css" media="all">
    		<link rel="stylesheet" href="/portada/estilos/indice.css" media="all">
    		<link rel="stylesheet" href="/portada/estilos/contenido.css" media="all">
    		<script type='text/javascript' src="/portada/js/x_core.js"></script>
    		<script type='text/javascript' src="/portada/js/desplegables.js"></script>
    		<script type='text/javascript' src="/portada/js/swfobject.js"></script>
    		<script type='text/javascript' src="/guiafacil/include/guiafacilnuevo.js"></script>
    		<script type='text/javascript' src="/js/Abrirventana.js"></script>
    
    		<!--[if IE 5.5000]>
    			<link rel="stylesheet" href="/portada/estilos/explorer5.css" media="all">
    		<![endif]-->
            
            <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
    <script type="text/javascript" src="http://www.elcorteingles.pt/campanhas/2009_12_passatempo_LG/highslide/highslide-full.js"></script>
    <script type="text/javascript" src="http://www.elcorteingles.pt/campanhas/2009_12_passatempo_LG/highslide/highslide.config.js" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="http://www.elcorteingles.pt/campanhas/2009_12_passatempo_LG/highslide/highslide.css" />
    <!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="http://www.elcorteingles.pt/campanhas/2009_12_passatempo_LG/highslide/highslide-ie6.css" />
    <![endif]-->
    
    <script type="text/javascript">
    hs.addEventListener(window, "load", function() {
       hs.htmlExpand(null, {
          src: 'http://www.elcorteingles.pt/campanhas/2009_12_passatempo_LG/2009_12_LG_form.asp', objectType: 'iframe', 
    	  width: '700', headingText: 'Passatempo LG e El Corte Inglés'
       });
    });
    </script>
            
    
    </head>
    <body>
      <!--#include virtual="/portada/cabecera.asp"-->
      <!--#include virtual="/portada/indice.html"-->
    	<!--#include virtual="portada1.html"-->
        <!--#include file="portada/pie_general.asp" -->
    </div>
    
    
    </body>
    </html>
    
    Last edited by Rangerbob5; December 10th, 2009 at 06:18 AM.

  8. #8
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    And nothing in Firefox Error Console?

  9. #9
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    When I click the link in post #1, I see the popup from the link in post #5. This is using IE6. Which browser are you using that seems to cause the issue?
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  10. #10
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Yes, it is a popup, but it should be an IFrame popup...Bit like a lightbox...

    See this thread Javascript Accordian Help

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Javascript Accordian Help
    By Rangerbob5 in forum JavaScript Programming
    Replies: 16
    Last Post: December 9th, 2009, 07:56 AM
  2. Javascript frameworks?
    By Rangerbob5 in forum JavaScript Programming
    Replies: 4
    Last Post: November 24th, 2009, 10:39 AM
  3. javascript problem
    By yangski in forum JavaScript Programming
    Replies: 4
    Last Post: July 28th, 2009, 08:08 AM
  4. JavaScript Tutorial
    By Shadow Wizard in forum JavaScript Programming
    Replies: 0
    Last Post: December 2nd, 2008, 07:33 AM

Bookmarks

Posting Permissions

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

SEO by vBSEO