Re: beagle webinterface



well tried that:

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.

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 <blackholdmailer gmail com> 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 <dbera web gmail com> 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
>>
>


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