NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MikeR

Pages: 1 ... 14 15 [16] 17 18
226
Hi Joe I noticed in the new web3 example Bruce sets  two buttons now:

  p_web.site.SaveButton.TextValue = 'Login'
  p_web.site.SaveButton.MobileText = 'Login'

Perhaps thats it ?

227
I get the following output from debugview:

[13836] [st] Failed to load zlibwapi.dll
[13836] [netTrace][thread=3] NetTalk WebServer - unable to compress data - zlibwapi.dll Not found
[13836] [netTrace][thread=3] ValidateForm on ChangeRecord
[13836] [netTrace][thread=3] JMR invalid password:Login Failed. Invalid User/Password Pair - Try Again.
[13836] [st] Failed to load zlibwapi.dll
[13836] [netTrace][thread=3] NetTalk WebServer - unable to compress data - zlibwapi.dll Not found

I inserted the above 'JMR' p_web._trace line using the following code in the validate:update routine after do validate:record
you will notice the JMR trace message displays but the loc:invalid and loc:alert settings dont show on the browser ?
:

  ! The HASH test prevents the same form-post from being used "twice".
  ! This improves security on public computers.
! message(p_web.GetValue('loc:hash')& '-' & p_web.GetSessionValue,('loc:hash'),'before hash')
  if p_web.GetValue('loc:hash') = p_web.GetSessionValue('loc:hash') or TRUE
    ! login checking goes here. In this example a simple 'Demo / Demo" login will work. Your app will
    ! probably need a stronger test than that.
    use3:userlogin = loc:Login
!     message('hello')
    if  Access:Users.TryFetch(use3:sk_userlogin)
        loc:Invalid = 'Loc:Login'
        p_web.SetValue('retry',p_web.site.LoginPage)
        loc:Alert = 'Login Failed. Try Again.'
        p_web.DeleteCookie('loc__login')
        p_web.DeleteCookie('loc__password')
    else
        if  use3:password not = Loc:Password
            loc:Invalid = 'Loc:Password'
            p_web.SetValue('retry',p_web.site.LoginPage)
            loc:Alert = 'Login Failed. Invalid User/Password Pair - Try Again.'
            p_web.DeleteCookie('loc__login')
            p_web.DeleteCookie('loc__password')
            p_web._trace('JMR invalid password:' loc:alert)
        else
            if  use3:activeInd not = 1
                loc:Invalid = 'Loc:Password'
                p_web.SetValue('retry',p_web.site.LoginPage)
                loc:Alert = 'Login Failed. User Expired - Big Brother is watching you.... - Try Again.?'
                p_web.DeleteCookie('loc__login')
                p_web.DeleteCookie('loc__password')
            else
                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.ssv('XibsUser',use3:usercode)
                ! set the session level, and any other session variables based on the logged in user.
                p_web.SetSessionLevel(use3:useraccess)
                p_web.SSV('XibsUserName',use3:username)
                ! this next bit shows how the login & password can be stored in the browser
                ! so that it is "remembered" for next time
                if loc:remember = 1
                  p_web.SetCookie('loc__login',loc:login,today()+30)       ! note the expiry date. It's good
                  p_web.SetCookie('loc__password',loc:password,today()+30) ! form to make sure your cookies expire sometime.
                else
                  ! don't remember, so clear cookies in browser.
                  p_web.DeleteCookie('loc__login')
                  p_web.DeleteCookie('loc__password')
                End
            end   
        end
    end
  Else
    p_web.DeleteCookie('loc__login')
    p_web.DeleteCookie('loc__password')
  End

  ! delete the session values, so if the user comes back to the form, the items are not set.
  p_web.deletesessionvalue('loc:login')
  p_web.deletesessionvalue('loc:password')
  p_web.deletesessionvalue('loc:remember')
  p_web.deletevalue('loc:login')
  p_web.deletevalue('loc:password')
  p_web.deletevalue('loc:remember')

228
Web Server - Ask For Help / Re: NT 6 to NT 7 app upgrades
« on: December 13, 2012, 03:49:09 PM »
Thanks Works, in that it logs on but the alert message doesnt appear ?

229
Web Server - Ask For Help / Re: NT 6 to NT 7 app upgrades
« on: December 13, 2012, 11:27:23 AM »
My logins dont work either, nothing special ???

230
thx Bruce sounds like thats what I need.
Is there any netwebpage proedures I can look at to get a handle on how they work.

231
I want to send an email to a person with an html link to an update form
ie. www.mywebsite.co.za/yourdetails?id=23
When the user clicks on the link , he should be presented with a form (netwebform  I assume) to udpdate some info.
However the form to display depends on a few things I need to check first based on the paraments passed ?
ie (an error form or something)/
ie I need to get the id value , do some checking in the database and then decide which form with what data to present to the browser.


 

232
Yes thx Bruce , I updated to 6.44 it has solved half the problem.
The fields for compnay and contact are blanked out when I return from the update form.
these fields come from the contacts and companys files. the browse is for the placements file.
See attachment.

[attachment deleted by admin]

233
Hi I have a netwebform with multiple tabs.
Inside one tab is a netwebbrowse.
if the user clicks on the change button , the appropriate netwebform to update the browsed row is popped-up.
My problem starts on return from the update form.
The fields and buttons on the browse are protected. If you press the header field (sort) the browse refreshes correctly
See attached pics

[attachment deleted by admin]

234
6.39
Thx Bruce
I will look at the NetDemo

235
Web Server - Ask For Help / and the errors are......
« on: August 22, 2012, 05:01:45 AM »
and the errors are....

HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )
Via: 1.1 JMRISA2
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="JMRISA2.JMR.local"
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 718   

<HTML><HEAD><TITLE>Error Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<BODY>
<TABLE><TR><TD id=L_dt_1><B>Network Access Message: The page cannot be displayed<B></TR></TABLE>
<TABLE><TR><TD height=15></TD></TR></TABLE>
<TABLE>
<TR><TD id=L_dt_2>Technical Information (for Support personnel)
<UL>
<LI id=L_dt_3>Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
<LI id=L_dt_4>IP Address: 192.168.1.1
<LI id=L_dt_5>Date: 8/22/2012 12:59:08 PM [GMT]
<LI id=L_dt_6>Server: JMRISA2.JMR.local
<LI id=L_dt_7>Source: proxy
</UL></TD></TR></TABLE></BODY></HTML>

236
Web Server - Ask For Help / Re: Close form on clicking on save
« on: August 20, 2012, 12:07:55 PM »
where must it go back to ?
what must be displayed in the browser ?

237
When I am at home I connect to the internet without a proxy.
At the office, they say, because of security , I must surf through a proxy server.
I need to change the network proxy server settings in IE. from using at work to not using at home.
All the programs I use then work, they seem to pick up these settings from IE..

However.
My nettalk app calls some webservices.
It work well at home, but when I run from the office, I get proxy server errors.
1. How can I detect that I need to use a proxy server, and what settings
2. How do I tell nettalk to use the proxy settings


238
Web Server - Ask For Help / Re: Go to new page when when report run
« on: August 20, 2012, 02:52:05 AM »
I don't know if this will work for you, but the following javascript will display a pdf on your main page or any page
so you can save the report as a pdf and then display it with this code.
This code works with a hardcoded pdf name,
maybe someone can improve so we can use a variable.

<script language="javascript">
  if ((navigator.appName).match(/Explorer/i) != null)   {
    document.write('<OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH="100%" HEIGHT="500">');
    document.write('<PARAM NAME="SRC" VALUE="test.pdf"/>');
    document.write('</OBJECT>');
  } else {
    document.write('<EMBED src="test.pdf" width="100%" height="500" type="application/pdf">');
    document.write('</EMBED>');
  }
</script>

239
Web Server - Ask For Help / Re: Go to new page when when report run
« on: August 18, 2012, 10:08:24 AM »
Just call a standard report procedure (without the nettalk extension) on the server side code when the user presses the save button.

240
Thats the funny thing, there is no query button, its the standard little report progress window ?

ProgressWindow WINDOW('Report placement'),AT(,,142,59),FONT('MS Sans Serif',8,,FONT:regular), |
          DOUBLE,CENTER,GRAY,TIMER(1)
          PROGRESS,AT(15,15,111,12),USE(Progress:Thermometer),RANGE(0,100),#ORIG(Progress:Thermometer), |
            #ORDINAL(1)
          STRING(''),AT(0,3,141,10),USE(?Progress:UserString),CENTER,#ORIG(?Progress:UserString), |
            #ORDINAL(2)
          STRING(''),AT(0,30,141,10),USE(?Progress:PctText),CENTER,#ORIG(?Progress:PctText), |
            #ORDINAL(3)
          BUTTON('Cancel'),AT(46,42,49,15),USE(?Progress:Cancel),LEFT,ICON('WACANCEL.ICO'), |
            FLAT,MSG('Cancel Report'),TIP('Cancel Report'),#ORIG(?Progress:Cancel),#ORDINAL(4)
        END


[attachment deleted by admin]

Pages: 1 ... 14 15 [16] 17 18