Re-sent : cannot trace any reply, and still keen to
learn the other six errors you have identified :
--------
Philip TAYLOR wrote:
>
>
> Philip Chee wrote:
>>>>> var features =
>>>>> "menubar=no,location=no,resizable=yes,scrollbars=no,status=no,toolbar=no,width=480,height=320"
>>>>> var name = "_feedback"
>>>>> var location = 'SendMail.aspx?subject=' + window.location
>>>>> window.open (location, name, features)}
>
>> I see at least seven errors in the above code. Fortunately for you
>> Javascript is quite forgiving.
>
> I see one, which is the closing brace on the final line
> (crept in during copy/paste/simplify -- I omitted the
> try/catch part to simplify the code : see real code
> below) -- what are the other six that you see ?
>
> Philip Taylor
> --------
>> function SendFeedback (SelectedText)
>> {
>> var features =
>> "menubar=no,location=no,resizable=yes,scrollbars=no,status=no,toolbar=no,width=840,height=480"
>> var name = "_feedback"
>> var location = '../SendMail.aspx?URL=' +
>> window.location
>> if (SelectedText == "")
>> {
>> }
>> else
>> {
>> location += "&SelectedText=" +
>> Global.SelectedText
>> // console.log ("Location : " +
>> location)
>> }
>> try
>> {window.open (location, name, features)}
>> catch (exception)
>> {alert ("Sorry, your browser cannot handle a
>> selection of that length; " +
>> "please make a shorter
>> selection or use an alternative browser such as Seamonkey")}
>> finally {}
>> }
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey