|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
i have a file a.htm ,the code is below:
Code:
<SCRIPT>
//<!--
function onDownloadDone(s) {
oText.value=s;
}
//-->
</SCRIPT>
<IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
<P>Click <A HREF="javascript:oDownload.startDownload('b.htm', onDownloadDone)">here</A>
to begin downloading this page and display the result in the following <B>TEXTAREA</b>.</P>
<P>
<TEXTAREA ID=oText COLS=65 ROWS=10 STYLE="background-color: #505050; color: #FFFFFF; font-size: 8pt; font-family: Arial; border: '2 outset';">
</TEXTAREA>
and i have another file b.htm,the content is below; Code:
<h1>this is a test</h1> and when i open the file a.htm with internet explorer ,click,the textarea will show the content of the b.htm,it run well,but it not support the firefox,i need help to give the similar example to support the firefox,thank you ! |
|
#2
|
||||
|
||||
|
There is so much invalid HTML in there I don't know where to start.
What exactly are you trying to achieve? You want the textarea to show a certain value when you select it? Should do just fine, ditch the rest of the horrible M$ HTML rape-code...
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 264
![]() |
|
#3
|
||||
|
||||
|
I wouldn't mind starting with <IE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
What does that do... and why do I think it doesn't belong? =)
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Help!about download behavior |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|