scraf
12-05-2006, 03:51 PM
[SOLVED]
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
This script worked like a charm ( thank you to the author('s) ), however I managed to break it. :(
I have an input form for "new" users, I have a dropdown list that throws existing user details into a <div> using the script.
However, when I take that dropdown goes back to the default, that is the input form, out favourite browser IE throws a JavaScript error...
Error: Object doesn't support this property or method
Thanks to this chap (http://integralpath.blogs.com/thinkingoutloud/2006/03/innerhtml_and_n.html#comments), I have narrowed it down to "The short answer is that form is a non-block element and you cannot insert a block element inside a non-block element".
However I have no idea how to fix this in my case.
The line that throws the error is ( line 42 from the "function loadpage").
document.getElementById(containerid).innerHTML=page_request.responseText
TIA
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
This script worked like a charm ( thank you to the author('s) ), however I managed to break it. :(
I have an input form for "new" users, I have a dropdown list that throws existing user details into a <div> using the script.
However, when I take that dropdown goes back to the default, that is the input form, out favourite browser IE throws a JavaScript error...
Error: Object doesn't support this property or method
Thanks to this chap (http://integralpath.blogs.com/thinkingoutloud/2006/03/innerhtml_and_n.html#comments), I have narrowed it down to "The short answer is that form is a non-block element and you cannot insert a block element inside a non-block element".
However I have no idea how to fix this in my case.
The line that throws the error is ( line 42 from the "function loadpage").
document.getElementById(containerid).innerHTML=page_request.responseText
TIA