[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] v3.14 extracting [value mv_searchspec]
****** message to minivend-users from "Humberto T Reyes" <htreyes@earthlink.net> ******
I believe Ed is right--here is what I use(I found most of this in the mail
list):
-----------------------------------------------------------
[perl arg=values interpolate=1]
my($msg1)='[scratch search_string]';
my(@items)=split (/\0/, $msg1);
$Safe{'values'}{'se_1'} = $items[0];
$Safe{'values'}{'se_2'} = $items[1];
$Safe{'values'}{'se_3'} = $items[2];
$Safe{'values'}{'se_4'} = $items[3];
$Safe{'values'}{'se_5'} = $items[4];
$Safe{'values'}{'se_6'} = $items[5];
$Safe{'values'}{'se_7'} = $items[6];
return '';
[/perl]
---------------------------------------------------------
I can then use [value se_1]...as needed.
Hope that helps...
Humberto Reyes
htreyes@earthlink.net
----- Original Message -----
From: "Ed LaFrance" <edlafrance@printexusa.com>
To: <minivend-users@minivend.com>
Sent: Tuesday, February 15, 2000 9:01 AM
Subject: Re: [mv] v3.14 extracting [value mv_searchspec]
> ****** message to minivend-users from Ed LaFrance
<edlafrance@printexusa.com> ******
>
> Brent - I think you need to use the INTERPOLATE=1 option on your [perl]
> tag. I believe this will force minivend to evaluate '[value
> mv_searchspec]' instead of treating it as a literal string.
>
> - Ed L.
>
> >****** message to minivend-users from "Brent Worley" <brent@12ave.com>
> >******
> >
> >I appreciate the help thus far, but I have ran into a slight problem. I
> >have built up mv_searchspec over several pages using javascript to
seperate
> >the individual values by spaces:
> >
> >function SetArgs()
> > {
> > var frm = document.mv_value;
> > frm.mv_searchspec.value = "Sansabelt" + " " + frm.waist.value + " " +
> >frm.stride.value;
> > }
> >
> >I've used code similar to this on all the pages. When I get to the last
> >page I am trying to extract the individual values using perl:
> >
> >[perl scratch]
> > my $msg = '[value mv_searchspec]';
> > my @test = split(/\0/, $msg);
> > $Safe{'scratch'}{'Manuf'}=@test[0];
> > $Safe{'scratch'}{'Waist'}=@test[1];
> > $Safe{'scratch'}{'Stride'}=@test[2];
> > $Safe{'scratch'}{'Fabric'}=@test[3];
> >[/perl]
> >
> >I've found code like this within the list archives and have yet to find
> >anything that works. This is what happens: Within this last page, I
dump
> >all the scratch variables to the page to see what each array element was
set
> >to. Instead of returning what is in mv_searchspec I return [value
> >mv_searchspec] (<- that is what is actually displayed on the page). I've
> >tried other types of delimiters, but to no avail. This is the last part
of
> >a very lengthy and important project, and I hate to know I've come this
far
> >and cannot get pass one minor detail. I'm not sure of the version of
perl,
> >but I think it is fairly recent. Any help anyone can offer will be
greatly
> >appreciated.
> >
> >
> >Brent Worley
> >
> >-
> >To unsubscribe from the list, DO NOT REPLY to this message. Instead,
send
> >email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
> >Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
>
> -
> PRINTEX Marking Technologies
> 12113 Kirkham Rd.
> Poway, CA 92064 U.S.A.
> (858) 513-2418
> (800) 982-1928
> (858) 513-2419 fax
> edlafrance@printexusa.com
> http://www.printexusa.com
>
>
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list