deonteach
02-26-2006, 11:20 AM
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
This is in reference to the dynamic ajax content script.
Hi,
I posted before and have been playing around with the script and all was going well. Now I have one page that is loading into the div with one javascript function. I tried to pull the function out of the page and into an external javascript file and then try to load that file with the referring page but to no avail. I must be doing something wrong.
Here is the function that is in the page. I know there are some compatability issues with functions and this script from other forum posts I have read. I wouldn't know though :( . Any help is appreciated.
function select_all_radio_in(elTagName, elClass, elId) {
var inputs = document.getElementsByTagName('INPUT');
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
for(var i = 0; i < inputs.length; ++i) {
if(inputs[i].type == 'radio') {
inputs[i].checked = 'checked';
}
}
}
Thanks,
Deon
This is in reference to the dynamic ajax content script.
Hi,
I posted before and have been playing around with the script and all was going well. Now I have one page that is loading into the div with one javascript function. I tried to pull the function out of the page and into an external javascript file and then try to load that file with the referring page but to no avail. I must be doing something wrong.
Here is the function that is in the page. I know there are some compatability issues with functions and this script from other forum posts I have read. I wouldn't know though :( . Any help is appreciated.
function select_all_radio_in(elTagName, elClass, elId) {
var inputs = document.getElementsByTagName('INPUT');
inputs = filterByParent(inputs, function(el) {return findParentNode(el, elTagName, elClass, elId);});
for(var i = 0; i < inputs.length; ++i) {
if(inputs[i].type == 'radio') {
inputs[i].checked = 'checked';
}
}
}
Thanks,
Deon