Thanks again, Tetrahedral.
I replaced the onload with the following...
Code:
$(document).ready(order_process);
Eek...
Still pulling my hair out...
$(document).ready(order_process);
var url = '../../../api/order_process.php?api_login=' + "<?=$api_login?>" + '&api_pass=' + "<?=$api_pass?>" + "&order_id=<?= $_REQUEST['order_id']?>" + '&order_action_id=' + queue_id[i] + '&timeid=' + Math.random();
xmlhttp.open("GET",url,false);
echo '<h1 class="landing-title">',$order->info[first],', thank you for your order!</h1>'; echo ' <DIV STYLE="overflow-y: auto; height:245px; border:0 #000000 solid; text-align: left; padding: 2px">', $thank[$order->order_queue_id][0], '<div height="100%" id="barber_pole"
// The DIV contents that display during each loop iteration
document.getElementById("barber_pole").innerHTML='test' + i;
<script type="text/javascript">
function order_process() {
var err;
var queue_id = "<?= implode(':',$plans[$_REQUEST['order_queue_id']]); ?>".split(':'); // Queue ID
var queue_ax = "<?= implode(':',array_keys($plans[$_REQUEST['order_queue_id']]));
<script type="text/javascript">
function order_process() {
var err;
var queue_id = "<?= implode(':',$plans[$_REQUEST['order_queue_id']]); ?>".split(':'); // Queue ID
var queue_ax = "<?= implode(':',array_keys($plans[$_REQUEST['order_queue_id']])); ?>".split(':'); // Queue Action
i = 0;
for (step in queue_id) {
// The DIV contents
Leave a comment: