#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Buenos Aires, Argentina
    Posts
    154
    Rep Power
    14

    Question JavaScript Issue on AOL


    Hi,

    I've got the following popup code that works just fine on IE and triggers a popup with a Flash animation:

    winpop.document.write(
    '<head><TITLE>ABC</TITLE><base href="http://www.abc.com/"></head>'+
    '<body bgcolor="#000000" topmargin="0" leftmargin="0">'+
    '<table border="0" cellspacing="0" cellpadding="0">'+
    '<tr>'+
    '<td width="150" align="center" valign="middle" bgcolor="'+cfon+'" align="center" style="font-face:Arial, Helvetica, sans-serif; font-size: 13; color:'+ctext+'">'+
    '<img src="images/dona.jpg" width="89" height="110">'+
    '<br><B>Dana Kent</B><BR>Prestige Properties<BR>3534 Avenida del Sol<BR>Santa Miralda, California<BR>707.555.2465</td>'+
    '<td width="2"></td>'+
    '<td>'+
    '<EMBED SRC='+swf+' QUALITY=high PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" TYPE="application/x-shockwave-flash" WIDTH="'+w+'" HEIGHT="'+h+'">'+
    '</EMBED>'+
    '</td>'+
    '</tr>'+
    '</table>'+
    '</body>');

    However, on AOL this causes the browser to pop up an error. Any ideas? Sounds like there's some sort of incompatibility in the code here.

    Thanks,
    Ralph
  2. #2
  3. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1099
    "winpop" is not part of the object model last time I saw one. Try either window.document.write() or just document.write().
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Buenos Aires, Argentina
    Posts
    154
    Rep Power
    14
    Thanks for the reply!
    the 'winpop' object is actually created right before that code as a blank pop up. So the javascript above is supposed to write that code into that window (winpop).

    Regards,
    Ralph.
  6. #4
  7. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1099
    However, on AOL this causes the browser to pop up an error. Any ideas?
    What's the error?
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.
  8. #5
  9. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    ralphch...meet robpet:

    AOL popup problems

    AOL window behavior

IMN logo majestic logo threadwatch logo seochat tools logo