explanation:
You are comming from my buy_now button from a specific table eks. #21 anchornode
this comes from the php form, then when it have done what the script should do
the
function gotoanchor()
is passed and then the
// in body
onload = gotoanchor();
is pased.
Then it generates the page with the tables(each sale items, there are generated from the database). This part is done in PHP as a while loop
Problem:
The body on load is passed BEFORE the php has generated the and uopdated the tables so it can not find the right anchor it just jums to the first ancor.
Problem solving (maby😕):
window.setTimeout(referenceToFunction,timeInMilliseconds);
so the function waits maby 5 miliseconds before executing......
or in php generates all the codes for the table as a variable "before" the
function gotoanchor()
then echo the tables out as finihed code in a varable instead!
thanks
flemming 😃