Re: [OT] - simple JS question

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55168
interpreted = N
texte = Great, that did it. Knew that it is something little:-) Have a nice weekend. Nitai On 4/1/04 1:25 AM, "Marc Kaiwi" wrote: > Hi, > Ah those pesky little semicolons will get you every time! : c) > Looks to me like your if() statement terminates before you intended. > Both of the following statements will always be executed in that > function. Try something more like this: >=20 > >=20 > Hope this helps! >=20 > MK >=20 >=20 > On Saturday, January 3, 2004, at 02:36 PM, Nitai @ ComputerOil wrote: >=20 >> Hi all, >>=20 >> Have been working the last 2 dayxs straight trought, so please forgive >> this >> simple question, but I just dont see it. >>=20 >> I need to submit a form. Thus I have a onclick javascript on a link. >>=20 >> I need to: >>=20 >> User clicks a link >> Confirmation window pops up with "do you really want to save?" >> User clicks yes or cancel. >>=20 >> Javascript looks like this: >>=20 >> >>=20 >> Problem is that even when the user clicks on cancel the form is being >> submited. I can see why it does not work but don't have the solution >> handy, >> anybody? >>=20 >> TIA. >>=20 >> Nitai >>=20 >> -- >> Redakto - Content Management that simply works >>=20 >> ComputerOil=AE GmbH >> Dammstrasse 7 >> 5400 Baden / Switzerland >> Telefon +41 (0)844 44 55 66 >>=20 >> info@computeroil.com >> http://computeroil.com >>=20 >>=20 >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >>=20 >>=20 > Signed: Marc Kaiwi >=20 >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ >=20 --=20 Tools to energize your business Web Content Management =ABRedakto=BB & eBusiness Systems ComputerOil=AE GmbH Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [OT] - simple JS question ( "Nitai @ ComputerOil" 2004)
  2. Re: [OT] - simple JS question ( Marc Kaiwi 2004)
  3. [OT] - simple JS question ( "Nitai @ ComputerOil" 2004)
Great, that did it. Knew that it is something little:-) Have a nice weekend. Nitai On 4/1/04 1:25 AM, "Marc Kaiwi" wrote: > Hi, > Ah those pesky little semicolons will get you every time! : c) > Looks to me like your if() statement terminates before you intended. > Both of the following statements will always be executed in that > function. Try something more like this: >=20 > >=20 > Hope this helps! >=20 > MK >=20 >=20 > On Saturday, January 3, 2004, at 02:36 PM, Nitai @ ComputerOil wrote: >=20 >> Hi all, >>=20 >> Have been working the last 2 dayxs straight trought, so please forgive >> this >> simple question, but I just dont see it. >>=20 >> I need to submit a form. Thus I have a onclick javascript on a link. >>=20 >> I need to: >>=20 >> User clicks a link >> Confirmation window pops up with "do you really want to save?" >> User clicks yes or cancel. >>=20 >> Javascript looks like this: >>=20 >> >>=20 >> Problem is that even when the user clicks on cancel the form is being >> submited. I can see why it does not work but don't have the solution >> handy, >> anybody? >>=20 >> TIA. >>=20 >> Nitai >>=20 >> -- >> Redakto - Content Management that simply works >>=20 >> ComputerOil=AE GmbH >> Dammstrasse 7 >> 5400 Baden / Switzerland >> Telefon +41 (0)844 44 55 66 >>=20 >> info@computeroil.com >> http://computeroil.com >>=20 >>=20 >>=20 >>=20 >>=20 >> ------------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to >> >> Web Archive of this list is at: http://webdna.smithmicro.com/ >>=20 >>=20 > Signed: Marc Kaiwi >=20 >=20 > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://webdna.smithmicro.com/ >=20 --=20 Tools to energize your business Web Content Management =ABRedakto=BB & eBusiness Systems ComputerOil=AE GmbH Dammstrasse 7 5400 Baden / Switzerland Telefon +41 (0)844 44 55 66 info@computeroil.com http://computeroil.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Nitai @ ComputerOil"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Large databases in WebCat (1997) Location of Webcat site in folder hierarchy (1997) Generating Report Totals (1997) [WebDNA] Client wants backup copy of site (2010) Showif, Hideif reverse logic ? (1997) bug in [SendMail] (1997) [defined]ish (1997) problems with 2 tags (1997) Help! WebCat2 bug (1997) Card clearance, problems - solutions? (1997) [math] variable question (1997) groups and [ShowNext] (1997) Putting [cart] into a database (2003) A little syntax help (1997) HELP WITH DATES (1997) Forms Search Questions (1997) OT: javascript for dynamic pulldowns? (1998) Error -108 (1997) Running 2 two WebCatalog.acgi's (1996) More on the email templates (1997)