Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

JavaScript hostname

New Here ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

Hi,

For a little JS script I am writing I need to get the hostname of the pc for printing
it on the PDF document. But until now I was not able to manage it.

Does someone now a little line of code to get the systems hostname?

(System: Windows 8.1 / Windows 10; Adobe: Version 11.0.16)

Tanks Housy

Views

623
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

I can't imagine it is possible to get sensitive info like this.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

Is there any chance to make a network request and receive my own hostname from another
server that resolves it via DNS and sends it back to me.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

Well a SOAP request is possible but requires a LiveCycle server product to prepare the file. You can submit a form and get an FDF reply in fields, but expect the user to need to confirm. Alternative: You could store it as a variable in a startup script.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 12, 2017 Jan 12, 2017

Copy link to clipboard

Copied

LATEST

Thanks a lot for the quick response. If the user has to confirm it this option is not possible in my case.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines