columnSpecs : [{control:imgctl,width:90},,,\r
{type:'datetime'},{width:200}]\r
};\r
- photoBuffer=new Rico.Buffer.AjaxXML('flickrPhotos.php');\r
+ photoBuffer=new Rico.Buffer.AjaxLoadOnce('flickrPhotos.php');\r
photoGrid=new Rico.LiveGrid ('photogrid', photoBuffer, opts);\r
photoGrid.menu=new Rico.GridMenu();\r
\r
Rico.eventBind(imgctl._img[i],'mouseover',Rico.eventHandle(window,'img_mouseover'));\r
Rico.eventBind(imgctl._img[i],'mouseout',Rico.eventHandle(window,'img_mouseout'));\r
}\r
- img_popup=document.getElementById('img_popup');\r
+ img_popup=Rico.$('img_popup');\r
});\r
\r
function img_mouseover(e) {\r
}\r
\r
function UpdateGrid() {\r
- var tags=document.getElementById('tags').value;\r
+ var tags=Rico.$('tags').value;\r
if (tags) {\r
photoGrid.resetContents(false);\r
photoBuffer.fetchData=true; // force another XML fetch\r