NetTalk Central

Author Topic: Alert Messages for Validation - Not showing in correct area of the page.  (Read 4690 times)

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Hi...

I'm having issues with a memory form. I have a memory form with a single field - and have set the validation to required, and then submit the form with an empty field - the alert message shows at the top of the page (before the footer tag) NOT after the sub heading as it should.

It does seem to work with the Basic Browse and From example.

I've already checked the default header and footer tags for the webserver and for the form. They are correct. The header and footers do get rendered, just the position of the alert message.

If I do a SetValue('retry','thisform') at the ValidateRecord routine - it does work properly.

Also - how can I disable the alert JS popup? It seems like it's embedded in the WebHandler object to generate.

Thanks.



random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Alert Messages for Validation - Not showing in correct area of the page.
« Reply #1 on: January 04, 2008, 04:12:57 PM »
Follow up--- apparently this happens with the form is embedded as a tag in another page. If the form is called directly - it works ok.

IE:

NetWebPage with the following html:

<!-- Net:PageHeaderTag -->
<!-- Net:MyForm -->
<!-- Net:PageFooterTag -->


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Alert Messages for Validation - Not showing in correct area of the page.
« Reply #2 on: January 07, 2008, 04:04:31 AM »
First the easy answer:

>> Also - how can I disable the alert JS popup? It seems like it's embedded in the WebHandler object to generate.

In the WebHandler procedure,
go to the ProcessLink method,
before the parent call embed
self._popUpDone = 1

More to follow on the rest in a moment.

cheers
Bruce

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Alert Messages for Validation - Not showing in correct area of the page.
« Reply #3 on: January 07, 2008, 09:52:06 AM »
Bruce,


Ahh, but that is for the whole app, correct?

I want to be able to disable the popup on certain forms and only on certain message (IE, validation - sure pop up the alert, for a message ['like "file saved"] - I just want to show the alert on the web page.

Basically, programmatic control of the popup on a form.

TIA!