- 论坛徽章:
- 0
|
[XML 生成]用php生成xml问题
多谢指点
**********************************
我的想法是当选中下拉菜单的某一项时,调用
function selectCategory(catid) {
if(1){
xml.load("offer,ProductFeatures.xml?categoryId="+catid);
productfeature.innerHTML = xml.transformNode(xsl);
}else{
productfeature.innerHTML = defaultvalue;
}
现在需要跟据categoryId动态生成offer,ProductFeatures.xml页,请问怎样实现呀,我的想法是先用v.php生成offer,ProductFeatures.xml页,然后再调用offer,ProductFeatures.xml页,但实践证明行不通,offer,ProductFeatures.xml页不能生成,请问怎样用xml.load("offer,ProductFeatures.xml?categoryId="+catid);直接生成呀 |
|