# Javascript Inside Itself (sort of)

**URL:** https://forum.kirupa.com/t/javascript-inside-itself-sort-of/325950
**Category:** programming
**Created:** [November 13, 2011, 10:43pm UTC](https://forum.kirupa.com/t/javascript-inside-itself-sort-of/325950 "2011-11-13T22:43:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![drummer392](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@drummer392](https://forum.kirupa.com/u/drummer392)
#### Post date: [November 13, 2011, 10:43pm UTC](https://forum.kirupa.com/t/javascript-inside-itself-sort-of/325950/1 "2011-11-13T22:43:09Z")

</div>

Hello there,

I am using a modal box library called Fallr with Jquery. What I am wishing to do, is inside of the Fallr call script, have another script that gets the ids of divs with the class “heriyah”. This all works fine, except I get a Firebug error. I think I know what the problem is, but I’m not sure how to sort it out.

Error:

```auto

uncaught exception: Can't create new message with content: "<iframe width=620" height="600" src="http://www.brandonrray.com/Heriyah/admin/manage_content.php?id=1&div=sermons_home"></iframe>", past message with content "<iframe width=620" height="600" src="http://www.brandonrray.com/Heriyah/admin/manage_content.php?id=1&div=up_events_home"></iframe>" is still active

```

Code:

```auto

    function newcontent() {    
    $('div.heriyah').each(function() {        
        $.fallr('show', {
            content : '<iframe width=620" height="600" src="<? echo $URL ?>/manage_content.php?id=<? echo $pageID; ?>&div='+ this.id +'"></iframe>',
          width : 620 + 5, // 100 = for width padding
         height : 600,
         closeKey : true,
            closeOverlay : true,
         buttons : {
            }
    }); 
   });
}

```
