Skip navigation
Currently Being Moderated

Is this possible?

Sep 20, 2012 2:53 AM

can i call object tag through JavaScript?

after i'll call from JS function from flash.

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

</head>

 

<body>

 

<object type="application/x-shockwave-flash" width="400" height="250" allowscriptaccess="always" data="http://filetype.flash-container.info/filename.swf?r=320189&l=www"><param name="movie" value="http://filetype.flash-container.info/filename.swf?r=320189&l=www" /><param name="bgcolor" value="#ffffff" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" src="http://filetype.flash-container.info/filename.swf?r=320189&l=www" width="400" height="250" bgcolor="#ffffff" allowscriptaccess="always"></embed></object>

     

</body>

</html>

 

 

like:

 

<script type="text/javascript">

function getchat()

{

<object type="application/x-shockwave-flash" width="400" height="250" allowscriptaccess="always" data="http://filetype.flash-container.info/filename.swf?r=320189&l=www"><param name="movie" value="http://filetype.flash-container.info/filename.swf?r=320189&l=www" /><param name="bgcolor" value="#ffffff" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" src="http://filetype.flash-container.info/filename.swf?r=320189&l=www" width="400" height="250" bgcolor="#ffffff" allowscriptaccess="always"></embed></object>

}

</script>

 
Replies
  • Currently Being Moderated
    Sep 20, 2012 4:23 AM   in reply to Venkom

    I believe you will need to use a javascript method ( document.write() ) to write the html code from within the function in order to get the html code to become a part of the html page... as in...

     

    document.write(' <object type="application/x-shockwave-flash" width="400" height=... etc... ');

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points