Quoting Omer Zak <[EMAIL PROTECTED]>:

>    My problem:  the default filename in the second dialog is the same as
>    the CGI script name.  How can the Web server cause Mozilla to select
>    another default filename?

I'll give you the short form, and you STFW for the rest. Basically, to get a
browser to download, you don't just change the mime type. You also use a
"disposition" header, with the value "attachment". There is also a place for a
filename within the headers.

Note that browsers have quirks about this. Not all of them recognize the
filename attribute. Also, not all mime types are suitable for the job.

> 
> 3. In a form in my Web page, there is a <TEXTAREA>...</TEXTAREA> element.
>    In this element, when the onClick() handler is invoked, I need to know
>    where is the cursor positioned.  If I select a piece of text, I need to
>    know, in the onSelect() handler, exactly what are the starting and
>    ending positions of the selected text.
> 
>    Is there any way to accomplish this from Mozilla Javascript?  From xul?

You mean their graphical position in (x,y), or you mean the position within the
text?

Basically, an X,y position is available for events, if you register the event
rather than use an "onClick" attribute in Javascript.

Herouth

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to