Index An optional string id that, by convention, refers to a target Model record to perform operations on. Returns the error messages associated with a particular property or field of a model instance. Returns the error messages that were associated with the entire model instance. An alias for the on_base() method. An optional callback function that’s called before client-side synchronization. Parses a string into a Date object, especially useful for handling the ISO-8601 date/time format generated by toSQLDateString(). Returns an html input/ password tag string that represents a Model field. Tells junction the plural name of the Model. Sends a POST request through the Junction system. Sends a POST request through the Junction system. Sends a POST request through the Junction system. Returns an html input/ radio tag string that represents a Model field. Sends a HTTP redirect response to the client. Sends a HTTP redirect response to the client, targeting an action on the current controller. Sends a HTTP redirect response to the client. Removes an index from the database. Renames a table in the database. Render a template. Render a template belonging to the current Controller. Render a template given a full template path. Sets a string to be the result returned to the client. The req (or request) object is a map object passed to the Controller action method that holds the input parameters for the request. The req object is available in the res object for convenient access to req properties from templates. The res or response/result object passed to the Controller action method provides methods to control output rendering. You have several different options for deploying a Junction-based web application, depending on where you want your web application code and database to run... How does the Junction runtime actually work in the browser? The Junction server-side web application server (SSWAS) is implemented on top of the open-source Helma Object Publisher (HOP) server. A safer alternative to normal eval() that protects the caller’s scope. A wrapper around parseFloat() that returns a defaultValue if the input string cannot be parsed. A wrapper around parseInt() that returns a defaultValue if the input string cannot be parsed. Saves a new or updated Model instance to the RDBMS. Provides some simple Controller action methods for a given Model for increased developer productivity. Returns an html select tag string that represents a Model field. A map object of session variables. The req.session object is available in the res object for convenient access to session properties from templates. Sets the convention-over-configuration field attributes of the Model instance. Sets the locale string for the current response. Given a hierarchical map of maps (a tree of map objects), sets a leaf value in the tree given a path that looks like ‘key1[key2][key3]’. Returns a form tag whose action URL is to the given controller/action. Just like startFormTag(), but adds an onsubmit handler that invokes TrimPath.junctionClient.postForm(). Returns a stylesheet style or link tag, depending on the runtime environment. Returns an html input/ submit tag. Returns an html input/ submit tag, with an onclick handler that calls TrimPath.junctionClient.postForm(). Returns whether a database table is a possible candidate for synchronization between client-side and server-side databases. The Junction synchronization system provides several basic services to propagate and handle... Requests an asynchronous synchronization of the local database with the server database. Translate a static string based on the current response locale. Tells junction the name of the table in the database that maps to the Model. Translate an array of choice strings that is usually passed to the res.select() function. Returns an html textarea tag string that represents a Model field. Returns an html input/ text tag string that represents a Model field. Formats a Date as either ‘YYYY/MM/DD’ or ‘YYYY/MM/DD hh:mm:ss’. Formats a Date as a database-friendly ISO-8601 ‘YYYY-MM-DD hh:mm:ssZ’ string, such as ‘2004-10-24 01:02:35Z’. Constructs a HTTP url query string from a map object. Formats a Date as either ‘YYYY/MM/DD’ or ‘YYYY/MM/DD hh:mm:ss’. The Junction framework provides a simple facility for translating your application’s response pages and output. Removes leading and trailing whitespace from a string. trimpath/junction.js Provides a client-side, web-browser runtime environment for Junction. Standard View helper functions to help generate HTML output. Utility functions that can run either client-side or server-side. An alias for the updateAttributes() method. Updates several attributes of the modelInstance and saves. Capitalizes the first character in a string. Returns a URL string. Returns a URL string from the given args hash/map. Similar to TrimPath.junctionUtil.toUTCDateString(), formats a Date as either ‘YYYY/MM/DD’ or ‘YYYY/MM/DD hh:mm:ss’. An alias for the isValid() method. Adds a field/column validation rule based on a regular expression. Adds a field/column validation rule based an array of allowed values. Adds a field/column validation rule checking for non-null. The Controller in the web Model-View-Controller (web-MVC) design is responsible for answering to web requests. The Model in the web Model-View-Controller (web-MVC) design provides object-relational access to data stored in a relational database management system (RDBMS). The View in the web Model-Controller-View (web-MVC) design renders a response HTML page, based on input it receives from a Controller. |