I don't know if you are still having this problem, but the reason it isn't
working is simply bad JavaScript syntax. You should use your working code,
as there is nothing wrong with it.
Teddy


On Tue, Jul 14, 2009 at 4:26 PM, Nick <mrnickst...@gmail.com> wrote:

>
> Anyone:  I cant seem to get this to work.  If I pass "modal:true" in
> as a variable it doesn't work.  Anyone have any idea what is causing
> it to break?
>
> =======  Stark Working Code ==========
> var  modal = modal;
> var content = true;
>
>  var $dialog = $("<iframe frameborder='0' scrolling='no'
> allowtransparency='true' src='modals/" + modalID + ".html'></iframe>")
>
>                .dialog({
>                        modal:content
>
>                        });
>
>
>                $dialog.dialog('open');
> =======  End Working Code ==========
>
> =======  Stark Broken Code ==========
> var  modal = modal;
> var content = modal:true;
>
>  var $dialog = $("<iframe frameborder='0' scrolling='no'
> allowtransparency='true' src='modals/" + modalID + ".html'></iframe>")
>
>                .dialog({
>                        content
>
>                        });
>
>
>                $dialog.dialog('open');
>
> =======  End Broken Code ==========
>

Reply via email to