close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

server validation without reloading the page?

Thread began 7/05/2019 9:02 am by SCar87011738 | Last modified 7/19/2019 5:52 am by Ray Borduin | 871 views | 12 replies |

SCar87011738

server validation without reloading the page?

Hello all,
I have a form where the user enters a code.
This code must match a code that is present in a specific table.
So, I will create a recordset that will filter the "codes table" based on the form "code field". If the recordset match the entered code, validation should pass.
But is there a way to instantly display a checkmark if validation passes without submitting the form? (I know this can be done with ajax alone, but is there a way to do this with webassist tools?
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

You can use "Load Plugin From Div" to do an AJAX post and display a result. It is identical to the concept in this tutorial: http://www.webassist.com/tutorials/Dynamic-Dropdowns-with-Data-Bridge-2-0

The only difference is that your plugin shows an error message (or no error) based on the input field on the first page instead of showing a second filtered dropdown list.

This is something I could help with in a premier support ticket.

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

SCar87011738

Originally Said By: Ray Borduin
  You can use "Load Plugin From Div" to do an AJAX post and display a result. It is identical to the concept in this tutorial: http://www.webassist.com/tutorials/Dynamic-Dropdowns-with-Data-Bridge-2-0

The only difference is that your plugin shows an error message (or no error) based on the input field on the first page instead of showing a second filtered dropdown list.

This is something I could help with in a premier support ticket.  


Hello Ray,
this is what I was searching for.
I followed the tutorial and it almost work.
This works until I trigger the plug-in.
If I don't trigger the plug-in the form submits.
If I trigger the plug-in (with the onKeyUp behaviour) the submit button doesn't work any more.
What can I do to make this work?
I'm using Data Bridge 1.
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

Please post a URL where I can see the problem and give me FTP access. I'll take a look and see what is going on.

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

SCar87011738

Hi Ray,
Here is the link. (private)
Ciao
Tony

Sign in to reply to this post

Ray BorduinWebAssist

I'll need FTP access as well to debug this properly.

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

SCar87011738

Originally Said By: Ray Borduin
  I'll need FTP access as well to debug this properly.  


Sent by private message.

Sign in to reply to this post

Ray BorduinWebAssist

Since you are doing form validation and using the progress bar, you need to set the value of MM.returnValue to true or false to identify if the form can be submitted or not. I've added a function for that and the page appears to work properly now... see lines 273-275 and the lines that reference framework_load_plugin_url to see the changes I had to make.

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

SCar87011738

Originally Said By: Ray Borduin
  Since you are doing form validation and using the progress bar, you need to set the value of MM.returnValue to true or false to identify if the form can be submitted or not. I've added a function for that and the page appears to work properly now... see lines 273-275 and the lines that reference framework_load_plugin_url to see the changes I had to make.  


Hello Ray,
thanks for your help.
Since the problem is the progress bar I would remove it. Iis there a valid alternative to it? Example: disable the submit button until the form is submitted?
TIA
tony

Sign in to reply to this post

SCar87011738

At long last I think to remove the framework plug-in.
Too bad, it was a good idea to validate the voucher code in real time.
But it's a bit difficult to tweak the code (for me) to make it work along with the progress bar.
Your example is working but it will allow the form to submit only if the voucher code is validated. I need to submit the form even if the voucher don't pass the validation (I will apply server validation (as usual) to this field (using a recordset that will verify the voucher code).

Is there a simpler alternative that will check a form field in real time using a recordset?
TIA again.
tony

Sign in to reply to this post
loading

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...