NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on April 15, 2019, 03:37:21 AM

Title: Link in popup form doesn't work
Post by: Robert Iliuta on April 15, 2019, 03:37:21 AM
Hallo Bruce!

I have a link where I download a PDF file.
In a browse works when I open the Browse but not when I press next page. (I need to reload the page)
In a popup form it doesn't work at all. The popup form will not open.
This is the example link: <a href="#" download>test download link</a>

Console said: XML Parsing Error: not well-formed
xHTML safe/unsafe was checked. I put also the code on XHTML tab.

What could be the reason?

Thank you!
Robert
Title: Re: Link in popup form doesn't work
Post by: Bruce on April 15, 2019, 06:47:34 AM
Hi Robert,

>> Console said: XML Parsing Error: not well-formed

yep - so the HTML is not well formed XML.

>> I put also the code on XHTML tab.

what code did you put on there?

cheers
Bruce
Title: Re: Link in popup form doesn't work
Post by: Robert Iliuta on April 15, 2019, 08:24:58 AM
a "normal" link :-)
Code: [Select]
<a href="#" download>test download link</a>
Robert
Title: Re: Link in popup form doesn't work
Post by: Bruce on April 15, 2019, 10:05:32 PM

<a href="#" download>test download link</a>

This is not valid because the word "download" inside the <a is not right. Did you perhaps mean to have;

<a href="#download">test download link</a>

?

Cheers
Bruce
Title: Re: Link in popup form doesn't work
Post by: Robert Iliuta on April 15, 2019, 11:26:15 PM
Hallo Bruce!

Check this: https://www.w3schools.com/tags/att_a_download.asp (https://www.w3schools.com/tags/att_a_download.asp)
"download" is an attribute to <a> tag.

Robert
Title: Re: Link in popup form doesn't work
Post by: Bruce on April 17, 2019, 12:12:58 AM
Hi Robert,

in xml each attribute must have a value. So this is not valid xHTML. To make it valid change it to


<a href="#" download="download">test download link</a>

cheers
Bruce
Title: Re: Link in popup form doesn't work
Post by: Robert Iliuta on April 17, 2019, 01:04:06 AM
Hallo Bruce!

>>in xml each attribute must have a value. So this is not valid xHTML. To make it valid change it to
didn't know that... next time I will check also for xHTML.

<a href="#" download="download">test download link</a>
Works just perfect!

Thank you!
Robert