NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Login window not centered
« Last post by jking on Today at 04:08:50 PM »
Richard,

     Jane is correct, see the attached image to see where I added my custom class in the login form template.

Jeff
2
Web Server - Ask For Help / Re: Login window not centered
« Last post by Jane on Today at 03:13:42 PM »
Richard,

I don't think login-form-width exists by default.

That looks like a class name that Jeff created as shown in the second pic in his original post (where he adds it after a space to the FormDiv settings for his procedure).
Once it's attached to something, then the CSS class can attach itself.

Do you have that class name in your template?

Jane
3
Web Server - Ask For Help / Re: Login window not centered
« Last post by Richard I on Today at 01:26:48 PM »
Thanks Jeff,
No Joy with Control F5
I have replaced in the Form Div  ' nt-fix-center nt-width-300px'
 with
' nt-fix-center login-form-width'

and added my custom Css file into ThisWebServer Settings ->Styles ->Files as
'rji-custom.css'-Browser:All
Ran Gzipall

For completeness ,this is my custom CSS
.login-form-width{
   width: 300px; !important;
   line-height: 1.0em;
   margin: 0 auto;
}

On Running the login form spans the page as per attachment.....
Cheers
Richard
4
Web Server - Ask For Help / Re: Login window not centered
« Last post by jking on Today at 09:46:18 AM »
Hi Richard,

     I'm working on some NT 14.20 apps today and noticed the same.  Try pressing CTRL-F5, this clears the browser cache and resets things.  Working here to center the login screen.

Jeff
5
Thank you !  That works.
6
Hi, try using...

p_web.Script( p_web.WindowOpen( 'YourPage') )

regards
7
Web Server - Ask For Help / API documentation
« Last post by Niels Larsen on Today at 01:47:28 AM »
Hi Bruce

Is it possible to use the Page Name in the documentation of a method instead of the procedure name.
I ask because I use Page Name to keep track of different versions of the "same" method - of course with different procedure names.

Regards Niels
8
Web Server - Ask For Help / Freezing when applying security to buttons
« Last post by Richard I on Today at 01:23:10 AM »
Using NT 14.20
I want to hide the <delete> and <change>  buttons on Forms and Browses by User security level.
On  the Security Tab of the button , Im changing "default" to YES and adding 100 as the security level,
compile and run...
On the Browse for example scrolling by using "next" the Browse freezes and greys out.
Returning to "default" restores normal function.

Can you check this please Bruce?
Cheers
Richard
9
Using the default login page example I'm trying to go to one page if the login is successful and a different page on failure.

Reading through different posts I saw examples of:
    loc:formaction = 'SuccessPage'
    loc:formactiontarget = '_top'

and
        p_web.SetValue('_parentPage','SuccessPage')

neither seem to work.

Using the example code I can 'Authenticate' fine but can't seem to 'act' on it....

  if p_web.GetValue('loc:hash') = p_web.GetSessionValue('loc:hash')
    ! login checking goes here
    if p_web.Authenticate(Loc:Name,Loc:Passw) = true ! WebHandler, Authenticate method needs to be fleshed out.
      p_web.ValidateLogin()                   ! this sets the session to "logged in"
      p_web.SetSessionValue('loc:hash',0)         ! clear the hash, so this login can't get "replayed".

        p_web.SetValue('_parentPage','SuccessPage')

else

        p_web.SetValue('_parentPage','FailedPage')
end
end

I think I'm completely off base !

10
Web Server - Ask For Help / Trying to Resize Browse Grid for Mobile phone
« Last post by rjolda on March 26, 2024, 11:38:31 AM »
Hi All,
I have edited custom.css to make the font on my mobile phone screen so that it is x-small.
I have managed to edit a lot of the text in the browse grid to x-small text with the following css in custom.css.
@media screen and (max-width: 640px){
        .nt-body-div{font-size: x-small}
   .nt-child-grid{font-size: x-small}
}

However, what I really want to do is make the whole grid presentation SMALLER
THe following is the Class that I want to make SMALLER in its entirety.
What are the CSS settings to make the whole Browse Grid ( class=" nt-child-grid" ) shrink to  only 50% of its
size?
Thanks,
Ron

This is the element:
<div class=" ">
<div id="sm_browsec_auto_small_screen-parent-container" class=" nt-child-grid" data-elem="child-table">
<div class=" nt-child-grid-cell" data-elem="child-cell" valign="top">
<div id="sm_browsec_auto_small_screen_div" class="nt-browse exists">
<div id="sm_browsec_auto_small_screen_header_div" class=" nt-header nt-browse-header"> See Autos</div>
<div id="sm_browsec_auto_small_screen_locator_b_div" style="display: none;"><table class=" nt-locator" data-loc="table">
<tbody><tr class=" nt-flex nt-locator-row" data-loc="row">
<td data-loc="prompt">
<div class="nt-locator-prompt"> :</div></td>
<td data-loc="input">
<div><input type="search" name="locator1sm_browsec_auto_small_screen" id="locator1sm_browsec_auto_small_screen" value="" class=" nt-locator ui-widget nt-entry ui-corner-all" data-do="lo" data-imm="true" size="20" placeholder="Search"></div></td>
<td data-loc="buttons">
<div id="sm_browsec_auto_small_screen_locate_b" class=" nt-flex nt-locator-button-set"><button type="button" name="" id="dLqg" value="Search" class="nt-flex nt-button nt-button-with-icon nt-locate-button ui-button ui-corner-all ui-widget" title="Click here to start the Search"><span class=" ui-icon ui-button-icon ui-icon-lightbulb"></span><span class="ui-button-icon-space"></span>Search</button>
</div></td>
</tr>
</tbody></table>
</div>
<div id="sm_browsec_auto_small_screen_table_resize_div" class="nt-" style="width: 500px; height: 500px;"><div id="sm_browsec_auto_small_screen_table_div" class=" ui-widget">
<table id="sm_browsec_auto_small_screen_tbl" class=" nt-browse nt-browse-table nt-browse nt-browse-table" data-elem="browse-table" style="opacity: 1;">
<thead class=" nt-browse-head nt-browse-table-header">
<tr id="sm_browsec_auto_small_screen_head" class="nt-browse-row nt-browse-table-row nt-browse-row-header sm_browsec_auto_small_screen-row-header ui-sortable" data-elem="browse-header-row">
<th data-col="1" id="head_66" class=" nt-browse-table-cell nt-browse-header-all-table nt-browse-header-not-selected ui-corner-top nt-browse-header-cant-select" data-elem="browse-header-cell" data-colname="Other66ServiceRequest">
<div class="nt-flex nt-browse-table-cell"><div class="nt-browse-header-text-cell">Service Request</div></div></th><!-- endCell [1] headerCell -->
 
Pages: [1] 2 3 ... 10