Hi Guys,
I am trying to use the prototype framework to hide a '< div >' based on a particular URL. I don't have access to server side - so I have no choice but to do this using prototype [restriction of platform using prototype].
Wondering if someone could tell me how to do this in prototype framework ?
i.e. I tried to do this but doesn't work
Event.observe(window, 'load', function() {
var url = document.location.href;
if (url.indexOf('registered') >= 0) {
$$('#side-menu-right').hide(); }if (url.indexOf('login') >= 0) { $$('#side-menu-left').hide(); }
});
Love some help ?
P.S - Never used Prototype [jQuery man right here yo!]