Re: beagle webinterface

2008-07-18 Thread Blackhold
ok, this don't give any error... but when I do an alert of mimetype
value it only shows me $mimetype...

one question... is possible that user when clicks the link href
changes for the modified [EMAIL PROTECTED] value?

thanks.

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 8:48 PM, Blackhold [EMAIL PROTECTED] wrote:
 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('[EMAIL PROTECTED]'); 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('[EMAIL PROTECTED]',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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] wrote:
 it don't :(

 I quickly changed on my computer and got an alert box with the URL.

 a href=# onClick=openhit('[EMAIL PROTECTED]'); return false;...

 function openhit (url)
 {
   alert(url);
 }



___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle error logging

2008-07-18 Thread drago01
On Fri, Jul 18, 2008 at 9:34 AM, Charles-Henri d'Adhémar
[EMAIL PROTECTED] wrote:
 Hello !

 what about add a message to the log and stop logging?
 so that search etc. will continue to work but no logs are written
 until the daemon is restarted.

 I totally agree with this solution : if the user did not noticed the
 error but only the log file size it means that the error is not
 critical for beagled daily usage. Then there is no reason to shutdown
 beagled.

 As far as I remember, the last time I had a problem with the log file
 size was with a particular file type (MS Word documents indexing error
 and it was about a year ago). In such a situation the user will notice
 some of its MS Word document are not indexed, grep the log and see one
 error message saying something like too much errors with the MS Word
 document indexer, error logging stopped.

 It sounds like a sain and easy to understand behavior for the end user.


(sent to list too)
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle webinterface

2008-07-18 Thread Debajyoti Bera
 ok, this don't give any error... but when I do an alert of mimetype
 value it only shows me $mimetype...

Then use
onClick=openhit('[EMAIL PROTECTED]', '{$mimetype}'); return false;)

 one question... is possible that user when clicks the link href
 changes for the modified [EMAIL PROTECTED] value?

Not sure what you mean here. Can you explain with an example ? You might be 
able to change the href when the user clicks the link, but that would again 
involve writing an onClick handler. I think you should be able to change the 
href and then return true in which case the click will open the modified 
href. But this all javascript manipulation happening here. And I am not the 
best person to ask these :-). You should consult some advanced javascript 
tutorial or something.

- dBera

-- 
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE / Mandriva / Inspiron-1100
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle webinterface

2008-07-18 Thread Blackhold
a href=return of function openhit() onClick=openhit(...)

then, in function openhit

function openhit(url){
 direccio = modification of value url;

 return(direccio);

}

then in href, nor #, go the edited link, then we don't need to use
mimetype and nothing more...


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 Fri, Jul 18, 2008 at 1:22 PM, Debajyoti Bera [EMAIL PROTECTED] wrote:
 ok, this don't give any error... but when I do an alert of mimetype
 value it only shows me $mimetype...

 Then use
 onClick=openhit('[EMAIL PROTECTED]', '{$mimetype}'); return false;)

 one question... is possible that user when clicks the link href
 changes for the modified [EMAIL PROTECTED] value?

 Not sure what you mean here. Can you explain with an example ? You might be
 able to change the href when the user clicks the link, but that would again
 involve writing an onClick handler. I think you should be able to change the
 href and then return true in which case the click will open the modified
 href. But this all javascript manipulation happening here. And I am not the
 best person to ask these :-). You should consult some advanced javascript
 tutorial or something.

 - dBera

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

___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle webinterface

2008-07-18 Thread Debajyoti Bera
 a href=return of function openhit() onClick=openhit(...)

 then, in function openhit

 function openhit(url){
  direccio = modification of value url;

  return(direccio);

 }

 then in href, nor #, go the edited link, then we don't need to use
 mimetype and nothing more...

From what I understand about HTTP servers, even then you would have the same 
problem. document.open(...), window.open(...) or clicking on an href uses the 
same HTTP calls and browser functions to open a new document. AFAIK, its 
the HTTP servers responsibility to inform the browser about the mimetype. You 
can test this, in openhit(), instead of opening a new window with the 
document, open a blank window and set its href to direccio. That will achieve 
the same effect as clicking on a link.

See e.g. http://www.irt.org/articles/js128/index.htm#4.1

-- 
-
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE / Mandriva / Inspiron-1100
___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle webinterface

2008-07-18 Thread Blackhold
what I would like to not do is open an other window, but I'm gonna try
to continue with the mime, I think I'm almost at the end! a few tests
more and that's all!

maybe webinterface could have this utility in this time...

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 Fri, Jul 18, 2008 at 2:29 PM, Debajyoti Bera [EMAIL PROTECTED] wrote:
 a href=return of function openhit() onClick=openhit(...)

 then, in function openhit

 function openhit(url){
  direccio = modification of value url;

  return(direccio);

 }

 then in href, nor #, go the edited link, then we don't need to use
 mimetype and nothing more...

 From what I understand about HTTP servers, even then you would have the same
 problem. document.open(...), window.open(...) or clicking on an href uses the
 same HTTP calls and browser functions to open a new document. AFAIK, its
 the HTTP servers responsibility to inform the browser about the mimetype. You
 can test this, in openhit(), instead of opening a new window with the
 document, open a blank window and set its href to direccio. That will achieve
 the same effect as clicking on a link.

 See e.g. http://www.irt.org/articles/js128/index.htm#4.1

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

___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers


Re: beagle webinterface

2008-07-18 Thread Blackhold
well tried that:

onClick=openhit('[EMAIL PROTECTED]', '{$mimetype}'); return false;)
onClick=openhit('[EMAIL PROTECTED]', '$mimetype'); return false;)
onClick=openhit('[EMAIL PROTECTED]', $mimetype); return false;)
onClick=openhit('[EMAIL PROTECTED]', {$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.

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 Fri, Jul 18, 2008 at 2:39 PM, Blackhold [EMAIL PROTECTED] wrote:
 what I would like to not do is open an other window, but I'm gonna try
 to continue with the mime, I think I'm almost at the end! a few tests
 more and that's all!

 maybe webinterface could have this utility in this time...

 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 Fri, Jul 18, 2008 at 2:29 PM, Debajyoti Bera [EMAIL PROTECTED] wrote:
 a href=return of function openhit() onClick=openhit(...)

 then, in function openhit

 function openhit(url){
  direccio = modification of value url;

  return(direccio);

 }

 then in href, nor #, go the edited link, then we don't need to use
 mimetype and nothing more...

 From what I understand about HTTP servers, even then you would have the same
 problem. document.open(...), window.open(...) or clicking on an href uses the
 same HTTP calls and browser functions to open a new document. AFAIK, its
 the HTTP servers responsibility to inform the browser about the mimetype. You
 can test this, in openhit(), instead of opening a new window with the
 document, open a blank window and set its href to direccio. That will achieve
 the same effect as clicking on a link.

 See e.g. http://www.irt.org/articles/js128/index.htm#4.1

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


___
Dashboard-hackers mailing list
Dashboard-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/dashboard-hackers