Click here to Skip to main content
16,011,120 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Update access DB with vbScript on site Pin
Bradml17-Nov-06 21:51
Bradml17-Nov-06 21:51 
Questionweb site project Pin
shayee15-Nov-06 14:05
shayee15-Nov-06 14:05 
AnswerRe: web site project Pin
Bradml15-Nov-06 14:52
Bradml15-Nov-06 14:52 
GeneralRe: web site project Pin
George L. Jackson15-Nov-06 15:06
George L. Jackson15-Nov-06 15:06 
GeneralRe: web site project Pin
Bradml15-Nov-06 15:30
Bradml15-Nov-06 15:30 
GeneralRe: web site project Pin
George L. Jackson16-Nov-06 0:09
George L. Jackson16-Nov-06 0:09 
QuestionHyperlink.. Pin
Laing,James15-Nov-06 13:32
Laing,James15-Nov-06 13:32 
AnswerRe: Hyperlink.. Pin
Bradml15-Nov-06 15:28
Bradml15-Nov-06 15:28 
Laing,James wrote:
The target is a plain ASCII file that should be displayed in a new window, say for example using WORDPAD or NOTEPAD and not explorer, so that plain text formatting is honored.


Well you can Half do this. You can get a browser to honor the plain text formating by naming the file *.txt (Astrix is wild card) or you can set the headers on the output to a text file. A PHP example is:

<?php<br />
header('Content-type: text');<br />
?><br />
Standard text here.<br />
and Here.<br />
And perhaps even here.<br />


so this tells the browser to render the content as text.




Laing,James wrote:
2. That if the user right clicks the link, a/the popup menu provides the ability to view or 'run' the target; which will be launched by own application.
Note, the filetype, for example '.ABC' of the target, has already been registered/associated with my application.


ok this you can do this IF the application is installed on the clients computer.

Say you had a file you wanted to be rendered as a PDF, well again you use the content you use the Content-Type Headers.

<?php<br />
header('Content-type: application/pdf');<br />
<br />
// Only throw the next line if you want the save dialog to be presented to the user, the filename parameter is what the default filename should be.<br />
header('Content-Disposition: attachment; filename="default_filename.pdf"');<br />
<br />
?> <br />
<br />
This will be formatted as a PDF file.....


I hope this is what you wanted....

BTW I am sure that this works with AJAX.

Finally remember that the headers MUST be the first thing sent down to the browser, therefore this will NOT work if anything is sent down before it, including blank lines.







Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley

GeneralRe: Hyperlink.. Pin
Laing,James17-Nov-06 11:24
Laing,James17-Nov-06 11:24 
QuestionGetting and returning data from Delphi and Flash Pin
Redpeg15-Nov-06 2:04
Redpeg15-Nov-06 2:04 
QuestionRegular Expression Pin
wmostafaw15-Nov-06 1:54
wmostafaw15-Nov-06 1:54 
AnswerRe: Regular Expression Pin
George L. Jackson15-Nov-06 11:42
George L. Jackson15-Nov-06 11:42 
AnswerRe: Regular Expression Pin
hiral_shah17-Nov-06 22:03
hiral_shah17-Nov-06 22:03 
Questionjavascript tip for Ajaxed but accessible links [modified] Pin
seubi15-Nov-06 0:06
seubi15-Nov-06 0:06 
AnswerRe: javascript tip for Ajaxed but accessible links Pin
Bradml15-Nov-06 0:17
Bradml15-Nov-06 0:17 
GeneralRe: javascript tip for Ajaxed but accessible links Pin
seubi15-Nov-06 0:20
seubi15-Nov-06 0:20 
GeneralRe: javascript tip for Ajaxed but accessible links Pin
Paddy Boyd15-Nov-06 1:20
Paddy Boyd15-Nov-06 1:20 
GeneralRe: javascript tip for Ajaxed but accessible links Pin
seubi15-Nov-06 1:27
seubi15-Nov-06 1:27 
QuestionHow do you create a Video Gallery Pin
SexyKitten14-Nov-06 22:26
SexyKitten14-Nov-06 22:26 
AnswerRe: How do you create a Video Gallery Pin
Bradml14-Nov-06 22:51
Bradml14-Nov-06 22:51 
GeneralRe: How do you create a Video Gallery Pin
SexyKitten14-Nov-06 23:18
SexyKitten14-Nov-06 23:18 
AnswerRe: How do you create a Video Gallery Pin
RichardGrimmer15-Nov-06 1:20
RichardGrimmer15-Nov-06 1:20 
QuestionRe: How do you create a Video Gallery Pin
SexyKitten15-Nov-06 4:03
SexyKitten15-Nov-06 4:03 
AnswerRe: How do you create a Video Gallery Pin
RichardGrimmer15-Nov-06 4:51
RichardGrimmer15-Nov-06 4:51 
GeneralRe: How do you create a Video Gallery Pin
SexyKitten15-Nov-06 9:14
SexyKitten15-Nov-06 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.