Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103472
interpreted = N
texte = Another good idea. Hmm.. I'm going to have to let the client's budget dictate what I actually do.. but I like the creativity here! And thanks for this code, and that keygen is slick too! (I take it you did not ever need for the SWF file that you dump out with [returnraw] to auto-play? I keep thinking (without actually knowing) that it is just a matter of tweaking/adding one header in that [returnraw] context.. I will post it here if I ever get to that and figure it out.) -Govinda On Aug 26, 2009, at 11:31 AM, Dan Strong wrote: > You could also just periodically change the name of the file(s), or > maybe even easier -- the folder, that the .swf's live in. I do that > with a
of mine to prevent spam and it works. Basically, I > name the landing page that the form submits to with a timestamp and > a random code (_676543332987-xYhUWQ2.html), and whenever the form > page is loaded (this way no need for triggers and is only fired when > needed, saving server resources) I do a check on the landing page > and if enough time has passed, I change the name. > > Similar to this: > --------------------- > [!]-- filename looks like this: "_676543332987-xYhUWQ2.html" --[/!] > [text]now=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/ > math])[/math][/text] > [text]keyGen=[include ^keyMaker.txt][/text] [!]-- See: http://www.webdna.us/page.dna?numero=49 > --[/!] > > [listFiles path=/whereever/your/stuff/is/] > [showif [filename]~_] > [showif [math][now]-[middle startafter=_&endbefore=-][filename][/ > middle][/math]>3600][!]-- Change interval in seconds, in this case > 1hr --[/!] > [moveFile from=[filename]&to=_[now]-[keyGen].html] > [/showif] > [/showif] > [/listFiles] > 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 SWF directly in the browser? (Govinda 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 SWF directly in the browser? (Patrick McCormick 2009)
  6. Re: [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
  7. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? ("Terry Nair" 2009)
  8. [WebDNA] OT? - how to get webdna to tell browser to open SWF directly in the browser? (Govinda 2009)
Another good idea. Hmm.. I'm going to have to let the client's budget dictate what I actually do.. but I like the creativity here! And thanks for this code, and that keygen is slick too! (I take it you did not ever need for the SWF file that you dump out with [returnraw] to auto-play? I keep thinking (without actually knowing) that it is just a matter of tweaking/adding one header in that [returnraw] context.. I will post it here if I ever get to that and figure it out.) -Govinda On Aug 26, 2009, at 11:31 AM, Dan Strong wrote: > You could also just periodically change the name of the file(s), or > maybe even easier -- the folder, that the .swf's live in. I do that > with a of mine to prevent spam and it works. Basically, I > name the landing page that the form submits to with a timestamp and > a random code (_676543332987-xYhUWQ2.html), and whenever the form > page is loaded (this way no need for triggers and is only fired when > needed, saving server resources) I do a check on the landing page > and if enough time has passed, I change the name. > > Similar to this: > --------------------- > [!]-- filename looks like this: "_676543332987-xYhUWQ2.html" --[/!] > [text]now=[math]((([math]{[date]}[/math])-1)*86400)+([math]{[time]}[/ > math])[/math][/text] > [text]keyGen=[include ^keyMaker.txt][/text] [!]-- See: http://www.webdna.us/page.dna?numero=49 > --[/!] > > [listFiles path=/whereever/your/stuff/is/] > [showif [filename]~_] > [showif [math][now]-[middle startafter=_&endbefore=-][filename][/ > middle][/math]>3600][!]-- Change interval in seconds, in this case > 1hr --[/!] > [moveFile from=[filename]&to=_[now]-[keyGen].html] > [/showif] > [/showif] > [/listFiles] > Govinda

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:

redirect within a showif (1998) HTML encoding in URLs (1997) RAM variables (1997) Re[2]: Search Engines (2000) Re:Signal Raised (1997) WCS Newbie question (1997) Big Databases (1997) Hard Questions ? (1997) Bookmarked URL with cart (1998) calculating tax rates, mail order solutions and version 2 (1997) Listfiles on network with NT (2000) WebCatalog 2.0 b 15 mac (1997) Locking up with WebCatalog... (1997) Further tests with the infamous shipCost (1997) CART question (2004) Prices coming up 0.00 (2001) A question on sub-categories (1997) no [search] with NT (1997) SSL (1998) Bug or syntax error on my part? (1997)