Jump to content

Search the Community

Showing results for tags 'silent printing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi. I have a problem running JS. script1:= ' function WebSocketPrinter(options) { '+ ' var defaults = { '+ ' url: "ws://127.0.0.1:12212/printer", '+ ' onConnect: function () { '+ ' }, '+ ' onDisconnect: function () { '+ ' }, '+ ' onUpdate: function () { '+ ' }, '+ ' }; '+ ' var settings = Object.assign({}, defaults, options); '+ ' var websocket; '+ ' var connected = false; '+ ' var onMessage = function (evt) { '+ ' settings.onUpdate(evt.data); '+ ' }; '+ ' var onConnect = function () { '+ ' connected = true; '+ ' settings.onConnect(); '+ ' }; '+ ' var onDisconnect = function () { '+ ' connected = false; '+ ' settings.onDisconnect(); '+ ' reconnect(); '+ ' }; '+ ' var connect = function () { '+ ' websocket = new WebSocket(settings.url); '+ ' websocket.onopen = onConnect; '+ ' websocket.onclose = onDisconnect; '+ ' websocket.onmessage = onMessage; '+ ' }; '+ ' var reconnect = function () { '+ ' connect(); '+ ' }; '+ ' this.submit = function (data) { '+ ' if (Array.isArray(data)) { '+ ' data.forEach(function (element) { '+ ' websocket.send(JSON.stringify(element)); '+ ' }); '+ ' } else { '+ ' websocket.send(JSON.stringify(data)); '+ ' } '+ ' }; '+ ' this.isConnected = function () { '+ ' return connected; '+ ' }; '+ ' connect(); '+ '} ' + ' var printService = new WebSocketPrinter(); '+ ' function printPDFBase64(typ,pdfbase64) { '+ ' printService.submit({ '+ ' ''type'': typ, '+ ' ''url'': ''tuxmed.pdf'', '+ ' ''file_content'': pdfbase64 '+ ' }); '+ ' } '; UniSession.AddJS(script1); I trigger a function with parameters: UniSession.AddJS('printPDFBase64("'+UniApplication.Parameters.Values['gabinet']+'","'+pdf_base64+'")'); I get this error:
×
×
  • Create New...