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 - BColladay

Pages: 1 2 [3]
31
Bruce,

This only happens on mobile device browsers, it works fine on desktop browsers.  If you could, try it on a iPod touch or Android phone.

thanks

32
Stats:
Clarion 7.2 7600
NetTalk 5.1.0.0

We are developing a website on NTWS that is initially dedicated to mobile use: iOS, Android. 

There is one item that isn't working so swell.  We have a section called "Rounds" and when you go to insert one it opens a form to insert new data and 4 of the 5 fields have table lookups.

The first two lookups do fine but when you go to the third one, it starts wiping out the previous field.  Fill in field 3, 2 goes blank, fill in 4, 3 goes blank.

Again this happens only on the iOS and Android browser, but not on Safari or Chrome on the desktop.  Both mobile devices have java script enabled but I am guessing that it is java script related.

If you would like to see it in action here is how to do it:
On an iPhone, iPod touch or Android 2.1 or higher device go to:
http://securemobile.pdswebpro.com:89 in the browser

Client ID = Training Clinic
User ID = BJ
Password = [no password - blank]
Provider ID = 100
touch the blue and white check mark.-->

From the menu, choose "Rounds" -->
Click the + button to insert a new record-->

From here you can use the lookups to fill in the form fields,  you should notice the anomaly when you get to "Location ID"





33
It turns out I'm even more clueless than I thought, I was embedding in the Data section rather than the exe section.  For those of you wondering, that doesn't work.  Works beautifully now.

34
I am trying to do manual clean up in WebHandler  p_web.DeleteSession method. this is what I have there


Code: [Select]
lcl:FolderMask = PATH() & '\web\LoggedIn\patdocs\' & p_web.SessionID & '*.*'
DIRECTORY(FileList,lcl:FolderMask,ff_:Directory)
IF RECORDS(FileList) = 0
FREE(FileList)
EXIT
END
LOOP Ptr = 1 TO RECORDS(FileList)
GET(FileList,Ptr)
IF fileQ:ShortName = '.' THEN CYCLE.         !skip non
IF fileQ:ShortName = '..' THEN CYCLE.               !file entries
IF BAND(fileQ:Attrib,ff_:Directory) THEN CYCLE.            !skip sub-folders
REMOVE(fileQ:Name)
END
FREE(FileList)

I have this in my global map embed:
INCLUDE('CWUTIL.INC'),ONCE
I am getting errors indicating that it is not recognizing this include.

Illegal data type: PATH

Expected: <ID> & APPLICATION CLASS FILE GROUP INTERFACE ITEMIZE QUEUE REPORT VIEW WINDOW  -

Unknown attribute: FF_:DIRECTORY -

Expected: <ID> <LINEBREAK> ; CODE INCLUDE OMIT SECTION COMPILE PRAGMA GROUP ITEMIZE MAP  -

Any ideas?  Is that the wrong place for the include?

35
I need to do something like that too.  However I may need to set a timed event daily to delete strays since I won't manage this server once implemented.

I am having a problem right now on the Android browser, with the $$$ delete system, it deletes the file then Android tries to server the file.  Obviously that doesn't work.

My best case scenario would be to dynamically copy and open the file, then delete the files associated with that session when the session ends. I haven't looked at the session id for naming yet.  But that seems like the best bet.  Thanks

36
I desire to show a list of documents in a NetWebBrowse, On each row there is a view button which when clicked, would:

copy the file from a location on the hard drive to a folder inside the web folder

Open the document in a new window in the browser

Delete the document from the web folder
--------------------------------------------------------------
Currently I have a browse that using LinkToDoc:

Copies all of the documents associated with that browse when the browse loads.

When the view button is pressed the document is served in a new window and is deleted.

Then if you close the document, the view button won't work because the document no longer exists.


I saw the "send button click to server" insert on the "client-side" tab, can I do something there that would allow me to first copy the correct document into a WEB sub-folder, then open that document in the browser using a currently unknown magic power?  Oh and still delete it after served using $$$?

37
Web Server - Ask For Help / Re: JavaScript for every page
« on: November 11, 2010, 06:26:47 AM »
Allright!  Yes, that worked! (of course it did.)

Thanks.

38
Web Server - Ask For Help / Re: JavaScript for every page
« on: November 10, 2010, 03:06:23 PM »
I tried this(in red) here:

p_web.ProcessLink PROCEDURE(<string p_action>)

! Start of "NetTalk Method Data Section"
! [Priority 5000]

! End of "NetTalk Method Data Section"

  CODE
  ! Start of "NetTalk Method Executable Code Section"
  ! [Priority 1500]
 
  ! C5.5:  file{prop:name} = clip(self.site.appPath) & 'file.tps'
  ! [Priority 4000]
        self.MetaHeaders = '<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=1;"/>'
       
p_web.BodyOnLoad('setTimeout(function() { window.scrollTo(0, 1) }, 100);')

I get:
Invalid string (misused <...> or {...}, or literal is too long) - E:\source\PDS_Medical\PDSmobile\Source\PDSweb005.clw:531,26


39
Web Server - Ask For Help / JavaScript for every page
« on: November 10, 2010, 09:08:48 AM »
I have a javascript that I works in HTML files through this standard implementation:

<head>
<script language="javascript" type="text/javascript">
<!--
function initScreen()
{
setTimeout("window.scrollTo(0,1);",100);
}

function updateOrientation()
{
initScreen();
}
// -->
</script>
</head>

I saved the functions as a .js file (minus the html markup) and included them in the webserver custom script section.  It shows up in the source as:

<script src="/scripts/rotate.js" type="text/javascript"></script>

My question is:  How do I get this InitScreen() to fire when each page opens?

My JavaScript experience is limited to stealing and pasting from examples on the interwebs and copying their implementation.



Pages: 1 2 [3]