NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on August 23, 2016, 06:05:25 AM

Title: Error if "User must be logged in "
Post by: walter.dasilva on August 23, 2016, 06:05:25 AM
Hi,

I'm improving a old app with security. so if a set "User must be logged in" for a NetWebBrowse i get some errors.

from FF console.

Error: cannot call methods on ntbrowse prior to initialization; attempted to call method 'unhideTable'
.error()                              all.js:1
t.widget.bridge/t.fn/<()     all.js:1
.each()                             all.js:1
n.prototype.each()             all.js:1
t.widget.bridge/t.fn()        all.js:1
<anĂ´nima>                       CadastroTabela:470
n.Callbacks/j()                   all.js:1
n.Callbacks/k.fireWith()      all.js:1
.ready()                             all.js:1
K()                                    all.js:1

****cadastrotabela:470

$('#cadastrotabela_div').ntbrowse('unhideTable');

NT 9.12 C9.1

Thanks

Title: Re: Error if "User must be logged in "
Post by: Bruce on August 28, 2016, 10:55:12 PM
Presumably you get these errors when a user who is not logged in attempts to access the browse?

cheers
Bruce
Title: Re: Error if "User must be logged in "
Post by: walter.dasilva on August 29, 2016, 11:10:52 AM
Hi Bruce,

No, the user is logged in.

Att,
Title: Re: Error if "User must be logged in "
Post by: Bruce on August 30, 2016, 12:16:57 AM
Hi Walter,

If the user is logged in, and you've just added the "must be logged in" requirement, then I don't see that there should be any difference in what happens. Any chance you can send me an example of the effect? I'm guessing something else is in play here, but I'm not sure what.

Maybe the "Must be logged in" is a red herring - try turning that off and see if the error goes away. If not then we need to look for the source of the error, regardless of the logged in status.

cheers
Bruce

Title: Re: Error if "User must be logged in "
Post by: walter.dasilva on August 30, 2016, 05:20:40 AM
Hi Bruce,

I can not reproduce error on a sample. even inside my project.
i created a new browser of same table and it works fine doesn't matter login issue

i'm changing this table for a new one and see whats happen.

Thanks