[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: External JavaScript in headers with MV
****** message to minivend-users from "Mr. Christopher F. Miller" <cfm@maine.com> ******
On Thu, May 06, 1999 at 05:35:43PM -0700, Barry Treahy wrote:
> ****** message to minivend-users from Barry Treahy <treahy@mmaz.com> ******
>
> Because, there are MV tags in the JavaScript...
Ahh. We do that. We build javascripts on the fly using [perl] but
we spit them out in the body of the page.
The quoting is fun:
foreach (keys %{$group{Giftbasket}}) {
$JS .= qq`if(document.gift.Vsub[$elmnt].checked) { info = 'Giftbasket=`.&Vend::CFM::http_encode($group{Giftbasket}{$_}[0]).q`'`;
etc...
> > > Sorry for the lack of clarity on my part... The <SCRIPT
> > > SRC="/cgi-bin/test/ord/wizard_fucntions.js"> tag in the MV html page
> > > wizard.html cases the browser to issue a GET
> > > https://xxx.yyy.com/cgi-bin/test/ord/wizard_fucntions.js at the HTTP level
> > > and since it needs to run through MV, MV suffix's the URL and looks in the
> > > catalogs directory for a file called ord/wizard_functions.js.html which it
> > > obviously doesn't find. I suppose I could rename the JS file to js.html, but
> > > its kinda-bogus...
> >
> > And why would MiniVend have to serve this? Why can't you just put it
> > in web space where it belongs?
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, electronic commerce, office and internet integration.
-
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