Re: object tag examples

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 57889
interpreted = N
texte = Sal I have only had a couple of tasks with Object and I am no expert on this or VBS however my thoughts: As the .dll is the engine for this you may need a simple VB script where you pass the directory that you want zipped to it and also the destination, the VB Script will then use the .dll to do the job. If you register the script you will be able to call it directly from the object tag without the full path. The VBS may include the second part for you as well. Something like this may help [OBJECT objname=CompressBackup&call=CompressionFunction¶m1=stuff_to_compress ¶m1type=text¶m2=where_to_put_it¶m2type=text][/OBJECT] On 18 May 2004, at 04:36 AM, Sal wrote: > Thanks Stuart. > > I am trying to call XZip.dll to zip up my backup file and then use the > [DOS] > tag to run the ftp script to send it to another server. I have a > trigger > setup to run this template every night after the backup is complete. > > This is the example from XZip.dll > > <% > Dim objGZip > > > Set objGZip = Server.CreateObject("XStandard.GZip") > objGZip.Compress "C:\Temp\Images", "C:\Temp\images.tar.gz" > > > Set objGZip = Nothing > %> > > I can't figure out how to do the same in WebDNA. > > Any ideas? > > Salvatore B. D'Anna > DotNetNuke Hosting > V:(619)306-7606 > F: (619)374-2268 > http://DotNetNukeHosting.com > > > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Stuart Tremain > Sent: Sunday, May 16, 2004 6:37 PM > To: WebDNA Talk > Subject: Re: object tag examples > > Sal > > A straight cut and paste from a working template, I'm sure that you can > sort out the sheep from the goats :) > > This calls a java object, but they all work the same way, you may need > to put in the path to the script if it is not registered. Make sure > that there are no line breaks in your code. > > [OBJECT objname=IDFKPayment.PaymentGateway > &call=AddPayment&type=0¶m1=[GetChars > start=6&end=15][ThisOrder][/ > GetChars]¶m1type=text¶m2=[URL][Header20][/ > URL]¶m2type=text¶m3=[ccnumber]¶m3type=text¶m4=[Format > .2d][expmonth][/Format][Expyear]¶m4type=text¶m5=[format > .2f][SaleTotal][/ > Format]¶m5type=text¶m6=payments@idfk.com.au¶m6type=text&par > a > m7=[URL][/URL]¶m7type=text¶m8=[URL][address1][/ > URL]¶m8type=text¶m9=¶m9type=text¶m10=[URL][city][/ > URL]¶m10type=text¶m11=[URL][state][/ > URL]¶m11type=text¶m12=[URL][country][/ > URL]¶m12type=text¶m13=[URL][zip][/URL]¶m13type=text][/ > OBJECT] > > > On 15 May 2004, at 08:18 AM, Sal wrote: > >> Does anyone have some examples of using the [object] tag to call >> activex >> components or a list of possible commands other than call and set? >> >> >> Salvatore B. D'Anna >> DotNetNuke Hosting >> V:(619)306-7606 >> F: (619)374-2268 >> http://DotNetNukeHosting.com >> >> >> >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> > Regards > > Stuart Tremain > idfk web developments > 114a/40 yeo street neutral bay 2089 australia > t +612 9908 2134 > f +612 9908 4837 > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > __________ NOD32 1.762 (20040516) Information __________ > > This message was checked by NOD32 Antivirus System. > http://www.nod32.com > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: object tag examples ( Stuart Tremain 2004)
  2. Re: object tag examples ( "Sal" 2004)
  3. Re: object tag examples ( Stuart Tremain 2004)
  4. object tag examples ( "Sal" 2004)
Sal I have only had a couple of tasks with Object and I am no expert on this or VBS however my thoughts: As the .dll is the engine for this you may need a simple VB script where you pass the directory that you want zipped to it and also the destination, the VB Script will then use the .dll to do the job. If you register the script you will be able to call it directly from the object tag without the full path. The VBS may include the second part for you as well. Something like this may help [OBJECT objname=CompressBackup&call=CompressionFunction¶m1=stuff_to_compress ¶m1type=text¶m2=where_to_put_it¶m2type=text][/OBJECT] On 18 May 2004, at 04:36 AM, Sal wrote: > Thanks Stuart. > > I am trying to call XZip.dll to zip up my backup file and then use the > [DOS] > tag to run the ftp script to send it to another server. I have a > trigger > setup to run this template every night after the backup is complete. > > This is the example from XZip.dll > > <% > Dim objGZip > > > Set objGZip = Server.CreateObject("XStandard.GZip") > objGZip.Compress "C:\Temp\Images", "C:\Temp\images.tar.gz" > > > Set objGZip = Nothing > %> > > I can't figure out how to do the same in WebDNA. > > Any ideas? > > Salvatore B. D'Anna > DotNetNuke Hosting > V:(619)306-7606 > F: (619)374-2268 > http://DotNetNukeHosting.com > > > > > -----Original Message----- > From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of > Stuart Tremain > Sent: Sunday, May 16, 2004 6:37 PM > To: WebDNA Talk > Subject: Re: object tag examples > > Sal > > A straight cut and paste from a working template, I'm sure that you can > sort out the sheep from the goats :) > > This calls a java object, but they all work the same way, you may need > to put in the path to the script if it is not registered. Make sure > that there are no line breaks in your code. > > [OBJECT objname=IDFKPayment.PaymentGateway > &call=AddPayment&type=0¶m1=[GetChars > start=6&end=15][ThisOrder][/ > GetChars]¶m1type=text¶m2=[url][Header20][/ > URL]¶m2type=text¶m3=[ccnumber]¶m3type=text¶m4=[Format > .2d][expmonth][/Format][Expyear]¶m4type=text¶m5=[format > .2f][SaleTotal][/ > Format]¶m5type=text¶m6=payments@idfk.com.au¶m6type=text&par > a > m7=[url][/URL]¶m7type=text¶m8=[url][address1][/ > URL]¶m8type=text¶m9=¶m9type=text¶m10=[url][city][/ > URL]¶m10type=text¶m11=[url][state][/ > URL]¶m11type=text¶m12=[url][country][/ > URL]¶m12type=text¶m13=[url][zip][/URL]¶m13type=text][/ > OBJECT] > > > On 15 May 2004, at 08:18 AM, Sal wrote: > >> Does anyone have some examples of using the [object] tag to call >> activex >> components or a list of possible commands other than call and set? >> >> >> Salvatore B. D'Anna >> DotNetNuke Hosting >> V:(619)306-7606 >> F: (619)374-2268 >> http://DotNetNukeHosting.com >> >> >> >> >> >> >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >> >> > Regards > > Stuart Tremain > idfk web developments > 114a/40 yeo street neutral bay 2089 australia > t +612 9908 2134 > f +612 9908 4837 > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > __________ NOD32 1.762 (20040516) Information __________ > > This message was checked by NOD32 Antivirus System. > http://www.nod32.com > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ > > Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Stuart Tremain

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:

RE: incrementing a counter remotely? (1999) Possible Bug in 2.0b15.acgi (1997) WebCat2b12 - New features for 1.6 users ... (1997) WebMerchant and PC Auth Hub (1999) SOP for WebDNA talk (2004) Encyption mail was Suggestions for Topics ... (1998) PIXO support (1997) Setting up shop (1997) [sendmail] and [formvariables] (1997) syntax question, not in online refernce (1997) choice of images (2000) Problems with sql: "not supported" (2005) question: search return in order (1997) OT: SourceForge (2005) SET (1998) WebCatalog can't find database (1997) Need relative path explanation (1997) Some Advise needed (1997) Searchable WebCat (etc.) Docs ? (1997) Username for Admin Group (1997)