Re: [WebDNA] OT? - how to get webdna to tell browser to open

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103473
interpreted = N
texte = No, in my case I was dumping out 'protected' PDFs, so that code worked we= ll enough. That part of=20 the project ended up getting scrapped though, so my testing didn't go any= further than my WinXP=20 Home dev box. -Dan On Wed, 26 Aug 2009 14:03:25 -0600 Govinda wrote: > Another good idea. Hmm.. > I'm going to have to let the client's budget dictate what I actually d= o.. but I like the=20 >creativity here! And thanks for this code, and that keygen is slick t= oo! > (I take it you did not ever need for the SWF file that you dump out wi= th [returnraw] to=20 >auto-play? I keep thinking (without actually knowing) that it is just= a matter of=20 >tweaking/adding one header in that [returnraw] context.. I will post = it here if I ever get to=20 >that and figure it out.) >=20 > -Govinda >=20 > On Aug 26, 2009, at 11:31 AM, Dan Strong wrote: >=20 >> You could also just periodically change the name of the file(s), or =20 >> maybe even easier -- the folder, that the .swf's live in. I do that =20 >> with a
of mine to prevent spam and it works. Basically, I =20 >> name the landing page that the form submits to with a timestamp and =20 >> a random code (_676543332987-xYhUWQ2.html), and whenever the form =20 >> page is loaded (this way no need for triggers and is only fired when =20 >> needed, saving server resources) I do a check on the landing page =20 >> and if enough time has passed, I change the name. >> >> Similar to this: >> --------------------- >> [!]-- filename looks like this: "_676543332987-xYhUWQ2.html" --[/!] >> [text]now=3D[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[= /=20 >> math])[/math][/text] >> [text]keyGen=3D[include ^keyMaker.txt][/text] [!]-- See: http://www.we= bdna.us/page.dna?numero=3D49=20 >> --[/!] >> >> [listFiles path=3D/whereever/your/stuff/is/] >> [showif [filename]~_] >> [showif [math][now]-[middle startafter=3D_&endbefore=3D-][filename][/=20 >> middle][/math]>3600][!]-- Change interval in seconds, in this case =20 >> 1hr --[/!] >> [moveFile from=3D[filename]&to=3D_[now]-[keyGen].html] >> [/showif] >> [/showif] >> [/listFiles] >> >=20 >=20 >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor= y=3D288 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  2. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? ("Terry Nair" 2009)
  3. Re: [WebDNA] OT? - how to get webdna to tell browser to open ("Dan Strong" 2009)
  4. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  5. Re: [WebDNA] OT? - how to get webdna to tell browser to open ("Dan Strong" 2009)
  6. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  7. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Patrick McCormick 2009)
  8. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  9. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? ("Terry Nair" 2009)
  10. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
No, in my case I was dumping out 'protected' PDFs, so that code worked we= ll enough. That part of=20 the project ended up getting scrapped though, so my testing didn't go any= further than my WinXP=20 Home dev box. -Dan On Wed, 26 Aug 2009 14:03:25 -0600 Govinda wrote: > Another good idea. Hmm.. > I'm going to have to let the client's budget dictate what I actually d= o.. but I like the=20 >creativity here! And thanks for this code, and that keygen is slick t= oo! > (I take it you did not ever need for the SWF file that you dump out wi= th [returnraw] to=20 >auto-play? I keep thinking (without actually knowing) that it is just= a matter of=20 >tweaking/adding one header in that [returnraw] context.. I will post = it here if I ever get to=20 >that and figure it out.) >=20 > -Govinda >=20 > On Aug 26, 2009, at 11:31 AM, Dan Strong wrote: >=20 >> You could also just periodically change the name of the file(s), or =20 >> maybe even easier -- the folder, that the .swf's live in. I do that =20 >> with a of mine to prevent spam and it works. Basically, I =20 >> name the landing page that the form submits to with a timestamp and =20 >> a random code (_676543332987-xYhUWQ2.html), and whenever the form =20 >> page is loaded (this way no need for triggers and is only fired when =20 >> needed, saving server resources) I do a check on the landing page =20 >> and if enough time has passed, I change the name. >> >> Similar to this: >> --------------------- >> [!]-- filename looks like this: "_676543332987-xYhUWQ2.html" --[/!] >> [text]now=3D[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[= /=20 >> math])[/math][/text] >> [text]keyGen=3D[include ^keyMaker.txt][/text] [!]-- See: http://www.we= bdna.us/page.dna?numero=3D49=20 >> --[/!] >> >> [listFiles path=3D/whereever/your/stuff/is/] >> [showif [filename]~_] >> [showif [math][now]-[middle startafter=3D_&endbefore=3D-][filename][/=20 >> middle][/math]>3600][!]-- Change interval in seconds, in this case =20 >> 1hr --[/!] >> [moveFile from=3D[filename]&to=3D_[now]-[keyGen].html] >> [/showif] >> [/showif] >> [/listFiles] >> >=20 >=20 >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&categor= y=3D288 "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

SetHeader not Working (2006) writing orders to a db (1997) all records returned. (1997) Date search - yes or no (1997) Help formatting search results w/ table (1997) Country & Ship-to address & other fields ? (1997) Email within tmpl ? (1997) Merging databases (1997) Location of Browser Info.txt file (1997) Append File help needed: example (2000) Error: Too many nested [xxx] contexts (1997) The & Problem (1998) Word search (1997) [WebDNA] SEARCH question (2011) Multiple Replaces (1997) Archive Problem (2000) Great product and great job ! (1997) Using Plug-In while running 1.6.1 (1997) SMSI: closedatabase then replacefounditems inside the samesearch context ... (2002) Bug? (1997)