Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 2 Hours, 25 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

Problem with Internet Explorer 8
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Problem with Internet Explorer 8
#6693
Problem with Internet Explorer 8 2 Years ago  
Hello!

Im using sourcer to put a javascript code at Joomla article. But when I look the website woth Internet explorer it appear and showing error. This is the code that I insert:

{source}
<script type="text/javascript">
function obtenerVideo() {
    var videos = new Array();
    videos[0] = 'http://www.youtube.com/v/pgUqWDEweuU&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[1] = 'http://www.youtube.com/v/lAEfizVIn9A&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[2] = 'http://www.youtube.com/v/SmWzO3suOOk&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[3] = 'http://www.youtube.com/v/jfrMY984cxM&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[4] = 'http://www.youtube.com/v/KKBRk1Vb_zY&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[5] = 'http://www.youtube.com/v/H_NCVNsVIA4&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[6] = 'http://www.youtube.com/v/m1wOq3GD9LY&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[7] = 'http://www.youtube.com/v/HINjxTLdSCI&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

    videos[8] = 'http://www.youtube.com/v/n_xrJTgkt5c&hl=en_US&fs=1&color1=0x234900&color2=0x4e9e00&border=1';

var video = videos[Math.floor(Math.random() * (videos.length))];
    document.write("<object width='340' height='285'><param name='movie' value='" + video + "'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='" + video + "' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='340' height='285'></embed></object>");
}
</script>
<script type="text/javascript">obtenerVideo();</script>
{/source}


Can anyobdoy help me?



Sorry for my bad english

www.nudos.org
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6695
Re: Problem with Internet Explorer 8 2 Years ago  
I can see you have javascript errors on your site (in firefox) which will probably be the reason your site breaks on IE.
Error: document.getElementById("imgCuerdas") is null
Source File: www.nudos.org/
Line: 390
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6696
Re: Problem with Internet Explorer 8 2 Years ago  
So the problem is with the image scripts:
<script type="text/javascript">
obtenerImagenes();
</script>
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6697
Re: Problem with Internet Explorer 8 2 Years ago  
Thanks for your support. Also I use a javascript code to reload images and I put the code in the article:

{source}<script type="text/javascript">
var maxCantImagenes = 4;
function obtenerRandom()
{
var ranNum = Math.floor(Math.random() * (maxCantImagenes));
return ranNum;
}

function obtenerImagenes() {
document.getElementById('imgCuerda').src = "img/cuerda" + obtenerRandom() + ".jpg";
document.getElementById('imgLibro').src = "img/libro" + obtenerRandom() + ".jpg";
document.getElementById('imgMochila').src = "img/mochila" + obtenerRandom() + ".jpg";
document.getElementById('imgPesca').src = "img/pesca" + obtenerRandom() + ".jpg";
document.getElementById('imgPrimerosAuxilios').src = "img/primerosauxilios" + obtenerRandom() + ".jpg";
document.getElementById('imgSubmarinismo').src = "img/submarinismo" + obtenerRandom() + ".jpg";
}
</script>

<style type="text/css">
.titulosCategoriasVenta
{
text-align:center;    
font-family:Verdana;
font-size:medium;
font-weight:bold;
text-decoration:none;
color:Maroon;
}
</style>



<script type="text/javascript">
obtenerImagenes();
</script>

{/source}


Then, I create a table with images with this code:

<table align="center" border="1" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td>
                <table style="text-align: center;" border="0">
                    <tbody>
                        <tr>
                            <td style="vertical-align: bottom;"><a href="Cuerdas"><img src="javascript:obtenerImagen();" alt="Cuerdas" title="Cuerdas" id="imgCuerdas" border="0" /><br /><span class="titulosCategoriasVenta">Cuerdas</span> </a></td>
                            <td style="vertical-align: bottom;"><a href="Libros"><img src="img/libro0.jpg" alt="Libros" title="Libros" id="imgLibro" border="0" /><br /><span class="titulosCategoriasVenta">Libros</span></a></td>
                            <td style="vertical-align: bottom;"><a href="Mochilas"><img src="img/mochila0.jpg" alt="Mochilas" title="Mochilas" id="imgMochila" border="0" /><br /><span class="titulosCategoriasVenta">Mochilas</span></a></td>
                        </tr>
                        <tr>
                            <td style="vertical-align: bottom;"><a href="Pesca"><img src="img/pesca0.jpg" alt="Pesca" title="Pesca" id="imgPesca" border="0" /><br /><span class="titulosCategoriasVenta">Pesca</span></a></td>
                            <td style="vertical-align: bottom;"><a href="Primeros-auxilios"><img src="img/primerosauxilios0.jpg" alt="Primeros Auxilios" title="Primeros Auxilios" id="imgPrimerosAuxilios" border="0" /><br /><span class="titulosCategoriasVenta">Primeros Auxilios</span></a></td>
                            <td style="vertical-align: bottom;"><a href="Submarinismo"><img src="img/submarinismo0.jpg" alt="Submarinismo" title="Submarinismo" id="imgSubmarinismo" border="0" /><br /><span class="titulosCategoriasVenta">Submarinismo</span></a></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>


I don't know how can repair it?

See you and best regards!
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6699
Re:Problem with Internet Explorer 8 2 Years ago  
Hello!

I delete a many code and now the problem persists. Only I have this code for diferent types of videos.

{source}<script type="text/javascript">
enlace = new Array()
enlace[0] = '<object width="340" height="285"><param name="movie" value="http://www.youtube.com/v/lAEfizVIn9A&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lAEfizVIn9A&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"></embed></object>'
enlace[1] = '<object width="340" height="285"><param name="movie" value="http://www.youtube.com/v/jfrMY984cxM&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jfrMY984cxM&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"></embed></object>'
enlace[2] = '<object width="340" height="285"><param name="movie" value="http://www.youtube.com/v/HINjxTLdSCI&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HINjxTLdSCI&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"></embed></object>'
enlace[3] = '<object width="340" height="285"><param name="movie" value="http://www.youtube.com/v/KKBRk1Vb_zY&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KKBRk1Vb_zY&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="340" height="285"></embed></object>'

aleatorio = Math.random() * (enlace.length)
aleatorio = Math.floor(aleatorio)
document.write('<div align="center">' + enlace[aleatorio] + '</div>')
</script>{/source}
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6701
Re:Problem with Internet Explorer 8 2 Years ago  
Try and put the activation scripts in the head with a piece of code that runs it when page is fully loaded.
Like:
window.addEvent('domready', function(){ obtenerImagenes(); });


See here on how to add scripts to the head of your page:
www.nonumber.nl/forum/14-sourcerer/5174-...ead-of-the-html-page
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6709
Re:Problem with Internet Explorer 8 2 Years ago  
Hello!

I think that exists a problem with sourcerer plugin. Because I removed all javascript code and rewrited with PHP and the problem persists.

If you access to www.nudos.org with IE8 the page not loads correctly.

If I desactivate sourcerer the page loads OK.

Can you help me?

Thanks a lot and best regards!
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6710
Re:Problem with Internet Explorer 8 2 Years ago  
Also, when Sourcer plugin is activated, right menu disapears at Internet Explorer 8.
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6711
Re:Problem with Internet Explorer 8 2 Years ago  
This is not because of Sourcerer but because of the scripts you try to place via Sourcerer.
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6712
Re:Problem with Internet Explorer 8 2 Years ago  
Hello!

I insert the code via sourcerer. This is the code that I insert:

{source}
<!-- You can place html anywhere within the source tags -->
<?php

//Lista de enlaces
$enlace[1]="<object width=\"340\" height=\"285\"><param name=\"movie\" value=\"http://www.youtube.com/v/lAEfizVIn9A&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/lAEfizVIn9A&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"340\" height=\"285\"></embed></object>";
$enlace[2]="<object width=\"340\" height=\"285\"><param name=\"movie\" value=\"http://www.youtube.com/v/jfrMY984cxM&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/jfrMY984cxM&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"340\" height=\"285\"></embed></object>";
$enlace[3]="<object width=\"340\" height=\"285\"><param name=\"movie\" value=\"http://www.youtube.com/v/HINjxTLdSCI&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/HINjxTLdSCI&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"340\" height=\"285\"></embed></object>";
$enlace[4]="<object width=\"340\" height=\"285\"><param name=\"movie\" value=\"http://www.youtube.com/v/KKBRk1Vb_zY&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/KKBRk1Vb_zY&hl=es_ES&fs=1&color1=0x234900&color2=0x4e9e00&border=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"340\" height=\"285\"></embed></object>";

//Calculo el numero total de enlaces
$total_enlaces=1;
while ( !empty($enlace[$total_enlaces+1]) ) {
        $total_enlaces++;
}

//Genero numero aleatorio sin superar a enlaces
$aleatorio=rand(1,$total_enlaces);

//Escribo el vinculo
echo "$enlace[$aleatorio]";
    
?>
{/source}
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6713
Re:Problem with Internet Explorer 8 2 Years ago  
For some reason you get javascript (mootools) conflicts:

Error: el.set is not a function
Source File: www.nudos.org/media/system/js/mootools.js
Line: 23
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6714
Re:Problem with Internet Explorer 8 2 Years ago  
I don't understand it, because now I don't have using javascript code. I try to change joomla template, and the problem, persists.
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6715
Re:Problem with Internet Explorer 8 2 Years ago  
How Can repair Mootools conflict?

Thankyou.
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6716
Re:Problem with Internet Explorer 8 2 Years ago  
When I desactivate sourcere plugin, the conflict with mootools is solvented
turminator
Posts: 9
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6717
Re:Problem with Internet Explorer 8 2 Years ago  
Your site uses javascript (some extensions). If there is some conflict, this will cause other javascript based things to fail.

Use Firefox with the Webdevelopers tools (plugin) to see what errors you get.

This all has nothing to do with Sourcerer, but with certain scripts/extensions on your site.
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6718
Re:Problem with Internet Explorer 8 2 Years ago  
I still see the error when Sourcerer is disabled.
Peter van Westen
Admin
Posts: 9091
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
Open Source Training | Online Joomla! Training and Support
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max