close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Example "Before Page Load" and/or "on form submit" trigger for Classic ASP - to solve UE issue.

Thread began 1/29/2018 11:29 am by Nathon Jones Web Design | Last modified 1/29/2018 3:52 pm by Ray Borduin | 558 views | 5 replies |

Nathon Jones Web Design

Example "Before Page Load" and/or "on form submit" trigger for Classic ASP - to solve UE issue.

I'm currently using the "when button is clicked" as the trigger for UE:

if (cStr(Request.Form("SubmitEnquiry")) <> "")  then


...but I just realised that the form's button is on the previous page so this is useless! D'oh!

Thing is, DWCC won't let me open WebAssist wizards for ASP. Can anyone help me with the code for those two triggers so I can test them both?

Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

It would work if the form button was on the previous page as long as the page action points to the new page.

Before page load is just:
if ("" = "")

for any form submit you could use:
if (Request.ServerVariables("REQUEST_METHOD") = "POST")

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

The page action does point to the new page but the UE script isn't being triggered. Incidentally, neither is the WA Server Validation script which has the same trigger.

I've changed the UE code to use both before page load and any form submit, and they work! Go figure. I have spent a solid 12 hours on this today so far.

Can you please explain this section for me Ray:

'Send Mail All Entries
if ("contact-confirmation.asp" <> "") then
Response.Redirect("contact-confirmation.asp")
end if



I copied that in from an old CDOSYS / UE script I had on another website, and I've changed the page that's referenced obviously, but I have no idea what this is or what it does?

Also, despite the trigger being changed, it's still not sending to the BCC referenced (my e-mail address).

Tough old slog this one!
NJ

Sign in to reply to this post

Ray BorduinWebAssist

That code is to redirect to another page after sending the email. It checks to see if you have a redirect page set and then redirects if you do.

Sign in to reply to this post
Did this help? Tips are appreciated...

Nathon Jones Web Design

Ray, is there a way to specify more than one e-mail address in the CC Entries section? I've currently got...

'CC Entries
set WA_MailObject = WAUE_AddCC(WA_MailObject,"admin@gallowayheathers.com")
MailCC = gAddCC



Thank you.
NJ

Sign in to reply to this post

Ray BorduinWebAssist

You should be able to just repeat that line of code:
set WA_MailObject = WAUE_AddCC(WA_MailObject,"admin@gallowayheathers.com")
set WA_MailObject = WAUE_AddCC(WA_MailObject,"second@gallowayheathers.com")

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...