frameReady Issues

frameReady Issues

Hey guys, first post, woo! Long time user of jquery and usually have no issues, but frameReady has be stumped!

Code is below, basically, i need to be able to add classes to elements in the iframe, and attach onclick events to elements within the iframe too. The code isn't there to do that at the minute, I'm just trying to do something simple that won't even work!!

   {literal}
   <script>
      $(document).ready(function() {
            $.frameReady(function() {
            $("Hello!").prependTo("body");},
            "top.iframe"
            );
         });
   
  </script>
  {/literal}
</head>
<body>

<div id="top_bar">
   <p>Visual Editor Mode</p>
</div>

<iframe src="..{$sPagePath}" id="visual_frame" name="iframe" />


I'm using smarty, hence the literal tags.

No javascript errors, but no hello in the frame either. Any ideas?
    • Topic Participants

    • tom