Re: beagle webinterface



> onClick="openhit('{ Uri}', '{$mimetype}'); return false;)"
> onClick="openhit('{ Uri}', '$mimetype'); return false;)"
> onClick="openhit('{ Uri}', $mimetype); return false;)"
> onClick="openhit('{ Uri}', {$mimetype}); return false;)"
>
> and in the funcion openhit(url,mime){ there's an alert(mime);
>
> sometimes in the last twho cases it opens a new window with the main
> page (and alert don't appears) :S in the first two ones, the alert is
> empty.

(Ignore if you are getting it second time - some domains refused the earlier 
js attachment).

You forgot the change in hitresult.xsl ! I am making it a bit easier for you.
Download these files are replace the original ones by them:
http://svn.gnome.org/svn/beagle/trunk/beagle/beagled/webinterface/default.js
http://svn.gnome.org/svn/beagle/trunk/beagle/beagled/webinterface/hitresult.xsl

And then open default.js, find the method open_hit and replace it with:
--------- >8-------------------------
function open_hit (uri, mimetype)
{
  alert ("Opening " + uri + " (" + mimetype + ")");
  return false;
}
---------->8--------------------------

I verified that it works here. See if that works for you.

-- 
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE / Mandriva / Inspiron-1100
-- 
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE / Mandriva / Inspiron-1100


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]