NetTalk Central

Author Topic: Alert/Entry/Javascript errors  (Read 2444 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Alert/Entry/Javascript errors
« on: December 01, 2013, 12:02:37 PM »
[Using NT7.31/C9] I've been encountering sporadic javascript errors in my recent app work. Today I also discovered alert and entry errors having to do with a wizard form. I've taken the sample Tabs (57) app and modified it some. I changed the theme, checked off all the file options on the WebServer\Settings\Advanced tab, changed the PageHeaderTag Basic Layout to the 3 section option, eliminated a few menu choices, set the Save/Cancel URL's to the IndexPage and changed the procedures to re-prime LOC:Field1 and LOC:Field 4 (both are required fields) every time the menu items are selected. After you compile the app, here are the various issues:

1) The app sporadically hangs at startup or on selection of a menu item at various points under Firefox and eventually displays an "Error in JavaScript" warning with the app displaying without any theme css. I haven't been able to reproduce this error on demand. I think it happens less using IE11, but I haven't been spending much time there.

2) Select the Wizard. On the first tab, do NOT enter anything in Field1, but hit Next. An Alert message pops up because it's a required field and the validation for each tab is selected. Click OK on the Alert box and then enter something in Field1. Hit TAB or NEXT to save the content. The newly entered text appears, but you again get the Alert message as if no entry was made. I've determined that for some reason, the field entry processing code is not being triggered. The only option available is to Cancel the wizard.

3) Select the Wizard. On the first tab, enter something in Field1. Click Next until you see Field4 (tab 4). Do not enter anything in Field4, just hit Save. For some unknown (to me) reason, both a red warning bar shows at the top of the screen AND an Alert message shows. Why is this multiple error display different for Field4 then it was for Field1 on the first tab? Also, once the red warning bar shows at the top of the screen, there is no way to eliminate it until the entire record is successfully saved. I would expect that entering something that validates in an error entry field would clear the top red bar. Also, I was not able to set up a related problem in this sample app, but when you have content displayed only in the center region when using the 3-section Basic Layout, and the top red warning bar displays, everything is shifted to the left. Correcting the error field does not fix the display. The only way to restore it to the proper part of the page is to start over by reselecting the menu option from the main Menu.

Regards,

Mark

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Alert/Entry/Javascript errors
« Reply #1 on: December 02, 2013, 11:25:46 PM »
Hi Mark,

1. Difficult to comment. Sounds like the server is not serving one or more of the files - might be a firewall issue - might be a machine issue.

2. I've tweaked the template for 7.32 to fix this problem.

3. See Form Validation tab "Show Invalid message on top of form". The behavior on the Wizard is a little different to the behavior on a form, but in your case I think you want to turn off the message at the top completely.

cheers
Bruce

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Alert/Entry/Javascript errors
« Reply #2 on: December 05, 2013, 08:46:25 AM »
Bruce,

1) Javascript errors problem: I have been using only IE11 the last few days and have experienced no problems. Firefox seems to be the issue--I'm on 25.0.1 (most current). It started maybe 1-2 months ago. Any other reports about this problem?

2) Look forward to it.

3) Fixed the problem. Could there be a global default setting for this option down the road?

Thanks,

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Alert/Entry/Javascript errors
« Reply #3 on: December 05, 2013, 11:43:19 PM »
>> 1) JavaScript errors problem: I have been using only IE11 the last few days and have experienced no problems. Firefox seems to be the issue--I'm on 25.0.1 (most current). It started maybe 1-2 months ago. Any other reports about this problem?

none that I'm aware of.

>> 3) Could there be a global default setting for this option down the road?

Possibly.

cheers
Bruce