[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

ASP and RTF creation

Posted on 2004-08-05
3
Medium Priority
?
179 Views
Last Modified: 2006-11-17
Hello,

Now, for the record, my RTF creation script works fine, but what I used to do at the end of the script is usually just a simple "Response.Redirect" to some other page which would contain a link to the document which was just created (thus allowing the user to right-click and choose save target as..).

I was wondering is it possible to open the document in a new window straight after the script has been run (so the user can view it and choose to save it if they want).

Any help would be appreciated
0
Comment
Question by:Sebastion
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Expert Comment

by:leechoonhwee
ID: 11732627
Response.Write("<script>window.open("PageName.asp?File=Filename","FrameName")</script>")
0
 

Author Comment

by:Sebastion
ID: 11732707
leechoonhwee,

First, that code is missing some quotations, I'd imagine it would read:

Response.Write("<script>window.open(""PageName.asp?File=" & FilePath & ",""FrameName"")</script>")

Where, FilePath = the fullpath and name of the file that was just created in the script.  I assume that this was the only variable I had to change?  The end result that I recieved was a blank page (no window opened).

Could you give a little more detail about what I'm supposed to change.  Am I required to make a new page called PageName (or whatever I want to call it)?  If so, I have no idea what to put on this page.

Thanks in advance
0
 
LVL 9

Accepted Solution

by:
leechoonhwee earned 400 total points
ID: 11732747
LOL...Sorry for the confusion..Let me explain as I might have given the wrong example.

You have already saved a file called file.txt in a directory called Doc (for example)

So you need to do a

Filestr = Server.Mappath & "./Doc/" & Filename

Response.Write("<script>window.open("& Filestr &","FrameName")</script>")

This will open up the document in a new window.

I am so sorry for the confusion cuz the code given was from my own code library!!! So sorry.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question