First, I'd like to apologize in advance for the length of this email.

> The fuselet does not actually generate JavaScript code, 
> it is entirely in ColdFusion and all output content 
> remains in ColdFusion (HTML) format, the trick to the 
> application is in the <SCRIPT> tag. It calls the applications
> and loads the output content directly on to the page, 
> but it (the CFM file) does not create actual JavaScript 
> content.
> 
> As for the view source, no... if you view the source all you 
> see is the SCRIPT tag you type in to reference the application, 
> no additional content. If you try to access the URL directly 
> (the one referenced in the tag) you get an error message, so 
> really the viewer does not see any HTML content.

It looks to me like you can fetch the content pretty easily. It just takes
two subsequent requests. Below my signature, I've appended the content from
the "flasher" fuselet. As you can see, it's 100% JavaScript (although the
browser will render it as HTML via document.write) and it's 100% readable.

Keep in mind I did this the hard way, by reconstructing the URLs. It
would've been much easier to just fire up a recording proxy and read all the
incoming data directly.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

// request 1, in which I fetched this URL:
//
http://www.hksi.net/subliminalflasher/flasher2.htm?caller=http:%3A//www.fuse
lets.com/Products/

var mySettings = "caller=http:%3A//www.fuselets.com/Products/&";
                var myQueryString = "";
                var myCaller = self.document.URL;
                if (myCaller.indexOf("?")>=0){
                        var myURL = myCaller.split("?");
                        myQueryString = myURL[1];
                        myCaller = myURL[0];
                }
                if (myQueryString!="") myQueryString = "&" + myQueryString;
                document.write('<script
src="http://www.hksi.net/subliminalflasher/flasher2.htm?fuseletCaller='+myCa
ller+'&caller=http:%3A//www.fuselets.com/Products/&'+myQueryString+'"></scri
pt>');

// request 2, in which I fetched the URL constructed from the document.write
statement in the previous 
// request (from this URL):
//
http://www.hksi.net/subliminalflasher/flasher2.htm?fuseletCaller=http%3A//ww
w.hksi.net/subliminalflasher/flasher2.htm%3Fcaller%3Dhttp%3A%253A//www.fusel
ets.com/Products/&caller=http:%3A//www.fuselets.com/Products/&

document.write('\n\n<style type=\'text/css\'><!--\n    A.flasher { color:
navy; text-decoration:none;}\n    A.flasher:visited { color: navy;
text-decoration:none; }\n    A.flasher:active { color: red;
text-decoration:underline; background-color:yellow;}\n    A.flasher:hover {
color: red; text-decoration:underline; background-color:yellow;}\n
P.flasher { font-family:"Verdana","Arial","Helvetica"; font-size:9pt;}\n
hiliteYellow { background-color: #99cc99; font-weight: bold;
text-align:center;}\n    .hiliteWhite { background-color: #cccccc;
font-weight: bold; text-align:center;}\n    TD.flashertiny
{font-family:verdana,arial,sans-serif;font-size:8pt;}\n//
-->\n</style>\n\n\n\n\n\n\n  \n\n<script language=JavaScript><!--\n//
Subliminal Message Flasher\n// Copyright 2002 Humankind Systems, Inc. All
Rights Reserved\n// www.humankindsystems.com\n// [EMAIL PROTECTED]\n\nif
(document.images){ \n\nDemoDown = new Image(74,30) \nDemoDown.src =
"http://hksi.net/subliminalflasher/images/button-demo-down.gif"\n\nDemoSelec
ted = new Image(74,30) \nDemoSelected.src =
"http://hksi.net/subliminalflasher/images/button-demo-selected.gif"\n\nDemoC
urrent = new Image(74,30) \nDemoCurrent.src =
"http://hksi.net/subliminalflasher/images/button-demo-normal.gif"\n\nDemoNor
mal = new Image(74,30) \nDemoNormal.src =
"http://hksi.net/subliminalflasher/images/button-demo-normal.gif"\n\n\nRunDo
wn = new Image(74,30) \nRunDown.src =
"http://hksi.net/subliminalflasher/images/button-Run-down.gif"\n\nRunSelecte
d = new Image(74,30) \nRunSelected.src =
"http://hksi.net/subliminalflasher/images/button-Run-selected.gif"\n\nRunCur
rent = new Image(74,30) \nRunCurrent.src =
"http://hksi.net/subliminalflasher/images/button-Run-normal.gif"\n\nRunNorma
l = new Image(74,30) \nRunNormal.src =
"http://hksi.net/subliminalflasher/images/button-Run-normal.gif"\n\n\nStopDo
wn = new Image(74,30) \nStopDown.src =
"http://hksi.net/subliminalflasher/images/button-Stop-down.gif"\n\nStopSelec
ted = new Image(74,30) \nStopSelected.src =
"http://hksi.net/subliminalflasher/images/button-Stop-selected.gif"\n\nStopC
urrent = new Image(74,30) \nStopCurrent.src =
"http://hksi.net/subliminalflasher/images/button-Stop-normal.gif"\n\n\nHelpD
own = new Image(74,30) \nHelpDown.src =
"http://hksi.net/subliminalflasher/images/button-Help-down.gif"\n\nHelpSelec
ted = new Image(74,30) \nHelpSelected.src =
"http://hksi.net/subliminalflasher/images/button-Help-selected.gif"\n\nHelpC
urrent = new Image(74,30) \nHelpCurrent.src =
"http://hksi.net/subliminalflasher/images/button-Help-normal.gif"\n}
\n\n\n\n\nvar newWindow = null\nvar currentMsg = 0\nvar intervalID =
null\nvar delayValue\nvar MsgArray\nvar newContent\nvar MessageArray\nvar
MessageVar\nvar intervalValue\nvar
windowsettings=\'height=\'+(screen.height-30)+\',width=\'+(screen.width-10)+
\',top=0,left=0\'\n\n\nfunction closeIt() {\n  if (newWindow &&
!newWindow.closed) {\n    newWindow.close()\n    }\n}\n\nfunction
runSubMsg(MessageList) {\n  if (!document.messageform.delay.value) {\n
delayValue = 0\n    }else{\n    delayValue =
document.messageform.delay.value\n    }\n  MsgArray = MessageList.split("~")
\n  newContent = "<html><head><title>SubliminalFlasher by Humankind
Systems</title></head><body bgcolor=black><center><table width=100%
height=100% border=0 cellpadding=0><tr><td valign=middle align=center
style=\'font-size:80pt;color:white;\'><font color=white size=7><span
style=\'{font-size:80pt;color:white;}\'>" + MsgArray[currentMsg] +
"</span></td></tr></table></body></html>"\n  newWindow =
window.open("","messagewindow", windowsettings)\n  if (newWindow) {\n
currentMsg = currentMsg + 1\n    if (currentMsg == MsgArray.length) {\n
currentMsg = 0\n      }\n    newWindow.document.write(newContent)\n
newWindow.document.close()\n    newWindow.focus()\n    temp =
setTimeout("closeIt();", delayValue)    \n  }\n}\n\nfunction
runSubMsgDemo(MessageList) {\n  if (newWindow && !newWindow.closed) {\n
newWindow.close\n   }\n  MsgArray = MessageList.split("~")\n  var
currentMsgRealNumber = currentMsg + 1\n  newContent =
"<html><head><title>SubliminalFlasher Demo by Humankind
Systems</title></head><body bgcolor=black ><center><table width=100%
height=100% border=0 cellpadding=0><tr><td align=right><font
face=verdana,arial color=white size=-1><b>Message " + currentMsgRealNumber +
" of " + MsgArray.length + "</b> &nbsp;&nbsp;<a href=\'##\'
onClick=\'window.opener.stop(); window.close();\'><font color=white
face=verdana,arial size=-1><b>Stop
Demo</b></font></a></font></td></tr><tr><td colspan=2 valign=middle
align=center height=100% style=\'font-size:80pt;color:white;\'><font
color=white size=7><span style=\'{font-size:80pt;color:white;}\'>" +
MsgArray[currentMsg] + "</span></font></td></tr></table></body></html>"\n
\n  newWindow = window.open("","messagewindow", windowsettings)\n  if
(newWindow) {\n    currentMsg = currentMsg + 1\n    if (currentMsg ==
MsgArray.length) {\n              currentMsg = 0\n      }\n
newWindow.opener = window  \n    newWindow.document.write(newContent)\n
newWindow.document.close()\n    newWindow.focus()\n  }\n}\n\nfunction
demoFlasher() {\n  clearInterval(intervalID)\n  if
(document.messageform.ThemeType[1].checked) {\n      if
(document.messageform.message.value==\'\'){\n        alert("You must first
enter one or more custom messages.")\n        return false\n        }\n
// used a real carriage return here, because the Fuselet has trouble with an
escaped n\n      //var carriageReturn = //g\n      messageVar = \'Custom|\'
+ document.messageform.message.value\n      } else {\n      if
(document.messageform.Theme.options[document.messageform.Theme.selectedIndex
].value==\'\'){\n          alert("You must first select a Theme.");\n
return false\n          }\n      messageVar =
document.messageform.Theme.options[document.messageform.Theme.selectedIndex]
value\n      }\n      MessageArray = messageVar.split(\'|\')\n
document.messageform.ThemeName.value = MessageArray[0]\n
document.messageform.ThemeName.className = \'hiliteYellow\'\n
document.DemoImg.src = DemoSelected.src\n      DemoCurrent.src =
DemoSelected.src\n      runSubMsgDemo(MessageArray[1]);\n      intervalID =
setInterval(\'runSubMsgDemo(MessageArray[1]);\', 2000)\n}\n\nfunction
runFlasher() {\n  clearInterval(intervalID)\n  if
(document.messageform.ThemeType[1].checked) {\n    if
(document.messageform.message.value==\'\'){\n      alert("You must first
enter one or more custom messages.")\n      return false\n      }\n
messageVar = \'Custom|\' + document.messageform.message.value\n  }else{\n
if
(document.messageform.Theme.options[document.messageform.Theme.selectedIndex
].value==\'\'){\n          alert("You must first select a Theme.");\n
return false\n          }\n     messageVar =
document.messageform.Theme.options[document.messageform.Theme.selectedIndex]
value\n   }\n    if (!document.messageform.Interval.value) {\n
intervalValue = 60000\n      }else{\n      intervalValue =
document.messageform.Interval.value * 1000\n      }\n    MessageArray =
messageVar.split(\'|\')\n    document.messageform.ThemeName.value =
MessageArray[0]\n    document.messageform.ThemeName.className =
\'hiliteYellow\'\n    document.RunImg.src = RunSelected.src\n
RunCurrent.src = RunSelected.src\n    runSubMsg(MessageArray[1]);\n
intervalID = setInterval(\'runSubMsg(MessageArray[1]);\', intervalValue)\n}
\n  \nfunction stop() {\n       clearInterval(intervalID)\n  currentMsg =
0\n  document.messageform.ThemeName.value = \'none - select below\'\n
document.messageform.ThemeName.className = \'hiliteWhite\'\n
document.DemoImg.src = DemoCurrent.src\n  DemoCurrent.src = DemoNormal.src\n
document.DemoImg.src = DemoNormal.src\n  document.RunImg.src =
RunNormal.src\n  RunCurrent.src = RunNormal.src\n  if (newWindow &&
!newWindow.closed) {\n    newWindow.close();\n  }\n}\n\nfunction
checkLibrary() {\n
document.messageform.ThemeType[0].checked=\'yes\'\n}\n\nfunction
checkCustom() {\n
document.messageform.ThemeType[1].checked=\'yes\'\n}\n\nfunction
helpWindow(){\n
window.open("http://www.hksi.net/subliminalflasher/help.htm","help","width=4
00,height=350,menuBar,scrollBars,resizable");\n}\n\n//-->\n</script>\n\n\n\n
<form name="messageform">\n<table width=460 border=0 cellpadding=0
cellspacing=0>\n<tr>\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-topleft-10x1
0.gif"><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n<td height=10
background="http://www.hksi.net/subliminalflasher/images/shadow-top-10x10.gi
f" valign=bottom align=center><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-topright-10x
10.gif"><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n</tr>\n\n<tr>\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-left-10x10.g
if"><img src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif";
width=10 height=1 alt="" border="0"></td>\n\n<td>\n<center>\n<table
width=460 border=0 cellpadding=0 cellspacing=0>\n<tr>\n  \n  <td width=180
align=left valign=middle bgcolor=999999><img
src=\'http://www.hksi.net/subliminalflasher/images/subliminalFlasherLogo-172
x72.GIF\' width=172 height=72 align=left hspace=0 vspace=0 alt=\'\'
border=\'0\' ></td>\n\n\n  \n  <td width=280 align=center valign=middle
bgcolor=999999>\n    <a href="#" \n        onclick="demoFlasher();return
false"\n        onMouseOver="DemoImg.src=DemoSelected.src;"\n
onMouseDown="DemoImg.src=DemoDown.src;"\n
onMouseOut="DemoImg.src=DemoCurrent.src;"><img name="DemoImg"
src="http://www.hksi.net/subliminalflasher/images/button-demo-normal.gif";
width=74 height=30 align="middle" alt="Show Demo" border="0"><a href="#"\n
onclick="runFlasher();return false"\n
onMouseOver="RunImg.src=RunSelected.src;"\n
onMouseDown="RunImg.src=RunDown.src;"\n
onMouseOut="RunImg.src=RunCurrent.src;"><img name="RunImg"
src="http://www.hksi.net/subliminalflasher/images/button-run-normal.gif";
width=74 height=30 align="middle" alt="Run" border="0"><a href="#"\n
onclick="stop();return false"\n
onMouseOver="StopImg.src=StopSelected.src;"\n
onMouseDown="StopImg.src=StopDown.src;"\n
onMouseOut="StopImg.src=StopCurrent.src;"><img name="StopImg"
src="http://www.hksi.net/subliminalflasher/images/button-stop-normal.gif";
width=74 height=30 align="middle" alt="Stop" border="0"><a href="#"\n
onclick="helpWindow();return false"\n
onMouseOver="HelpImg.src=HelpSelected.src;"\n
onMouseDown="HelpImg.src=HelpDown.src;"\n
onMouseOut="HelpImg.src=HelpCurrent.src;"><img name="HelpImg"
src=\'http://www.hksi.net/subliminalflasher/images/button-help-normal.GIF\'
width=26 height=26 vspace=1 align=middle alt=\'Help\' border=\'0\'
></a></td>\n</tr>\n\n\n<tr>\n  <td align=center bgcolor=999999 colspan=2>\n
<table width=200 border=0 cellpadding=0 cellspacing=0>\n      <tr>\n
<td align=center>\n      <img
src="http://www.hksi.net/subliminalflasher/images/currentlyrunning-label-122
x7.gif" width=122 height=7 hspace=10 vspace="0" align="top" alt=""
border="0"><br>\n      \n        \n      \n      <b><input  size="16"
disabled readonly name="ThemeName" value="none - select below"
class="hiliteWhite"></b></font></td>\n      <td align=center>\n      <img
src="http://www.hksi.net/subliminalflasher/images/interval-label-86x7.gif";
width=86 height=7 hspace=10 vspace="0" align="top" alt="" border="0"><br>\n
<font size=3>\n      <b><input  size="6" maxlength="4"
style="{text-align:center;}" name="Interval" value="60"
class="hiliteWhite"></b></font></td>\n      <td align=center>\n      <img
src="http://www.hksi.net/subliminalflasher/images/delay-label-77x7.gif";
width=77 height=7 hspace=10 vspace="0" align="top" alt="" border="0"><br>\n
<font size=3>\n      <b><input  size="6" maxlength="4"
style="{text-align:center;}" name="delay" value="20"
class="hiliteWhite"></b></font></td>\n      </tr>\n
</table>\n</td>\n</tr>\n\n<tr>\n<td height=1 colspan=2 bgcolor=333333><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=1
height=1 alt="" border="0"></td>\n</tr>\n\n\n\n<tr>\n  <td align=center
valign=top bgcolor=cccccc colspan=2>\n    <table width="100%" bgcolor=cccccc
border=1 cellpadding=3 cellspacing=0>\n      <tr>\n        <td valign=top>\n
<input type="radio" name="ThemeType" value="Library" CHECKED>\n
<font size=-1 face=verdana,arial>\n            <b>Select a Theme from our
Library</b></font><br>\n            <font size=-1 face=verdana,arial>\n
<select size=4 name="Theme" onFocus="checkLibrary();">\n
<option value="Anti-smoking|Cigarettes taste bad~Smokers Are Ugly~Lung
Cancer is Painful~Smokers Stink" SELECTED>Anti-Smoking - severe messages for
severe addictions\n              <option value="Weight Loss|I eat healthy
food~I Like to Exercise~I Love my Body">Weight Loss - gentle messages to
melt the pounds away\n              <option value="Money Management|I Spend
Money Wisely~I Have an Abundance of Resources~I Feel Wealthy~I am
Financially Secure">Money Management - program yourself for peace of mind\n
</select></font>\n            <br clear=all>\n            <br>\n
<input type="radio" name="ThemeType" value="Custom">\n            <font
size=-1 face=verdana,arial>\n            <b>or Flash Your Own
Messages</b></font>\n            <font face=verdana,arial size=-2>(separate
each with a "~" character)</font><br>\n            <font size=3
face="courier new, monotype">\n            <textarea cols=60 rows=6
name="message" wrap="virtual" style="{width:450px;}"
onFocus="checkCustom();">Gosh darn it, People Like Me~I Chew My Food
Thoroughly~I Speak Politely to my Mother-in-Law~Every Day, in Every Way,
I\'m Getting Better and Better</textarea>\n            </font><br
clear=all>\n        </td>\n      </tr>\n    </table>\n
</td>\n</tr>\n\n\n\n<tr>\n  <td valign=middle align=right colspan=2
bgcolor=999999>\n    <table width=100% border=0 cellpadding=3
cellspacing=0>\n      <tr>\n      <td align=left class="flashertiny">\n
<font face="verdana,arial" size="-2" color=333333>\n
<b>&copy;2002</a>\n        <a href="http://humankindsystems.com";
target="_blank"><font face="verdana,arial" size="-2"
color=333333><b>Humankind Systems</b></font></a></td>\n          <td
align=right class="flashertiny">\n        <a href="javascript:helpWindow();"
><font face="verdana,arial" size="-2" color=333333><b>Put SubliminalFlasher
on Your Website for FREE!</b></font></a></td>\n      </tr>\n    </table>\n
</td>\n</tr>\n\n\n\n\n<tr>\n  <td align=center valign=middle bgcolor=white
colspan=2>\n    <script language="JavaScript"
src="http://www.humankindsystems.com/adfuselet/AdFuselet.asp?category=killer
webmail.com&fuseletCaller=&{escape(document.URL)};"></script>\n</td>\n</tr>\
n\n\n</table></center></td>\n\n\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-right-10x10.
gif"><img src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif";
width=10 height=1 alt="" border="0" ></td>\n</tr>\n\n<tr>\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-bottomleft-1
0x10.gif"><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n<td height=10
background="http://www.hksi.net/subliminalflasher/images/shadow-bottom-10x10
gif" valign=bottom align=center><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n<td width=10
background="http://www.hksi.net/subliminalflasher/images/shadow-bottomright-
10x10.gif"><img
src="http://www.hksi.net/subliminalflasher/images/clearspacer.gif"; width=10
height=10 alt="" border="0"></td>\n</tr>\n</table>\n</form>\n\n\n\n\n');

                
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to