Re: beagle webinterface
- From: Blackhold <blackholdmailer gmail com>
- To: "D Bera" <dbera web gmail com>, dashboard-hackers gnome org
- Subject: Re: beagle webinterface
- Date: Thu, 17 Jul 2008 20:48:03 +0200
hello,
I could get the correct url with http:// thanks you much :D
but now I found an other problem... I tested with a lot of variables,
and looked the code for a similar var but for the mime type, I found
that with my script all files are procesed as text files :o
now I've got that:
[hitresult.xsl]
<a target="_blank" href="#" onClick="openhit('{ Uri}'); return false;">
[default.js]
function openhit(url)
{
var direccio;
var host;
host = "http://" + location.host + "/";
direccio = url.replace ("file:///var/www/", host);
document.location.href = direccio;
}
now I know that I have to do that:
[hitresult.xsl]
<a target="_blank" href="#"
onClick="openhit('{ Uri}',var_saying_mimetype); return false;">
[default.js]
function openhit(url,mime)
{
var direccio;
var host;
host = "http://" + location.host + "/";
direccio = url.replace ("file:///var/www/", host);
window.open(direccio).document,open(mime);
}
I see also, searching, that there's a file that I think that it could
be used for translations.
In some projects for translate websites is used php gettext, but I
think that gettext is not forced to be linked at php... I don't
know...
thanks you much.
Blackhold
+++++++++++++++++++++++++
Material SCG08
http://associacio-aoe.org/scg/charlas
+++++++++++++++++++++++++
Respect free software communities and use free and/or standard formats
while sending attached files. Files such .doc, .xls, are formats that
don't follow the standard rules and may cause problems on viewing or
in the format of the text when these are opened with programs where
thousands users communities develops free software. So that I ask for
the files that are sent to me, to be odf, ods, odp, svg, png or in
default pdf. Thanks you a lot...
On Thu, Jul 17, 2008 at 5:04 PM, Blackhold <blackholdmailer gmail com> wrote:
> ok, great! missed the "" in href="#" :$ I were looking and relooking
> into the other funcion of a label :$
>
> gonna try if the other thing works...
>
> Blackhold
>
> +++++++++++++++++++++++++
> Material SCG08
> http://associacio-aoe.org/scg/charlas
> +++++++++++++++++++++++++
> Respect free software communities and use free and/or standard formats
> while sending attached files. Files such .doc, .xls, are formats that
> don't follow the standard rules and may cause problems on viewing or
> in the format of the text when these are opened with programs where
> thousands users communities develops free software. So that I ask for
> the files that are sent to me, to be odf, ods, odp, svg, png or in
> default pdf. Thanks you a lot...
>
>
> On Thu, Jul 17, 2008 at 4:52 PM, D Bera <dbera web gmail com> wrote:
>>> it don't :(
>>
>> I quickly changed on my computer and got an alert box with the URL.
>>
>> <a href="#" onClick="openhit('{ Uri}'); return false;">...
>>
>> function openhit (url)
>> {
>> alert(url);
>> }
>>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]