Hi, i'm having an issue rendering a JSSource widget. ( I'm on TG2 )

This is the source code

from toscawidgets.api import JSSource
from toscawidgets.widgets.ext import all_debug as ext_all
from toscawidgets.widgets.ext.base import all_css


class Panel(JSSource):


    javascript=[ext_all]

    css = [all_css]
    source_vars = ["title","container","width","html"]
    title = "My Panel"
    container = "container"
    width = "300"
    html = "Panel"
    src = """
    Ext.onReady(function(){
        var p = new Ext.Panel({
            title: "$title",
            collapsible:true,
            renderTo: "$container",
            width:"$width",
            html: '$html'
        });
    });

    """

It's works fine when html variable is just a String, but if it's something
like:

html = "<p> Salciccia </p>" then the output is:

html: '<p> Salciccia

This JS code works fine using it directly on firebug, and it accepts html
tags...

I really don't know whats happening..


Thanks a lot

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to