Javascript not work in IE

Discussion in 'JavaScript' started by j_admin, Mar 20, 2010.

  1. #1
    I write javascript for image slide show.

    		
    var mygallery=new fadeSlideShow({
    wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
    dimensions: [380, 469], //width/height of gallery in pixels. Should reflect dimensions of largest image
    imagearray: [
    <?php $q2 = mysql_query("select * from home_flash");
    $i = 0;
    while($res = mysql_fetch_array($q2))
    {
    	$image[$i] 	= $res[1];
    	$text[$i] 	= $res[2];
    	$str = "['images/fla/".$image[$i]."','','','".$text[$i]."'],";
    	echo $str;
    	$i++; 
    } ?>
    
    //<--no trailing comma after very last image element!
    ],
    displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},
    persist: false, //remember last viewed slide and recall within same session?
    fadeduration: 500, //transition duration (milliseconds)
    descreveal: "always",
    togglerid: ""
    })
    
    Code (markup):
    In IE I got an error

    If you have solution for this, then please help with it!

    Thanks for your precious time.

    Cheers!!
     
    j_admin, Mar 20, 2010 IP
  2. asadiyah

    asadiyah Guest

    Messages:
    237
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try this.. go to security tab in internet options then choose Internet and choose custom.

    at the bottom you will see miscellaneous section. and make enable "Allow script-initiated windows without size or position constraints". default is disable.

    its means that any link calls a JavaScript function to opens a new window will not work if the size or location of the new window is not specified in the link.

    Change it to "Enable" and those links will work again. do this in all zones.

    at the bottom line of the JavaScript Window.Open() its will not work if you don't specify at least the new window size or position in the function call.

    its necessary to do because IE8 on Vista and Windows 7 have new security restriction.

    good luck.
     
    asadiyah, Mar 20, 2010 IP
  3. j_admin

    j_admin Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi asadiyah,

    I done what you told me but it now make any difference, do you draw me where I get wrong?

    In firefox, chrome, safari it run like a butter but I dont know why this error throw in IE only?

    if you have suggestion then please share with me.
     
    j_admin, Mar 20, 2010 IP