Announcement

Collapse
No announcement yet.

pdf is not served by HS4 Ajax executefunction

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    pdf is not served by HS4 Ajax executefunction

    Using http://HS4ServerURL/mcsMQTT/mcsMQTT.pdf will result in serving the pdf document to the browser.

    Doing the same thing using Ajax executefunction does not serve the page. It does function properly in HS3.

    code below has brackets changed to [ and ] to protect rendering in browser.

    Code:
    In postback...
    
    Me.pageCommands.Add("executefunction", "document.getElementById('help').submit();")
    
    
    On page being shown during postback....
    
    "[form id='help' target = '_blank' action='" & IFACE_NAME & "/" & IFACE_NAME & ".pdf'][/form]"
    
    
    Expected action is that a new browser window opens with executefunction and mcsMQTT/mcsMQTT.pdf is delivered to that window.

    #2
    topic moved to HS4 Bugs in Developer Forum
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment

    Working...
    X