[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 Barry Treahy <treahy@mmaz.com> ******
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...
Barry
Hans-Joachim Leidinger wrote:
> ****** message to minivend-users from "Hans-Joachim Leidinger" <hans-joachim.leidinger@home.gelsen-net.de> ******
>
> Hello Barry,
>
> can you post your orignial code by minivend? Whit what code you are
> trying to get a URL like
> https://xxx.yyy.com/cgi-bin/test/ord/wizard
> and get a wrong URL like
> https://xxx.yyy.com/cgi-bin/test/ord/wizard_fucntions.js
> ?
>
> Joachim
>
> > ****** message to minivend-users from Barry Treahy
> <treahy@mmaz.com> ******
> >
> > Ok, my work around is great unless I need MV to preprocess, which I
> now do, which gets me
> > back to my second question... Is there a way to instruct MV not to
> append an extension to
> > a file if one exists???
> >
> > Specifically, I would want it to append with this URL:
> > https://xxx.yyy.com/cgi-bin/test/ord/wizard
> > but not for this:
> > https://xxx.yyy.com/cgi-bin/test/ord/wizard_fucntions.js
> >
> > which is the actual GET issued by a <SCRIPT SRC=> tag...
> >
> > Barry
> >
> > Barry Treahy wrote:
> >
> > > ****** message to minivend-users from Barry Treahy
> <treahy@mmaz.com> ******
> > >
> > > I determined that I could get this to work by referencing the .JS
> files outside of the
> > > context of MV, but this prompts two questions... Is it possible to
> maintain relative
> > > URL's in MV because my experience has been that I must always
> reference the entire
> > > path from the CGI point. The second question was regarding MV's
> implicit use of .html
> > > for all document names. Is there a technical to disable this so
> that if an external
> > > JS source is referenced, MV doesn't suffix the name with a .html and
> choke?
> > >
> > > barry
> > >
> > > Barry Treahy wrote:
> > >
> > > > ****** message to minivend-users from Barry Treahy
> <treahy@mmaz.com> ******
> > > >
> > > > I've used external JS a lot and trying incorporate some into some
> > > > existing pages, placed in the hearder, and it isn't working, MV is
> doing
> > > > something to it. Anyone run into this and know if there is a
> > > > work-around?
> > > >
> > > > The gist of the HTML looks like:
> > > >
> > > > <HTML>
> > > > <HEAD>
> > > > <SCRIPT SRC="yada-yada.js">
> > > > </SCRIPT>
> > > > </HEAD>
> > > > [body 1]
> > > >
> > > > o
> > > > o
> > > > o
> > > >
> > > > and so on...
> > > >
> > > > Thanks..
> > > >
> > > > Barry
> > > >
> > > > -
> > > > 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
> >
> >
> >
> > -
> > 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
-
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