By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,521 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,521 IT Pros & Developers. It's quick & easy.

save or print string

P: n/a
I form an 'html' string interactively that can be output by `xx.html` as
'document.write(string)' which shows the html and the html source.
I can also see the string using `alert("string "+string);`
But how can I save that string or print that string?

db
Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
If you do a: document.write("string") you can print your page and also
to a file.

If you use Firefox, for example, you can select the string and ask to
see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.

Jul 23 '05 #2

P: n/a
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also
to a file.

If you use Firefox, for example, you can select the string and ask to
see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.

Jul 23 '05 #3

P: n/a
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #4

P: n/a
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #5

P: n/a
eh
Hello occam

I'm intersted to know how to do that as well without user intervention.

I have an ASP.NET application that produces html strings which should
be wither emailed or printed. The email is easy. I cannot manage to do
printing without going through a file, which I prefer not to.

Thanks,
eh

occam wrote:
Done.
Thanks!

db

"sbriet" <sb****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
If you do a: document.write("string") you can print your page and also to a file.

If you use Firefox, for example, you can select the string and ask to see the code.
Select the display on your page, right click and do "view selection
source"
Then you can see your code.


Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.