javascript - Popping up a window for the user to show some data? -


I have a webpage where my users want to get some data from me in the XML format, the flow I was thinking :

  1. The user clicks on a button named "Export"
  2. I generate a long XML string using javascript.
  3. Pop up a new window and just paste the XML string into it.

I would like to save the XML string in a text file for the user, but I do not think it is possible with javascript (security reason).

Is there any other best practice to do something like this?

You add a hovering text Field on the page and paste it to XML Set the focus on the field to make things even easier for the user and select everything (so that they can only press Ctrl + C).


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -