Forum Discussion
RyanStanford1
7 years agoQrew Captain
Thanks for the information Dan!
I do have a quick followup... in the JS codepage, the AJAX setup... I can't tell where it's actually used, or is that more for "cross application" loading?
best I can read, which may be wrong, couldn't I just get away with the if statement to replace the div?
I do have a quick followup... in the JS codepage, the AJAX setup... I can't tell where it's actually used, or is that more for "cross application" loading?
best I can read, which may be wrong, couldn't I just get away with the if statement to replace the div?
_anomDiebolt_
7 years agoQrew Elite
None of these statements are operative:
Quite frankly the outer function and the if statement could probably be removed and this single line of code might do the job:
var dbid = "bpbu53qzx";I have a large collection of scripts and templates that I use to quickly generate demos and this is just boilerplate code that is often used but not in this case.
var dbidRecords = "bpbu535av";
var apptoken = "dzw437mbz5nhdnbv78qbmc2knv6s";
$.ajaxSetup({data: {apptoken}});
var querystring=document.location.search;
Quite frankly the outer function and the if statement could probably be removed and this single line of code might do the job:
$("#mainBodyDiv").load("bpbu53qzx?a=dbpage&pagename=CodePage.html");But these types of "optimizations" will likely backfire on you as you have to think out all the possibilities of this particular use case and perhaps perform other configurations to makes sure nothing goes awry. Stick to code patterns that can you reuse without a lot of extra mental effort.