Forum
Is there a new "image onload technique" in town?
Forum
Demo
Content
[Content] is a script (might be the body of a closure for IOL)
Firebug console input:

var QBU_apptoken = "enter your apptoken";
var QBU_UserDefinedPage = "module.js";
include("http://pastie.org/pastes/8635437/download")

Pastie code:
$.ajaxSetup({data: {apptoken: QBU_apptoken}});

var promise1 = $.post(gReqAppDBID,{
  act: "API_SetDBvar",
  varname: "iol",
  value: "<img qbu='module' src='/i/clear2x2.gif' onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript(gReqAppDBID+'?a=dbpage&pagename="
});

var promise2 = $.post(gReqAppDBID,{
  act: "API_SetDBvar",
  varname: "/iol",
  value: "&rand='+new Date().getTime())};\">"
});

var QBU_Page = [];
QBU_Page.push('(function(){');
QBU_Page.push('  var querystring=document.location.search;');
QBU_Page.push('');
QBU_Page.push('if (/dlta=mog/i.test(querystring)) {');
QBU_Page.push('    //GRID EDIT PAGE ========================================');
QBU_Page.push('    alert("You are on the Grid Edit Page");');
QBU_Page.push('');
QBU_Page.push('  } else if(/a=er/i.test(querystring)) {');
QBU_Page.push('    //EDIT RECORD PAGE ========================================');
QBU_Page.push('    alert("You are on the Edit Record Page");');
QBU_Page.push('');
QBU_Page.push('} else if (/a=API_GenAddRecordForm/i.test(querystring)) {');
QBU_Page.push('    //API_GenAddRecordForm PAGE ========================================');
QBU_Page.push('    alert("You are on the GenAddRecordForm Page!");');
QBU_Page.push('');
QBU_Page.push('  } else if (/GenNewRecord/i.test(querystring)) {');
QBU_Page.push('    //ADD RECORD PAGE ========================================');
QBU_Page.push('    alert("You are on the Add Record Page");');
QBU_Page.push('');
QBU_Page.push('  } else if (/nwr/i.test(querystring)) {');
QBU_Page.push('    //ADD RECORD PAGE ========================================');
QBU_Page.push('    alert("You are on the Add Record Page");');
QBU_Page.push('');
QBU_Page.push('  } else if(/a=dr/i.test(querystring)) {');
QBU_Page.push('    //DISPLAY RECORD PAGE');
QBU_Page.push('    alert("You are on the Display Record Page");');
QBU_Page.push('    $("img[qbu=module]").closest("td").css("background-color","#FFFFFF");');
QBU_Page.push('');
QBU_Page.push('} else if(/a=q/i.test(querystring)) {');
QBU_Page.push('    //REPORT PAGE ========================================');
QBU_Page.push('    alert("You are on the Report Listing Page");');
QBU_Page.push('');
QBU_Page.push('  } else if(/a=td/i.test(querystring)) {');
QBU_Page.push('    //TABLE DASHBOARD PAGE ========================================');
QBU_Page.push('    alert("You are on the Table Dashboard Page");');
QBU_Page.push('');
QBU_Page.push('  } else {');
QBU_Page.push('    //OTHER PAGE ========================================');
QBU_Page.push('    alert("You are on the Some Other Page");');
QBU_Page.push('  }');
QBU_Page.push('');
QBU_Page.push('})();');
QBU_Page = QBU_Page.join("\n");

var promise3 = $.post(gReqAppDBID,{
  act: "API_AddReplaceDBPage",
  pagetype: "1",
  pagename: QBU_UserDefinedPage,
  pagebody: QBU_Page
});

$.when(promise1, promise2, promise3).then(function(){
  alert("The image onload technique has been set up within your application.");
});
Copy [Content] to Clipboard
PastieURL
Usage Notes
The code in this page is copyright by Dan Diebolt and may not be used without including my phone number (773-312-8131) and email address (dandiebolt@yahoo.com) in the footer of where you may want to use it.
Other & Flags
Yes  
Diebolt, Dan
Created on Jan. 15, 2014 at  5:11 AM (CST). Last updated by Diebolt, Dan on Nov.  5, 2018 at 10:14 AM (CST). Owned by Diebolt, Dan.
Dan Diebolt
Dan Diebolt
Show fields from Show fields from Show fields from a related table
Report Name *
Description
Reports and Charts Panel
Each table has a panel listing its reports and charts, organized in groups.
Please wait while your new report is saved...
Field label
Column heading override
Justification
What does auto mean?
Fields in:

Fields to Extract:

Name for the new table:
Items in the new table are called:

When you bring additional fields into a conversion, Quick Base often finds inconsistencies. For example, say you're converting your Companies column into its own table. One company, Acme Corporation, has offices in New York, Dallas and Portland. So, when you add the City column to the conversion, Quick Base finds three different locations for Acme. A single value in the column you're converting can only match one value in any additional field. Quick Base needs you to clean up the extra cities before it can create your new table. To do so, you have one of two choices:

  • If you want to create three separate Acme records (Acme-New York, Acme-Dallas and Acme-Portland) click the Conform link at the top of the column.
  • If the dissimilar entries are mistakes (say Acme only has one office in New York and the other locations are data-entry errors) go back into your table and correct the inconsistencies—in this case, changing all locations to New York. Then try the conversion again.

Read more about converting a column into a table.

We're glad you're interested in doing more with Quick Base!

Now we need to make you official before you share apps or manage your account.

Verifying your email lets you share Quick Base with others in your company.

Your work email
Your company