(msg='', css='', icon='', ref=None, width=70)
return action
returns a javascript that will trigger a popup message box in
            an iframe
returns a javascript that will trigger a popup message box in
            an iframe
returns a javascript that will trigger a popup message box in an iframe
def get_popup_script(msg='', css='', icon='', ref=None, width=70):
        ''' returns a javascript that will trigger a popup message box in
            an iframe '''
        if not ref:
            url = WebContainer.get_web().get_widget_url()
            url.set_option("widget", "MessageWdg")
            url.set_option("args", [msg, css, icon])
            
            ref = url.get_url()

        # open iframe
        iframe = WebContainer.get_iframe()
        iframe.set_width(width)
        action = iframe.get_on_script(ref)
        return action
def get_popup_script ( msg = '' , css = '' , icon = '' , ref = None , width = 70 ) : if not ref : url = WebContainer . get_web ( ) . get_widget_url ( ) url . set_option ( "widget" , "MessageWdg" ) url . set_option ( "args" , [ msg , css , icon ] ) ref = url . get_url ( ) # open iframe iframe = WebContainer . get_iframe ( ) iframe . set_width ( width ) action = iframe . get_on_script ( ref ) return action