parameters: (msg='', css='', icon='', ref=None, width=70)
return_statement: return action
docstring: returns a javascript that will trigger a popup message box in
              an iframe
docstring_summary: returns a javascript that will trigger a popup message box in
              an iframe
docstring_tokens: returns a javascript that will trigger a popup message box in an iframe
function: 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
function_tokens: 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