Hi Guys,
I was wondering if any of you could help.
I have a div that I update with innerHTML (yes I know it is frowned upon). Upon the update there is an ajax call that get the relevant data from the db. Then, and this is where the problem is, i need to access the contents I have placed in the div and update it with the data I have got from the DB. I just cant seem to access the contents I have placed in the Div back out again once I have put them in.
I am an experienced javascript developer but I really can't work it out. I am going insane!!! Would it be better to create a new object within the DIV???
Any advice would be very welcome.
Rob
I was wondering if any of you could help.
I have a div that I update with innerHTML (yes I know it is frowned upon). Upon the update there is an ajax call that get the relevant data from the db. Then, and this is where the problem is, i need to access the contents I have placed in the div and update it with the data I have got from the DB. I just cant seem to access the contents I have placed in the Div back out again once I have put them in.
I am an experienced javascript developer but I really can't work it out. I am going insane!!! Would it be better to create a new object within the DIV???
Any advice would be very welcome.
Rob