Forum Discussion
_anomDiebolt_
11 years agoQrew Elite
BTW, I just realized that I can probably get rid of inner.html altogether and set the role home page property directly to outer.html instead of "use default". I will keep tweaking this demo in the coming days and weeks to make it simpler to use including adding a real router / dispatch table optimized for QuickBase URLs. Conceptually you would add a bunch or routes something like this:
And when the frame URL changes you would call the appropriate handler functions (with the subdomain, dbid and query string passed as an argument) for those URLs that match the Route's pattern:

QBRouter.addRoute("db/bj3pggjd6?a=td", handler1);
QBRouter.addRoute("db/bj3pggjd6?a=q&qid=1", handler2);
And when the frame URL changes you would call the appropriate handler functions (with the subdomain, dbid and query string passed as an argument) for those URLs that match the Route's pattern:
This will make is dead simple to create new routes to observe and modify any QuickBase page!
QBRouter.dispatch(url);
