|
From: sbRyguy on 19 Feb 2008 14:14 Greetings everyone, I have an ASP page that has two separate forms and a google map. It's a two step process for the end user, they enter in a prefix in step 1; a recordset is then built upon the info in step one. In step two they enter in another 3 numbers that is compared to the recordset from step1 to produce an ending result and a third recordset which is then mapped. I would like to throw a statement in there saying that if the information from step 2 comes back NULL then throw a javascript alert. Step 2 is erroring out on page load which seems to be normal because no info in step 1 has been passed. But how do I find the error after form number 2 has been submitted? I develop within a firewall so I can't post a link but I can post code if someone needs. Any help is much appreciated.
From: "Jon Paal [MSMD]" Jon nospam Paal on 19 Feb 2008 14:38 validation from javascript is client-side coding google for validation javascript
From: Jeff Dillon on 19 Feb 2008 15:43 Perhaps something similar to: Response.Write ("<script>Alert('No data');</script>) "sbRyguy" <risforryan(a)gmail.com> wrote in message news:3283a9a4-03d1-4aea-842b-5e8f0554ad99(a)s37g2000prg.googlegroups.com... > Greetings everyone, > > I have an ASP page that has two separate forms and a google map. It's > a two step process for the end user, they enter in a prefix in step 1; > a recordset is then built upon the info in step one. > > In step two they enter in another 3 numbers that is compared to the > recordset from step1 to produce an ending result and a third recordset > which is then mapped. > > I would like to throw a statement in there saying that if the > information from step 2 comes back NULL then throw a javascript > alert. > > Step 2 is erroring out on page load which seems to be normal because > no info in step 1 has been passed. But how do I find the error after > form number 2 has been submitted? I develop within a firewall so I > can't post a link but I can post code if someone needs. Any help is > much appreciated.
From: Evertjan. on 19 Feb 2008 15:51 Jeff Dillon wrote on 19 feb 2008 in microsoft.public.inetserver.asp.general: > Perhaps something similar to: > > Response.Write ("<script>Alert('No data');</script>) Not similar, as it needs an extra ", Jeff. in ASP-VBS: Response.Write "<script>Alert('No data');</script>;" -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
From: Jeff Dillon on 19 Feb 2008 16:10 Exactly, which is similar! Thank you for the confirmation. "Evertjan." <exjxw.hannivoort(a)interxnl.net> wrote in message news:Xns9A49DE5D4E303eejj99(a)194.109.133.242... > Jeff Dillon wrote on 19 feb 2008 in > microsoft.public.inetserver.asp.general: > >> Perhaps something similar to: >> >> Response.Write ("<script>Alert('No data');</script>) > > Not similar, as it needs an extra ", Jeff. > > in ASP-VBS: > > Response.Write "<script>Alert('No data');</script>;" > > > > > > -- > Evertjan. > The Netherlands. > (Please change the x'es to dots in my emailaddress)
|
Next
|
Last
Pages: 1 2 3 Prev: automated translation of Classic ASP to ASP.Net? Next: Bluefish mp3 ringtones |