NetTalk Central

Author Topic: Link in popup form doesn't work  (Read 6497 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Link in popup form doesn't work
« 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
« Last Edit: April 15, 2019, 03:51:14 AM by Robert Iliuta »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Link in popup form doesn't work
« Reply #1 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Link in popup form doesn't work
« Reply #2 on: April 15, 2019, 08:24:58 AM »
a "normal" link :-)
Code: [Select]
<a href="#" download>test download link</a>
Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Link in popup form doesn't work
« Reply #3 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Link in popup form doesn't work
« Reply #4 on: April 15, 2019, 11:26:15 PM »
Hallo Bruce!

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

Robert

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Link in popup form doesn't work
« Reply #5 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

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Link in popup form doesn't work
« Reply #6 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