| |   |
133 | 133 | { |
134 | 134 | path = a11ypi.makePath(currentNode.parentNode); |
135 | 135 | } |
//alert("getxPath:\n"+path); |
alert("getxPath:\n"+path); |
137 | 137 | return path; |
138 | 138 | }, |
139 | 139 | |
… | … | |
199 | 199 | else |
200 | 200 | { |
201 | 201 | |
d ={} |
d ={}; |
203 | 203 | var response=xhr.responseText.substring(3).split('###'); |
204 | 204 | for (var j= 0; j< response.length ; j++){ |
205 | 205 | chunk = response[j].substring(1).split('&'); |
… | … | |
242 | 242 | |
243 | 243 | { |
244 | 244 | |
if (result.nameTag == "img" || result.nameTag =='IMG'){ |
|
result.setAttribute('src',newContent); |
if (result.tagName == "img" || result.tagName =='IMG'){ |
result.setAttribute('src',newContent.split(',')[1]); //A hack to display images properly, the size has been saved in the database. |
width = newContent.split(',')[0].split('x')[0]; |
height = newContent.split(',')[0].split('x')[1]; |
result.setAttribute('width',width); |
result.setAttribute('height', height); |
248 | 251 | |
249 | 252 | } |
250 | 253 | |