Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Javascript and *.asc databases



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

At 08:41 AM 2/1/2000 , you wrote:
>******    message to minivend-users from "Brent Worley" 
><brent@12ave.com>     ******
>
>I am implementing a javascript function which is to load drop down boxes on
>the fly.  I am trying to avoid hard-coding any of the products.  This is the
>command that is giving me problems:
>
>var colors = new Array([loop search=ItemSearch]"[loop-field
>color]","[loop-field fabrics]",[/loop]);

Well, MiniVend will only interpolate those [] commands once when the page 
is loaded, so as far as "on the fly" is concerned I don't see Javascript 
giving you any more functionality over just "plain" MiniVend.  MV does a 
fantastic job of dynamically creating drop-downs.

I'm not a Javascript expert, but your syntax doesn't look right.  That's 
probably just a typo.


>I am trying to loop through the two database fields and extract the
>information there to an arrary.  However, the problem that I have run into
>deals with the colors.  When the array is loaded it should appear as:
>
>"COLOR","FABRIC","COLOR","FABRIC","COLOR","FABRIC", etc....
>
>However, it is returning all the colors grouped togeter as they are in the
>database:
>
>"COLOR,COLOR,COLOR,COLOR.....","FABRIC,FABRIC,FABRIC...."
>
>I am not sure if it is even possible to do what I am trying to do, but if
>anyone has any suggestions on how to correct this problem it would be
>greatly appreciated.

Anything is possible!  The MiniVend syntax that you're using is working 
correctly.  It reads to me like: For the current matching item, loop 
through all the colors in it's field, loop through all the fabrics in it's 
field.  Though, I'm not sure what is in 'ItemSearch' -- you may be running 
into a case of multiple matches, or something as well.

Before pounding your head on this Javascript, look into what MiniVend can 
do for you.  And besides, when I want to purchase something from your 
website with my cell phone will I get shafted because it doesn't run 
Javascript?



>Brent
>12th Avenue Systems
>brent@12ave.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


Ryan Hertz                                              tel  800-645-BAIT
Webmaster                                               fax  520-645-2588
Advertising Director                            http://www.insideline.net
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.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


Search for: Match: Format: Sort by: