jquery and elementId problem
wedge - April 21, 2007 - 13:21
| Project: | SWFObject API |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The new 1.5 version introduced some problems for me. It looks like an underscore was replaced by a dash by mistake and the new line also doesn't care if the div_id parameter is set.
I changed the following line:
$html .= ' $(document).ready(function () { so.write("flashcontent-'. $name . '");}); </script>';
to
$html .= ' $(document).ready(function () { so.write("flashcontent_'. $name . $params['div_id'] . '");}); </script>';

#1
version DRUPAL-5--1-2 should take care of this issue, though it doesn't support the div id here