Hi,
i having a trouble on working with the following code.
what is happening is the “//psearch in the nevbar right” disappears if I change the “status” of “//Banner in the Content Header”.
The following two status i use to enable and disable the banner only.
status 1 = Enabled
status 0 = Disabled
your assistance to solve the issue will be highly appreciated.
Thank you
Actual Code
//psearch in the nevbar right
$(document).ready(function() {
$(“#ew-navbar-right”).prepend(‘
’);
//Banner in the Content Header
<?php $rowh = ExecuteRow("SELECT * FROM ad_header_large WHERE Page_Name=15 AND Status=1 ORDER BY rand()"); ?>
Error 2
TypeError: document.getElementById(…) is null
all_itemslist.php:1718:124
I have removed the URL(Domain Name from here)/foods/all_itemslist.php:1718
-------------Error 2 gets cleared when i remove this part
loadjs.ready(“load”, function() {
document.getElementById(“ew-modal-dialog”).setAttribute(“data-backdrop”, “static”);
document.getElementById(“ew-add-opt-dialog”).setAttribute(“data-backdrop”, “static”);
});