Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum
NetTalk Central
September 01, 2014, 03:25:23 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3 ... 21
1  NetTalk Web Server / Web Server - Ask For Help / Re: UPLOAD on: August 26, 2014, 11:58:57 AM
Check on Clarion help for RENAME. I think it should work.

Robert
2  NetTalk Web Server / Web Server - Ask For Help / Re: UPLOAD on: August 26, 2014, 07:25:58 AM
Hallo Walter,


The embed is on WebHandler: RenameFile > before Parent Call

Code:
! RECEIVE TPS OR PHOTOS
!-----------------------------------------------

CASE xExtractExt(clip(UPPER(p_filename)))
 ! Here you can put your condition
 ! I check for extension, but you can check for anything else

 OF 'TPS'
 OF 'JPEG' orof 'BMP' orof 'PNG'
 !do nothing

 OF 'JPG'

 !SSV name photo and path
 !--------------------------------------
  IF p_name = 'l:UploadFile'  !this is the name of upload variable     
     !Here you change the upload folder
       g:NEWPhotoALL = clip(self.site.WebFolderPath) &'\poze\'& p_web.GSV('MEM:ID_Membru') &'.JPG'
       p_filename = ''
       ReturnValue = Parent.RenameFile(p_name,p_filename,g:NEWPhotoALL)
     RETURN ReturnValue
   END
END



Robert
3  NetTalk Web Server / Web Server - Ask For Help / change background and color prompt for required fields on: August 26, 2014, 03:02:37 AM
Hallo,


Is there any way to change the background and color of a prompt when you try validate the record and you have some required fields?
Now the comments become red or if you have no comments it will show a small red cube. I would like to make red the prompt not the comment. Can I change some how this?

Thank you,
Robert
4  NetTalk Web Server / Web Server - Ask For Help / Re: What embed execute Session expire? on: August 21, 2014, 06:32:58 AM
Cool! and this way I don't need that parameter. ;-)  I will put just a link to login page.
Thanks,
Robert
5  NetTalk Web Server / Web Server - Ask For Help / Re: What embed execute Session expire? on: August 21, 2014, 05:53:52 AM
Hallo Bruce,


>>If you use the count-down timer then a URL is triggered when the count-down expires. But that call can have the effect of "touching" the session, and hence extending it for a further period. So the user is told "The session has ended" but in fact the session may actually exist for another cycle (typically 15 minutes.)

This is correct I tested before and I knew after the session expire will open the login form and it will extend again the session with another xx minutes you have setup in template.
For my project it was necessary to know when this session expire because I develop a mechanism to show user online and how much time they spend in one session. My code for logout is on Webhandler > DeleteSession. This works perfect. But when session expire then I have to wait again xx minutes until this embed execute the code so this will not reflect correct time spend for a user in that session.

Now I made a trick. I put a parameter on the link "?sessionexpire=1"

Code:
p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& clip(p_web.site.LoginPage) &'?sessionexpire=1'&'","countdown");')

and I read this parameter on the login page. If true then my code execute. For the moment it works ok.

If anyone have better method please share Shocked)

Thank you,
Robert
6  NetTalk Web Server / Web Server - Ask For Help / Re: Choose default open menu for Accordion on: August 21, 2014, 05:30:48 AM
Perfect!
Thank you Bruce!
Robert
7  NetTalk Web Server / Web Server - Ask For Help / Re: What embed execute Session expire? on: August 20, 2014, 01:37:29 AM
Hallo Kevin,

I put a trace on NotifyDeleteSession method in the webhandler and nothing there... when session expires this method is not called.

Robert
8  NetTalk Web Server / Web Server - Ask For Help / What embed execute Session expire? on: August 19, 2014, 10:44:55 PM
Hallo,


I would like to inject some code in the embed when this code excute.

Code:
[i]  if (p_web.GetSessionLoggedIn() AND p_web.PageName <> clip(p_web.site.LoginPage))
    ! parameter 1 is the session time
    ! parameter 2 is the name of the login page.
    ! parameter 3 is the id of the <div> in the html.
    stt.Trace('== countdown start ==')
    p_web.Script('startCountDown('& int(p_web.site.SessionExpiryAfterHS/100) &',"'& clip(p_web.site.LoginPage) &'","countdown");')
  end"[/i]

How can I detect and what code to write to know if session expire?

Thank you,
Robert
9  NetTalk Web Server / Web Server - Ask For Help / Keep user settings XML or TPS ? on: August 19, 2014, 12:48:55 AM
Hallo,


What is your choice for keep user settings?  XML or TPS?
Keep in mind if you have like 1000 users and more.... I'm thinking to keep them in xml but I think tps will be also easy to maintain.

Thank you for suggestions.

Robert
10  NetTalk Web Server / Web Server - Ask For Help / Re: Load user settings from xml safe on: August 18, 2014, 04:34:34 AM
Thank you Kevin and Bruce!
I will move them in a local group.
Robert
11  NetTalk Web Server / Web Server - Ask For Help / Load user settings from xml safe on: August 16, 2014, 10:57:04 PM
Hallo,


Now I keep all user settings in a xml file (save/load with xFile)
When user login, load xml into a Global Group unthreaded  then copy from group to session variables.
Can this go wrong some how?!?

What is your method in a multi-user application ? 

Thank you for any suggestions!

Robert
12  NetTalk Web Server / Web Server - Ask For Help / Choose default open menu for Accordion on: August 12, 2014, 11:33:28 PM
Hallo,


How can I set which menu to be open first time? I see now it will open the last menu you add.
I would like the first menu to be open.

Thank you,
Robert
13  NetTalk Web Server / Web Server - Ask For Help / Re: Browse in browse and search option on: July 28, 2014, 08:36:36 AM
ok, so at this stage it supported just as a child with couple of records... because navigate buttons doesn't work right?
Any schedule for this?

Thank you,
Robert
14  NetTalk Web Server / Web Server - Ask For Help / Browse in browse and search option on: July 28, 2014, 01:12:09 AM
Hallo,

I have a browse in browse that works ok. Now I want to put a search on the second browse (child browse). First time open ok, but when I try to search something it fail and refresh the page and the locator and navigation button dissapear ...
It is possible to have 2nd browse with locator like in the attached photo and to works?

Thank you,
Robert
15  NetTalk Web Server / Web Server - Share Knowledge / Re: Starting Threads inside the Web Server on: July 25, 2014, 12:37:22 AM
Thank you Bruce for this tip!
Also is there any other way to include web server in a AppFrame window? and this way we can start other windows on separate threads?
Or it's a chance to start web server on a MDI window?

Thank you.
Robert
Pages: [1] 2 3 ... 21
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search