Hi Thanh,

On the demo website I went to
https://demo-stable.ofbiz.apache.org/ordermgr/control/ViewQuote?quoteId=CQ0001
and clicked the PDF button, and it worked in Firefox 60.

Is there an error message on your Firefox developer console?

Cheers

Paul Foxworthy

On Wed, 19 Jun 2019 at 12:44, Thanh Nguyen <thanhnguyen020...@gmail.com>
wrote:

> Hi Paul Foxworthy,
>
> I want to print PDF on Sales Quote.
>
> On Google Chrome it is work fine, but on firefox it can not print,
>
> Here is code after ofbiz generate into HTML
>
> [image: image.png]
>
> And here is menu standard code from Ofbiz.
> [image: image.png]
>
> So do you have any solution on it, please help?
>
> On Wed, Jun 19, 2019 at 8:43 AM Paul Foxworthy <p...@cohsoft.com.au>
> wrote:
>
>> Le 18/06/2019 à 16:06, thanhnguyen020...@gmail.com a écrit :
>>>
>>
>>
>>> > Today I see one problem is Firefox browser does not support this
>>> command "<a href="javascript:document...".
>>> > So have anyone have solution for this issue.
>>>
>>
>> Stack Overflow discusses the issue here:
>> https://stackoverflow.com/questions/38856853/a-href-javascriptfunction-in-firefox-not-working
>>
>>
>> Thanh, can you give us an example where this occurs? Is there an error
>> message in the FIrefox developer console when the problem occurs?
>>
>> It seems some ftl templates have JavaScript hrefs - for example, the Help
>> at top right calls a JavaScript function. That's working for me with
>> Firefox 60.
>>
>>  A quick fix might be to change
>>
>> <a href="javascript:document...
>>
>> to
>>
>> <a href="javascript:void(document...)
>>
>> Better would be to attach an event handler rather than have inline
>> JavaScript.
>>
>> Cheers
>>
>> Paul Foxworthy
>>
>> --
>> Coherent Software Australia Pty Ltd
>> PO Box 2773
>> Cheltenham Vic 3192
>> Australia
>>
>> Phone: +61 3 9585 6788
>> Web: http://www.coherentsoftware.com.au/
>> Email: i...@coherentsoftware.com.au
>>
>

-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Australia

Phone: +61 3 9585 6788
Web: http://www.coherentsoftware.com.au/
Email: i...@coherentsoftware.com.au

Reply via email to