Forum Moderators: open

Message Too Old, No Replies

problem in saving the text present on the browser page

how to save the text present on the browser when cliks a button

         

sunitha_mvd

9:49 am on Nov 5, 2003 (gmt 0)

10+ Year Member



hi,
i want a functionality like this.
when user clicks a save button present on the browser file,he could able to able to save the text present on the browser.

could anybody please tell me how can do achieve this.

thanks and regards
sunitha.

divaone

12:51 pm on Nov 5, 2003 (gmt 0)

10+ Year Member



hi sunitha,

can you clarify a bit? for one, is it text you have provided or is it dynamically generated text, like from a form the visitor has completed?

for starters, you can supply a 'select all' function with javascript that will copy the text onto the user's clipboard. they can save the text in notepad or other.

h,ttp://www.dynamicdrive.com/dynamicindex11/selectform.htm

for dynamically generated text i would suggest a perl or php form script that saves the data to a text file. upon completion of the form, provide a link to the written text file and advise the visitor to right-click and 'save as'.

there may be better solutions depending on what you're looking for.

hth