I love the return.
I have convinced my client that we don't try to validate and convert 1500
into. When I pointed out they weren't doing it on the other forms (I think
the previous people knew even less than I do) So we are going with 1.5-2.999
in the pricing field and forgetting validation. When
It was getting it to pass the proper quantity I was getting stuck and I
think Stephen's script showed me where my error was but I'm back burnering
it for now since my client looked at the other places on the site where
pricing was in bulk and saw that they didn't have the validation there just
aske
- Original Message -
From: "Cheryl D Wise"
> I need to pass to the cart the number in the format
> of 1.5 for 1500 instead of 1500. The pricing is passed
> via a hidden field (hate this cart) so I figured I'd just
> divide the per thousand price by 1000 and pass the
> decimal value but the
Okay... It sounds like you already wrote a script that does what you
need, but I'll take a stab anyway.
I'll assume the following HTML:
...
...
So, here's the appropriate script
function stupidCartFunction(oFrm)
{
qty =
I agree that the constraints are crappy. What I am requested to do is to
verify that the number is larger than 1500 then convert the quantity to 1.5
or whatever and pass the new quantity to the Perl script.
For right now I've put instructions on the page to order in the number of
thousands, aka 1.
I'm a fair hand at JS and this really doesn't sound like a job for it,
given your constraints... plus I wince when I see critical
functionality implemented through JavaScript.
In any case, If the cart always rounds to two decimal places on the
server side, there really isn't anything JavaScript ca
The below URL is a tutorial for creating an order form. I checked it out
and it looks very good. You have several options also. I like it so much
I'm bookmarking the spot for myself too.
http://home.cogeco.ca/~ve3ll/jstutor6.htm?reload_coolmenus
hth
Jan
The WDVL Discussion List from WDVL.
Here's another solution that selects all items from the listbox on the
click of a button.
function getSelectedItems(oSel) {
var selectedItems = new Array();
for (var i = 0; i < oSel.length; i++) {
if (oSel.options[i].selected)
selectedItems[selectedItems.length] =
oSe
Ok if you have two arrays, compare the items in a loop. If it matches,
add it to a third array. Continue until all elements of array two have
been compared to all values in array one. The third array becomes the
items selected array
// array index for finalArray
var z=0;
// origArray
Right, that's good for getting ALL of the selected options, but what
about the ONE item that was just clicked?
Linden, Todd wrote:
I think I've done this in the past and can't remember EXACTLY how I had
done it but you have to loop through the options to see if they are
selected.
I found this cod
Arrgghhh...missed last paragraph. Sent previous post too early. Now
contemplating a possible solution...
- Todd
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal passwor
I think I've done this in the past and can't remember EXACTLY how I had
done it but you have to loop through the options to see if they are
selected.
I found this code on the net. Maybe it'll help...
var so = document.Form.select1;
selectedOptions = new Array();
for (var i=0; i < so.length; i++){
According to the documentation, Javascript doesn't have associative
arrays. See
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/array.html
for reference.
But then what exactly is
document.forms["myForm"].elements["formElement"]? I suppose they might
be custom collect
Thank you - I will fiddle with this in the morning.
:-)
Riva
On Tue, 23 Mar 2004 23:00:19 -0500 R'twick Niceorgaw
<[EMAIL PROTECTED]> writes:
> sure it can be done
Riva Portman, MCIWD
Certified Webdesigner
Star Quality Designs
www.starqualitydesigns.com
The WDVL Discussion List from WDV
sure it can be done
[EMAIL PROTECTED] wrote:
>Hi all,
>
>I was wondering if there is a way to check if a field in a form has been
>left blank and, if it is, not have it appear on the e-mail (that I get
>from the form processor.)
>
>For example, my code is:
>
>
>value="Butternut Squash Sou
;[EMAIL PROTECTED]>
Sent: Wednesday, March 10, 2004 5:02 PM
Subject: [wdvltalk] Re: javascript: changing src attribute at load time
> - Original Message -
> From: "Scott Glasgow"
>
> How about:
>
> document.write('<iframe src="'
- Original Message -
From: "Scott Glasgow"
How about:
document.write('
Jenni,
Glad I could help.
Jan
Pace Computing Limited wrote:
Hi Jan,
I'll try this one out. I like your little alert message. I
don't have one like that. That might come in really handy
:)
Thanks,
Jenni
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To:
Jim wrote:
Here are some URLs which offer chromeless window scripts:
http://www.dhtmlshock.com/window-scripts/Chromeless/default.asp
http://www.xentrik.net/javascript/chromeless.php#
Interestingly, while both examples above have width and size specs, my
MSIE 6 browser opens them full-screen. Acc
That depends on what you are using at the backend. Mostly it would involve
checking the data using regular expressions and error messages to send
back the data and a message about what wasn't completed properly before
the data is committed to the database.
The exact coding would vary somewhat depe
How could I check if it's filled in on the server side?
Thank you
Robert
*-*
Application Programmer
x4863
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 8:31 AM
To: [EMAIL PROTECTED]
Subject: [wdvltal
Do it server side. Client side validation is much to prone to malicious
manipulation and with javascript can simply be turned off. Server side is
much more secure and protects your site and data.
drew
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:
Thanks everyone. I'll check out all of these resources.
Jenni
The WDVL Discussion List from WDVL.COM
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the wo
You could use:
a) http://javascript.internet.com/page-details/frameless-popup.html
b) Use the kiosk mode:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;154780
Hope this helps,
Peter Vidal
Pall Aeropower Corp.
SR Programmer Analyst
WWW.Pall.com
"My religion consists of a humble admirati
Jenni,
Here are some URLs which offer chromeless window scripts:
http://www.dhtmlshock.com/window-scripts/Chromeless/default.asp
http://www.xentrik.net/javascript/chromeless.php#
Interestingly, while both examples above have width and size specs, my MSIE 6 browser
opens them full-screen. Accor
I don't seem to have it anymore but I think it was called chromeless
windows.
Just googled ... have a look here:
http://www.chromeless.org/
hth
jac.
> -Original Message-
> From: Pace Computing Limited
> Sent: 08 January 2004 17:35
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] JavaScrip
The counter gets its stats from website that are using the free counter they
offer. Generally the stats will be skewed towards hobby sites since they are
generally on free hosting or hosting provided as part of their ISP package
and don't have access to real statistics.
As you pointed out if you
Will,
Useful link! I think one needs to be cautious, though, about giving much
weight to any such survey ... I couldn't quickly find a description of how
thecounter.com gathers their stats, but such sites often use either their
own access records or combine the access records of a few other
si
Glad it worked out KoaFar!
FYI to others, I created a dynamically written javascript which, onmouseover
(or use an onClick event handler) would write the embed html code to an empty
div layer which is positioned off the page (ie: not visible). The embed tag
which is written to the div have the
Glad you got it worked out!
Riva
On Sat, 27 Dec 2003 17:51:39 -0800 "K.F. Wu" <[EMAIL PROTECTED]>
writes:
> Thanks, Riva for replying offline. This topic is closed thanks to
> Jim's div
> script which I made a bit modification and works with both IE5.5 and
>
> NN6.2. I think it's good for me
Thanks, Riva for replying offline. This topic is closed thanks to Jim's div
script which I made a bit modification and works with both IE5.5 and
NN6.2. I think it's good for me. If you are interested in the code, check
the page: (I assume Jim won't mind sharing :)
http://www.jaylight.org/fiat5
Thanks Bj for replying. I took the extra ) off and it still not working;
the error changed to: line 7, char 32, Object doesn't support this property
or method. Any idea what's wrong now? btw, there is a sample demo that
works in the IE on the URL you mentioned, but it doesn't work with my NN4.7
I'm not sure what's wrong with the code you quote, apart from this obvious
error:
> if (sndAction == 'stop') sndObj.stop()); //stop, else play
(There are two ")" after stop)
Anyway there's some JS for playing WAV files on mouseover at
http://jsarchive.8m.com/audio.html
You might try using that
If you send me a snippet of code I can do it for you.
Riva
On Thu, 11 Dec 2003 12:32:59 -0800 Tom Webb <[EMAIL PROTECTED]>
writes:
> Hello all:
> How can you change the OK/Cancel buttons to read and function as
> Yes/No
> buttons? I have looked everywhere but I can't find any informaiton
>
Erik,
Thanks, a very good idea. Off to sleep right now though, and with a
fresh start tomorrow, it may all make sense to me.
Jan
Erik Carlson wrote:
Have you thought of making some classes in a .css?
I've tried to chine the default style inside the JavaScript code, but to no
avail.
The
David
Thanks, a good suggestion, think I'm just too tired right not to try to
work on this anymore. Off to sleep and then start fresh tomorrow.
Jan
David Blakey wrote:
This is incomplete, and looks, at first glance, like a CSS3 container.
Perhaps you should remove it.
In addition, I have neve
Hello Robert,
Tuesday, August 12, 2003, 6:19:00 PM, you wrote:
> Buying clothes online. There is a different price for 2XL, 3XL than for S,
> M, L, XL. So I have setup radio buttons for each of the sizes. There is a
> quantity text box with a default value of 1. There is a total text box wit
Worked! Yes!
thanks
> From: Steve Miller <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 13 Mar 2003 14:01:46 -0500
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] RE: javascript help needed
>
> I'm no dom wizard, so I just used a method I have use
No, I assigned an image name, and I was trying to use it. I will try try as
an id.
thanks!
> From: "Cymbala, Greg" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 13 Mar 2003 10:41:54 -0700
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] RE: javas
ailto:[EMAIL PROTECTED]
>> Sent: 13 March 2003 17:44
>> To: [EMAIL PROTECTED]
>> Subject: [wdvltalk] RE: javascript help needed
>>
>>
>> This one:
>> document.im_num.src="../graphics/gold.gif";
>>
>>> From: "Ben Joyce" <[
t; Subject: [wdvltalk] RE: javascript help needed
>
>
> This one:
> document.im_num.src="../graphics/gold.gif";
>
> > From: "Ben Joyce" <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Thu, 13 Mar 2003 17:38:53 -
> > To:
Try this (should work in IE 5(?)+ and gecko-based versions of Netscape) ...
And you are giving the image an ID attribute, and im_num is the ID, right?
function loadAd(url,im_num)
{
alert(im_num);
if (document.all)
{
targetAll=eval(window.frames["display"].location);
targetAll.href=url;
This one:
document.im_num.src="../graphics/gold.gif";
> From: "Ben Joyce" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 13 Mar 2003 17:38:53 -
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] RE: javascript help needed
>
> What li
What line is the error on?
> -Original Message-
> From: Steve Miller [mailto:[EMAIL PROTECTED]
> Sent: 13 March 2003 17:32
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] javascript help needed
>
>
> I am using php and javascript together on a page. I am trying
> to change an image sourc
Jon Haworth [mailto:[EMAIL PROTECTED]] indicated:
> > > Just checked in IE6, Opera and Phoenix,
> > > but I can't work out what should be popping up :-)
> >
> > Hmm... mousing-over the text items should pop-up a box
> > with a text description... and should simultaneously hide
> > the Flash obje
Hi Dwayne,
> > Just checked in IE6, Opera and Phoenix,
> > but I can't work out what should be popping up :-)
>
> Hmm... mousing-over the text items should pop-up a box
> with a text description... and should simultaneously hide
> the Flash object.
Oops! My mistake, sorry. (note to self: disa
Jon Haworth [mailto:[EMAIL PROTECTED]] said:
> Just checked in IE6, Opera and Phoenix,
> but I can't work out what should be popping up :-)
Hmm... mousing-over the text items should pop-up a box with a text
description... and should simultaneously hide the Flash object.
--
Dwacon
www.dwacon.com
Hi Dwayne,
> Came up with a solution to prevent our pop-up JavaScripts from colliding
> with the Macromedia Flash object on our home page. Looks okay in IE6...
> just want to see how well it fares on other browsers. Thanks!
Just checked in IE6, Opera and Phoenix, but I can't work out what shoul
Sure. Go to:
http://www.php.net/mailing-lists.php
I joined the php-db but there are others.
On Wed, 2003-01-15 at 07:51, [EMAIL PROTECTED] wrote:
> Mignon,
>
> I've been looking for a PHP list to join. Would you mind sharing
> information about joining the php-db list you are using?
>
> Tha
http://www.php.net/mailing-lists.php
watch out; php-general is quite busy at times!
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 15 January 2003 13:52
> To: [EMAIL PROTECTED]
> Subject: [wdvltalk] Re: javascript and php/html forms
Mignon,
I've been looking for a PHP list to join. Would you mind sharing
information about joining the php-db list you are using?
Thanks in advance, Maureen
> Hi David and thanks for the assistance. This didnt work for me though.=20
> But, fyi, I was able to get it to work by echoing the js wit
Hi Perry,
> Hopefully, this application is for your intranet, where you're
> using IE (I believe). If so try the following script.
Yup, well remembered ;-)
> To just have the forms hidden and leave a space open for them:
>
> function HideOrSeek()
>{ for(loop = 0; loop < document.form
Hi,
I have an example to help u. Hope this would work.
Radio Button Value Check
Milestone
Beta 1
Beta 2
function getRadioValue(radioName) {
var collection;
collection = document.all[radioName];
for (i=0;i
Hi,
Do try this peace of code written in JavaScript.
here :
eform is the name of form.
radcrust is the id of the fieldset which contains the radio button.
function ValidateForm(eForm)
{
for (var i=0;i
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 11:37 AM
Subject: [wdvltalk] Javascript
hi there
try http://developer.irt.org, and specifically @ this page:
http://developer.irt.org/script/10.htm
they have a lot of good examples code there... just look through it
and you're sure to find just about anything ya need!!
hope it helps :)
- Original Message -
From: <[
Hello Subhendu,
window.open('http://someurl.com', 'nameOfTheWindow', features);
nameOfTheWindow is the same as target, if a window with that name is
already opened then url will be loaded in that window, if not - it
will open a new one and gives it a name.
There will be one problem with that th
56 matches
Mail list logo