[ic] RE: Interchange-users digest, Vol 1 #496 - 13 msgs

Jody Aadland interchange-users@lists.akopia.com
Thu May 10 12:59:01 2001


Please remove me from this list.  Thanks and good day.

Jody Aadland


-----Original Message-----
From: interchange-users-request@lists.akopia.com
[mailto:interchange-users-request@lists.akopia.com]
Sent: Thursday, May 10, 2001 1:27 AM
To: interchange-users@lists.akopia.com
Subject: Interchange-users digest, Vol 1 #496 - 13 msgs


Send Interchange-users mailing list submissions to
	interchange-users@lists.akopia.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.akopia.com/mailman/listinfo/interchange-users
or, via email, send a message with subject or body 'help' to
	interchange-users-request@lists.akopia.com

You can reach the person managing the list at
	interchange-users-admin@lists.akopia.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Interchange-users digest..."


Today's Topics:

   1. mysql help? (Gift Bound Gifts)
   2. Re: mv_click (Bill Randle)
   3. Debian problems (=?iso-8859-1?q?V=EDctor=20Romero?=)
   4. Re: mysql help? (Dan B)
   5. Re: mv_click (cfm@maine.com)
   6. Re: Forms validation (Jean-Pierre Parent)
   7. Re: mv_click (Bill Randle)
   8. Can a dropdown menu be put in Results.html (Australian NetLink)
   9. Dropdown menu works (Australian NetLink)
  10. bug issue in interchange 4.7.2 (Gift Bound Gifts)
  11. Help! Checked the FAQ and search archives but still clueless! (Ken
Payne)
  12. Re: Help! Checked the FAQ and search archives but still clueless!
(Jason Ballou)
  13. Re: Debian problems (Dennis Schoen)

--__--__--

Message: 1
Date: Wed, 09 May 2001 16:26:30 -0400
From: Gift Bound Gifts <giftbound1@home.com>
To: interchange-users@lists.akopia.com
Subject: [ic] mysql help?
Reply-To: interchange-users@lists.akopia.com

my hosting company tells me i need to put this line in to connect to mysql

mysql -h hostsite -u username -p password. Question is in makecat where 
do i put this at?


--__--__--

Message: 2
From: "Bill Randle" <billr@exgate.tek.com>
Date: Wed, 9 May 2001 14:56:35 -0700
To: interchange-users@lists.akopia.com
Subject: Re: [ic] mv_click
Reply-To: interchange-users@lists.akopia.com

On May 9,  3:46pm, JoshNarins@aol.com wrote:
} Subject: Re: [ic] mv_click
}
} Ed LaFrance <edl@newmediaems.com> wrote...
}
} }Your right. It seems that the input type 'image' does not recognize a
name
} }or value attribute - though browsers will be tolerant if you give if
} }one.  You will have to resort to a 'click_map' or a javascript trick (see
} }the 'Checkout' button on the construct demo basket page) for this.  Take
a
} }look at the docs on Forms (Interchange Templates is the correct section,
I
} }think) for info on click maps.
}
} Which is where I will be going, but I thought I'd mention that the
} following does not work.
}
} }Try setting your mv_click value as a hidden field in the form. E.g.:
} }
} }     <INPUT TYPE=hidden NAME=mv_click VALUE="Check for Number">
} }
} } Then name your mv_click block:
} }
} }     [set Check for Number]
} }       [perl]
} }          # your perl code
} }       [/perl]
} }     [/set]

I just ran a test on this and it really does work - at least with
Minivend 4.04. I took an existing, known working form and modified
it slightly to use an image instead of a text submit button.

I used feedback.html from the mv4 "simple" demo and made the
following simple changes:

37c37
<       [if !value feedback_message]
---
>       [if !cgi feedback_message]
40c40
<       [elsif !value feedback_subject]
---
>       [elsif !cgi feedback_subject]
65c65
< <INPUT TYPE=hidden NAME=mv_check VALUE=check_form>
---
> <INPUT TYPE=hidden NAME=mv_click VALUE=check_form>
73c73
< : <INPUT TYPE=submit VALUE=Send>
---
> : <INPUT TYPE=image SRC="new.png">

which effectively changes a mv_check into a mv_click (just so we're
talking apples and apples) and replaces the submit button with a
handy image.

I then loaded the feedback.html page, entered some text, leaving the
email and message fields blank, and clicked on the "new" image.
Minivend properly displayed the form page with text (in red) at
the top of the page telling me to enter a message. To me, this
means it worked.

Now I haven't looked at the latest Interchange demos, but I'll refer
you to the results.html page in the IC 4.6.3 "construct" demo. That
page uses a hidden input type to set the mv_click value to pre-process
the form results. This page uses a standard submit button, rather
than an image, but unless something changed between mv4 and IC4.6 in
the way forms are processed, it should work equally well using an
image.

Note that I'm not commenting on whether your Perl script is
correct or not - only on being able to invoke a mv_click method
using a image as a submit button.

As another person said earlier, make sure your basic processing is
working correctly first, then change the text submit button to an
image. Everything should continue to work just fine.

} And, for completeness, in case you joined us more lately, the original
} question...
} }}
} }} Subject: [ic] mv_click
} }}
} }} I am trying to adjust the main Search function in the Templates.
} }}
} }} I'd like, if the user enters a number, to limit the mv_search_field to
just
} }} the SKU field in that case.
} }}
} }} In Perl, it seems that is as simple as,
} }}   if ( $CGI_array->{'mv_searchspec'}[1] =~ /^\d+$/ ) {
} }}     $CGI_array->{'mv_search_field'}[1] = "sku";
} }}   }
} }}
} }} And it seems like I am supposed to use mv_click to make it happen.
} }}
} }} The problem is that the submit button is an image, and even when I name
} }} it mv_click, it does not seem to execute the code wrapped in...
} }} [set mv_click]
} }}  [perl]
} }}    Perl code mentioned above.
} }}  [/perl]
} }} [/set]
} }}
} }} Am I correct in trying to set this up in the templates?
} }} I would imagine pages/results.html would be too late to try to change
} }} something like mv_search_field...

	-Bill

P.S. Don't name your image "mv_click", either.

--__--__--

Message: 3
From: =?iso-8859-1?q?V=EDctor=20Romero?= <romero@kde.org>
To: interchange-users@lists.akopia.com
Date: Thu, 10 May 2001 00:09:41 +0200
Subject: [ic] Debian problems
Reply-To: interchange-users@lists.akopia.com


	Im just instaled Interchange in debian sid, and followed the
instructions of /usr/share/doc/interchange

		but I get this when try to login into the shop :

			No responseWe're sorry, the Interchange server is
unavailable... We are out of service or may be experiencing high system
demand, please try again soon.

		The error.log reports this :

			[10/mayo/2001:00:05:24 +2600] - - STOP server (4894)
on signal TERM
- - - [10/mayo/2001:00:05:26 +2600] - - Low traffic settings.
- - - [10/mayo/2001:00:05:26 +2600] - - Calling UI....
- - - [10/mayo/2001:00:05:26 +2600] - - ...UI is loaded....
- - - [10/mayo/2001:00:05:26 +2600] - - Interchange V4.6.5
- - - [10/mayo/2001:00:05:26 +2600] - - Config 'construct' at server startup
- - - [10/mayo/2001:00:05:26 +2600] - - Using default DBM database.
- - - [10/mayo/2001:00:05:26 +2600] - - START server (5175) (INET and UNIX)
- - - [10/mayo/2001:00:05:27 +2600] - - Accepting connections from
localhost|127\.0\.0\.1
- - - [10/mayo/2001:00:05:27 +2600] - - START server (5181) (INET and UNIX)


		So, dont know wheres the problem ;'(

	Greetings

--__--__--

Message: 4
Date: Wed, 09 May 2001 15:38:03 -0700
To: interchange-users@lists.akopia.com
From: Dan B <db@cyclonehq.dnsalias.net>
Subject: Re: [ic] mysql help?
Reply-To: interchange-users@lists.akopia.com

At 04:26 PM 5/9/2001 -0400, you wrote:
>my hosting company tells me i need to put this line in to connect to mysql
>
>mysql -h hostsite -u username -p password. Question is in makecat where do 
>i put this at?

The above could be used at the command prompt to access the MySQL database 
with their console front end.  What you really need is to discover the 
correct  DBI connection string, and put it in catalog.cfg (which has a 
simple format and should be easy to find where it goes with a little
browsing).

Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com


--__--__--

Message: 5
From: cfm@maine.com
Date: Wed, 9 May 2001 18:46:23 -0400
To: interchange-users@lists.akopia.com
Subject: Re: [ic] mv_click
Reply-To: interchange-users@lists.akopia.com

On Wed, May 09, 2001 at 02:56:35PM -0700, Bill Randle wrote:
> On May 9,  3:46pm, JoshNarins@aol.com wrote:
> } Subject: Re: [ic] mv_click
> }
> } Ed LaFrance <edl@newmediaems.com> wrote...
> }
> } }Your right. It seems that the input type 'image' does not recognize a
name
> } }or value attribute - though browsers will be tolerant if you give if
> } }one.  You will have to resort to a 'click_map' or a javascript trick
(see
> } }the 'Checkout' button on the construct demo basket page) for this.
Take a
> } }look at the docs on Forms (Interchange Templates is the correct
section, I
> } }think) for info on click maps.
> }
> } Which is where I will be going, but I thought I'd mention that the
> } following does not work.
> }
> } }Try setting your mv_click value as a hidden field in the form. E.g.:
> } }
> } }     <INPUT TYPE=hidden NAME=mv_click VALUE="Check for Number">
> } }
> } } Then name your mv_click block:
> } }
> } }     [set Check for Number]
> } }       [perl]
> } }          # your perl code
> } }       [/perl]
> } }     [/set]
> 
> I just ran a test on this and it really does work - at least with
> Minivend 4.04. I took an existing, known working form and modified
> it slightly to use an image instead of a text submit button.

Seems to me that what you are doing with the hidden variable is **always**
setting mv_click and that in turn runs the perl.  Couldn't you just
use a profile for this?



-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Content management, electronic commerce, internet integration, Debian linux

--__--__--

Message: 6
From: "Jean-Pierre Parent" <parentjp@videotron.ca>
To: <interchange-users@lists.akopia.com>
Subject: Re: [ic] Forms validation
Date: Wed, 9 May 2001 19:01:14 -0400
Reply-To: interchange-users@lists.akopia.com

> On Tue, May 08, 2001 at 11:11:38PM -0400, IC-Admin wrote:
> > >
> > > I just wanted to point out that this very small subset of the
> > > possibilities allows us to do everything.  It used to bother
> > > me that I did not know the differences between all the various
> > > options.  :-)
> > >
> > > cfm
> > >
> >
> > I mean, if both, you and Dan Browning, are commenting this way,
> > I really wonder, why either the documenters or developers don't
> > try to write something up, which makes it a little bit clearer.
> >
> > Contrary to you, I haven't even seriously tried, because in
> > my case it just doesn't make sense to do so. But it always bothers me
> > if old timers like you both, are making those comments. It
> > makes me believe you have valid reasons to say so, and I think
> > they should be taken into account.
> >
> > Let's hope, someone from the documentation team, thinks the same
> > way or at least understands what you think is missing.
> >
>
> Vend -> minivend -> ic is now a huge animal.  We developed an early
> taste for a few choice parts and they work just fine.  The rest we
> leave.
>
> Don't read that to mean there is a problem with the documentation.  It
> means that there is more than one way to do it.  TIMTOWTDI.  That
> was what I wanted to point out more than anything.
>
> cfm

>> BF

How do you avoid using forms? =)

While still using a database and input from clients of course *grin*.

My point is I need to know how it works. I know I'll do it with months
of playing and the actual documentation but time is an issue for most of us.

If you got the knowledge please pass it on...For my part i'll gladly take
over
for others if you dont feel like doing it on large scale...

J.-P. (aka Izo on #interchange@irc.vensnews.com)

> > > > >
> > > > >It looks like a completely different approach...
> > > > >
> > > > >If someone thinks he can write something on the subject PLEASE use
me as a
> > > > >cobaye as I'm sure others will benefit a lot from this.
> > > > >
> > > > >Thank you.
> > > > >
> > > > >J.-P.
> > > >
> > > > Yes, J.-P., I hope as well that someone will be inspired to write
> > > > "Introduction to Forms the Interchange Way 101".
> > > >
> > > > Barring that, the following reading might be a great primer:
> > > >
> > > > http://developer2.akopia.com/cgi-bin/ic/dev/ictemplates_26.html
> > > >
> > > > http://developer2.akopia.com/cgi-bin/ic/dev/iccattut_34.html
> > > >
> > > > http://developer2.akopia.com/cgi-bin/ic/dev/iccattut_37.html
> > > >
> > > > http://developer2.akopia.com/cgi-bin/ic/dev/icdatabase_44.html
> > > >
> > > > Later,
> > > >
> > > > Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com
> > > >
> > > >



--__--__--

Message: 7
From: "Bill Randle" <billr@exgate.tek.com>
Date: Wed, 9 May 2001 16:59:56 -0700
To: interchange-users@lists.akopia.com
Subject: Re: [ic] mv_click
Reply-To: interchange-users@lists.akopia.com

On May 9,  6:46pm, cfm@maine.com wrote:
} Subject: Re: [ic] mv_click
} On Wed, May 09, 2001 at 02:56:35PM -0700, Bill Randle wrote:
} > On May 9,  3:46pm, JoshNarins@aol.com wrote:
} > } Subject: Re: [ic] mv_click
[snip]
} > } Which is where I will be going, but I thought I'd mention that the
} > } following does not work.
} > }
} > } }Try setting your mv_click value as a hidden field in the form. E.g.:
} > } }
} > } }     <INPUT TYPE=hidden NAME=mv_click VALUE="Check for Number">
} > } }
} > } } Then name your mv_click block:
} > } }
} > } }     [set Check for Number]
} > } }       [perl]
} > } }          # your perl code
} > } }       [/perl]
} > } }     [/set]
} >
} > I just ran a test on this and it really does work - at least with
} > Minivend 4.04. I took an existing, known working form and modified
} > it slightly to use an image instead of a text submit button.
}
} Seems to me that what you are doing with the hidden variable is **always**
} setting mv_click and that in turn runs the perl.  Couldn't you just
} use a profile for this?

Yes, it will always run the mv_click block when the form is submitted.
I guess it depends on the design of the form and the alternative actions
a user can take, if any. I don't really know anything about the application
Josh was writing about.

It may be that using a search profile would work - especially in IC where,
if I remember correctly what I read, the use of profiles has been extended
somewhat over MV.

	-Bill



--__--__--

Message: 8
Date: Thu, 10 May 2001 11:03:58 +1000
To: interchange-users@lists.akopia.com
From: Australian NetLink <kxue@netlink.com.au>
Subject: [ic] Can a dropdown menu be put in Results.html
Reply-To: interchange-users@lists.akopia.com

Hi, list,

I tried to put a dropdown menu in results.html page:

Code one:

[if-item-data products color]
    <font face="Arial" size="2"><b><font color=804000>COLOR:</b></font>
    [item-accessories color] 
     [comment] 
       I understand this code should work between [item-list] and
[/item-list]
     [/comment]
[else]
[/else]
[/if-item-data]

Code two:

[if data products::color::[item-code]]
    <SELECT name="mv_order_color" size="1">
         [loop delimiter="," arg=[item-field color]]
              <OPTION value="[loop-code]">[loop-code]</OPTION>
         [/loop]
    </SELECT>
[/if]

However, none of them gives me a dropdown menu, but only a list.

How can I get a dropdown menu in results.html page?

Thanks,

Kathy

PS. cods is put between [search-list][/search-list].



-------------------------------------
 A u s t r a l i a n   N e t L i n k
 Phone:   (03) 9690 0660
 Fax:     (03) 9690 0668
 Email:   web@netlink.com.au
 Website: www.netlink.com.au
-------------------------------------

--__--__--

Message: 9
Date: Thu, 10 May 2001 11:17:10 +1000
To: interchange-users@lists.akopia.com
From: Australian NetLink <kxue@netlink.com.au>
Subject: [ic] Dropdown menu works
Reply-To: interchange-users@lists.akopia.com

Sorry for the last email.

My mistake!

Dropdown menu works with my code!

Thanks anyway.

Kathy

-------------------------------------
 A u s t r a l i a n   N e t L i n k
 Phone:   (03) 9690 0660
 Fax:     (03) 9690 0668
 Email:   web@netlink.com.au
 Website: www.netlink.com.au
-------------------------------------

--__--__--

Message: 10
Date: Wed, 09 May 2001 21:33:26 -0400
From: Gift Bound Gifts <giftbound1@home.com>
To: interchange-users@lists.akopia.com
Subject: [ic] bug issue in interchange 4.7.2
Reply-To: interchange-users@lists.akopia.com

when you create a new item and try to add a option and select a option 
and click the update button I get a 500 internal error. This is what my 
error.log says:

24.4.252.86 fsv76kNP:24.4.252.86 - [09/May/2001:17:13:10 -0700] foundation
/cgi-giftbound/cart.cgi/admin/item_option.html Runtime error: gdbm store
returned -1, errno 2, key "k000005" at
/home/giftbound/interchange/lib/Vend/Table/Common.pm line 387.
> 


--__--__--

Message: 11
Date: Wed, 09 May 2001 23:54:13 -0400
To: interchange-users@lists.akopia.com
From: Ken Payne <kpayne@ford-trucks.com>
Subject: [ic] Help! Checked the FAQ and search archives but still clueless!
Reply-To: interchange-users@lists.akopia.com

The problem I'm having is apparently a common one since it appears
several times in the archives.  I've tried what I found in the FAQ
and archives and still no go....

Non-secure domain:
http://www.motorhaven.com/cgi-bin/construct

Secure domain:
https://secure.motorhaven.com/cgi-bin/construct

Everything works fine until check out.  When checking out, the
cart contents are lost.

I've tried putting the following in interchange.cfg:
DomainTail No 
IpHead Yes

and also:

SessionExpire 10 minutes 
WideOpen Yes

Well, it *does* do something, but not what is desired!  I get the
following:

Internal Server Error

Any help that anyone can offer would be greatly appreciated, I've
been at this for 10 hours and I've run out of solutions to try.

-Ken Payne




--__--__--

Message: 12
Date: Wed, 9 May 2001 23:47:20 -0700 (PDT)
From: Jason Ballou <jasonballou1@yahoo.com>
Subject: Re: [ic] Help! Checked the FAQ and search archives but still
clueless!
To: interchange-users@lists.akopia.com
Reply-To: interchange-users@lists.akopia.com

You should find that if you have your secure checkout
set to https://www.motorhaven.com/cgi-bin/construct,
that it will work fine.  I have no idea why (as I'm
pretty damn new to all of this) but I have tried it
with several servers and found this problem on all of
them.  It seems that the www.domainname.com/blah/blah
must be the same with the http:// as with the https://
or some browser versions will drop the cart contents,
especially the newer versions of IE.  I even tried the
sessionexpire and wideopen stuff too.  I had to switch
hosts several times to find one that had their secure
server setup in a way that would allow the cart
contents to be passed and I found that many hosts
didn't even realize that the problem existed until I
bitched and complained many, many times.  But hey, if
anyone knows a way around it, I would love to hear
about it.

Jason

--- Ken Payne <kpayne@ford-trucks.com> wrote:
> The problem I'm having is apparently a common one
> since it appears
> several times in the archives.  I've tried what I
> found in the FAQ
> and archives and still no go....
> 
> Non-secure domain:
> http://www.motorhaven.com/cgi-bin/construct
> 
> Secure domain:
> https://secure.motorhaven.com/cgi-bin/construct
> 
> Everything works fine until check out.  When
> checking out, the
> cart contents are lost.
> 
> I've tried putting the following in interchange.cfg:
> DomainTail No 
> IpHead Yes
> 
> and also:
> 
> SessionExpire 10 minutes 
> WideOpen Yes
> 
> Well, it *does* do something, but not what is
> desired!  I get the
> following:
> 
> Internal Server Error
> 
> Any help that anyone can offer would be greatly
> appreciated, I've
> been at this for 10 hours and I've run out of
> solutions to try.
> 
> -Ken Payne
> 
> 
> 
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
>
http://lists.akopia.com/mailman/listinfo/interchange-users


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

--__--__--

Message: 13
To: interchange-users@lists.akopia.com
From: dennis@cobolt.net (Dennis Schoen)
Subject: Re: [ic] Debian problems
Date: Thu, 10 May 2001 07:24:47 GMT
Reply-To: interchange-users@lists.akopia.com

On Thu, 10 May 2001 00:09:41 +0200, Víctor Romero <romero@kde.org> wrote:
> 
> 	Im just instaled Interchange in debian sid, and followed the
instructions of /usr/share/doc/interchange
> 		but I get this when try to login into the shop :
Have you installed the tar.gz package or the debian package?

> 			No responseWe're sorry, the Interchange server is
unavailable... We are out of service or may be experiencing high system
demand, please try again soon.
Thats a FAQ -> go to developer.akopia.com and search for it.

> 		So, dont know wheres the problem ;'(
Hint: look at the permission of the cgi binary...

Dennis
-- 
"Contrary to popular belief, UNIX is a user-friendly Operating
System. It's just choosy about who its friends are."



--__--__--

_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


End of Interchange-users Digest