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:

The max=0 issue is a bug ... (2000) Getting Total Quantity (1997) Embedded [Search] Context Snippets (Very Useful) (1998) Use of Back and Reload Buttons on ShoppingCart page? (1997) Don't do this! (2003) Major Security Hole IIS NT (1998) how to check for no value while using [URL] to prevent cr (1999) [closeDataBase myDataBase.db] not working? (1997) using listfiles to build a database? more (2000) WebCatalog for guestbook ? (1997) Bug in 4.5 - Needs to be fixed ASAP. (2002) Stopping bad HTML propagation ? (1997) Looking up two prices in database? (1997) Math Blind (2000) [WebDNA] 2 cookies, same name different value (2016) Printing a final order (1997) Running 2 two WebCatalog.acgi's (1996) japanese characters (1997) randomness (1997) WebCat2 - [format thousands] (1997)