View Single Post
  #1 (permalink)  
Old Oct 1st, 2007, 06:14
Hermanusbanken Hermanusbanken is offline
New Member
Join Date: Oct 2007
Location: Woerden
Age: 16
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy [SOLVED] Javascript Ajax problem

I have got the following problem:
I send a Ajax request to a php file. If that returns it has to be put inside a div. Problem is, it's not the same div all the time. Now I giva a variable with the right div's id. The variable does get in the function. But nothing changes. The rule: document.getElementById(idVanTeBewerkenObject).inn erHTML = xmlHttp.responseText;
isn't executed. You can find the whole code here: http://www.excelsior-woerden.nl/speeldozen/SpryAssets/HermanTabbedPanels.js

If I replace idVanTeBewerkenObject by 'mainContent' (the id of a div) it works.

Help please,
Herman