How to call a Javascript function from iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malathib
    New Member
    • Mar 2009
    • 23

    #16
    Alert only is not working.Here i am not finding any error.

    Code:
    <form method="post" name="frm">
    <script src="richtext.js" type="text/javascript" language="javascript"></script>
    <script src="config.js" type="text/javascript" language="javascript"></script>
    <script>
    	<!--
    		initRTE('This <span onmouseover="top.frames[0].test()">These </span>is an <del>example</del> <ins>of </ins>a', 'example.css');
    	//-->
    	</script>
    </form>
    here initRte will initialise the editor and load the content that i am passing as first parameter.
    Last edited by Dormilich; Apr 28 '09, 05:34 AM. Reason: Please use [code] tags

    Comment

    • Ciary
      Recognized Expert New Member
      • Apr 2009
      • 247

      #17
      then there must be a logical mistake in your initRte. normally, alert always works. if it doesnt, it means you never get to that point. so, i dont know where you placed your alert(s) but try putting it in other locations till you find a place where it does appear.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #18
        Have you got a link to your application?

        Comment

        Working...