I have been self-learning Rails for last 6 months and bulding a web
application using Rails 2.3. I am using your swfobject to display
Micromedia flesh. The swf does display on the web page only where is
located on the root folder. for example, the URL looks like below

http://localhost:3000/
Here is the problem, if the web page is located under the sub folder,
the URL like below, it does not display the flesh, and I check the
Rails console, it seems to have taken rotateItems.swf as a parameter
in Rails.

URL looks like below
http://localhost:3000/items/selectedCategoryItems


Console message
Processing ItemsController#javascripts to js [GET]
  Parameters: {"id"=>"swfobject"}

Notes, i add the following javascript to the application.html.erb
under the layouts folder
<!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"; xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="javascripts/swfobject.js"></
script>
<script type="text/javascript">
  swfobject.embedSWF("swf/rotateItems.swf", "flash_Content", "500",
"90", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
  <div id="page">
     <div id="flash_Content"></div>
      <div id="content">
        <%= yield %>
      </div>
</body>
</html>

Please reply and give me some hints how to resolve this issue.

Regards
-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.


Reply via email to