1.4 - 19th September 2007

New functions in 1.4

  • Fixed JPEG functions.
  • Fixed WebView find code.
  • Added PHP functions for Windows.
  • Added MBS("PHP.Load";PathText) which loads the dll. On Mac OS X it returns always OK. On Windows you need to pass a path to the php5ts.dll file.
  • Added callback from PHP to FileMaker for evaluate: MBS("PHP.Run";"echo FMExecuteSQL("select * from FileMaker_Tables");"). Will give a list of tables as text result. A second parameter (a number) specifies the column delimiter (default is 9 for tab) and a third parameter (a number) specifies the row delimiter (default is 13 for return).
  • Added PHP functions for Mac OS X.
  • Added MBS("PHP.ExistsVariable";VariableName) to return a boolean.
  • Added MBS("PHP.GetVariable";VariableName) to return a global variable as text.
  • Added MBS("PHP.SetVariable";VariableName;TextValue) to set a global variable.
  • Added MBS("PHP.Run";ScriptCode) to run a script. Will return OK on success or an error on bad syntax.
  • Added MBS("PHP.Init") to initialize PHP.
  • Added MBS("PHP.ShutDown") to shutdown PHP.
  • Added MBS("PHP.GetResultString") to return the output of the last PHP script as text.
  • Added callback from PHP to FileMaker: FMScript(Database, ScriptName, Parameter). Use like this: MBS("PHP.Run";"echo FMScript(""MBS_Tester"",""Hello"",""Just a test"");"). The third parameter is optional.
  • Added callback from PHP to FileMaker for evaluate: MBS("PHP.Run";"echo FMEvaluate(""1+2"");"). Will give 3 as result.
  • Note: All text to PHP is converted to ISO-Latin1 encoding. All text coming back is interpreted as being ISO-Latin1.
  • The Webview find code can now find a webview even if you have two records visible which each a webview. It will find the one for the current record. On windows you need to pass the window handle of the child window.
  • On WebView functions which accept a WebViewID, you can pass the number for the ID or the name of the WebView on your layout. The plugin will check in the frontmost window if there is a webview with this name and take it. This is a shortcut which may easy break. For example it will not work if you have the dialog visible which asks you to register the plugins.
  • Added MBS("WebVIew.ClickInput";WebViewID;FormName or FormIndex;InputName or InputIndex)
  • Added MBS("WebView.IsLoading";WebViewID) to return true if the webpage is still being loaded.
  • Added MBS("WebView.FormSubmit";WebViewID;FormName or FormIndex) to submit a form.
  • Added MBS("WebView.FormReset";WebViewID;FormName or FormIndex) to reset a form.
  • Added MBS("WebView.GetFormButtonValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of an button element.
  • Added MBS("WebView.SetFormButtonValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of an button element.
  • Added MBS("WebView.GetFormInputChecked";WebViewID;FormName or FormIndex;InputName or InputIndex) to get checked value of an input element.
  • Added MBS("WebView.SetFormInputChecked";WebViewID;FormName or FormIndex;InputName or InputIndex;Boolean) to set a checked value of an input element.
  • Added MBS("WebView.GetFormTextAreaValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of a textarea element.
  • Added MBS("WebView.SetFormTextAreaValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of a textarea element.
  • Added MBS("WebView.GetFormInputValue";WebViewID;FormName or FormIndex;InputName or InputIndex) to get value of an input element.
  • Added MBS("WebView.SetFormInputValue";WebViewID;FormName or FormIndex;InputName or InputIndex;Text) to set a value of an input element.
  • SetFormValue and GetFormValue are now mapped to SetFormInputValue and GetFormInputValue.
  • Renamed RunJavaScriptToTitle to RunJavaScriptReturnTitle.
  • Fixed an issue with a WebViewer. The wrong webviewer was found which is now fixed.
  • Added MBS("WebView.GetTitle";WebViewID) to query the current document title.
  • Added MBS("WebView.SetTitle";WebViewID;Text) to set the document title. Same as javascript "document.title=Text;".
  • Added MBS("WebView.RunJavaScriptToTitle";WebViewID;JavaScriptSource) to run javascript. The Javascript stores result on document.title and the script will return this title string.
  • SetFormValue and GetFormValue now work for Input, TextArea and Button elements.
  • Container.GetDataURL now only needs one parameter.
  • If you use the WebView Callbacks with an empty filename, you will call Evaluate on the text in the scriptname parameter.
  • Improved Webview.Reload to no longer leak memory.
  • Improved Webview.SetFormValue and GetFormValue to no longer leak memory and return better error messages. On Windows the form name is no longer used to identify the field.
  • Added MBS("Container.GetDataURL"; container) to return a Tiff, PNG, GIF or JPEG image as a data url.
  • Added MBS("Container.GetBase64"; container; index or type) to return the content of this data as a base64 encoded string.
  • Added MBS("Container.GetCount"; container) to return the number of types inside.
  • Added MBS("Container.GetType"; container; index or type) to return the type at the given index (zero based).
  • Added MBS("Container.GetSize"; container; index or type) to return the size in bytes of the item at the given index (zero based).
  • Added MBS("Functions") to return a list of all plugin functions.
  • Added MBS("WebView.Release"; WebViewRef) to free a webview reference.
  • Added MBS("WebView.FindWindowByIndex"; index) - find a window by index - Parameters: Index
  • Added WebView.FindWindowByTitle - find a window by title - Parameters: textvalue

New in version 1.3   New in version 1.5

More details in the Release notes.




Links
MBS Xojo Chart Plugins