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.
10756
Web Server - Ask For Help / Re: WebBrowse with nested JOIN's
« on: April 20, 2008, 09:31:04 AM »
Hi Thomas,
As far as coding the View goes - any legal view structure can be done. there's an embed point _inside_ the view itself, so you can basically hand-code anything into the view that you like.
Cheers
Bruce
As far as coding the View goes - any legal view structure can be done. there's an embed point _inside_ the view itself, so you can basically hand-code anything into the view that you like.
Cheers
Bruce
10757
The Rest - Ask For Help / Re: Close a particular connection
« on: April 18, 2008, 07:43:50 AM »
Hi Rick,
yes that is the right method.
The WebServer calls that exact method whenever it finishes sending a reply. The call looks like this;
WebServer.closeServerConnection(self.RequestData.OnSocket,self.RequestData.SockID)
So that makes me think it's something else that you're doing that's killing the server, because the call above clearly seems to work ok.
cheers
Bruce
yes that is the right method.
The WebServer calls that exact method whenever it finishes sending a reply. The call looks like this;
WebServer.closeServerConnection(self.RequestData.OnSocket,self.RequestData.SockID)
So that makes me think it's something else that you're doing that's killing the server, because the call above clearly seems to work ok.
cheers
Bruce
10758
Web Server - Ask For Help / Regression testing volunteers for version 4.31 wanted
« on: April 16, 2008, 04:23:08 AM »
Hi All,
I have an internal build of NetTalk 4.31 which we are using on our NetTalk apps.
There are a number of substantive changes to the engine in this build, so I'm looking for 5 or 6 people who would be prepared to run this version on their apps to check for any regressions.
If you are currently releasing a NetTalk program, or about to release one, then this test is expressly not for you. The risk of regressions in this build is quite high - so I'm really interested more in folk who would not be materially affected by a regression that might be in for a day or two until a fix can be made.
If you're interested please drop me an email at
bruce at capesoft . com
Cheers
Bruce
I have an internal build of NetTalk 4.31 which we are using on our NetTalk apps.
There are a number of substantive changes to the engine in this build, so I'm looking for 5 or 6 people who would be prepared to run this version on their apps to check for any regressions.
If you are currently releasing a NetTalk program, or about to release one, then this test is expressly not for you. The risk of regressions in this build is quite high - so I'm really interested more in folk who would not be materially affected by a regression that might be in for a day or two until a fix can be made.
If you're interested please drop me an email at
bruce at capesoft . com
Cheers
Bruce
10759
Web Server - Ask For Help / Re: pre Web project question - Images
« on: April 14, 2008, 12:00:35 AM »
Hi Thomas,
I'm not sure if I understand your question 100%, but here's what I think you're saying.
You have a parent table (let's call it "User").
There is a related table (let's call it "Photos") which contains many records for each User.
(the record contains the path to the image on disk.)
You'd like to make a browse on Photos where each row of the browse is 5 photos wide?
yes, you can do this.
Regarding thumbnails - there are a few approaches to this. One is to store pre-thumnailed versions of each image. This is obviously the fastest. The other is to generate a thumbnail of the image on the fly. You can do this using a normal Clarion Image library - something like ImageEx or FreeImage should do fine.
cheers
Bruce
I'm not sure if I understand your question 100%, but here's what I think you're saying.
You have a parent table (let's call it "User").
There is a related table (let's call it "Photos") which contains many records for each User.
(the record contains the path to the image on disk.)
You'd like to make a browse on Photos where each row of the browse is 5 photos wide?
yes, you can do this.
Regarding thumbnails - there are a few approaches to this. One is to store pre-thumnailed versions of each image. This is obviously the fastest. The other is to generate a thumbnail of the image on the fly. You can do this using a normal Clarion Image library - something like ImageEx or FreeImage should do fine.
cheers
Bruce
10760
Web Server - Ask For Help / Re: pre Web project question - RTF control
« on: April 13, 2008, 11:55:39 PM »
Hi Thomas,
>> In my DB I have a RTF text. Is there anything like a RTF control for Web Server?
nothing that I'm aware of.
>> I think, I must go the HTML way.
yes, I think that's what usually happens.
>> Any ideas on libraries or so which convert RTF -> HTML ?
Google is your friend <g>... I haven't done any work in this direction, but others may chip in.
>> Is it possible to display the HTML text besides a browse (like a hotfield in ABC) ?
yes (whew).
cheers
Bruce
>> In my DB I have a RTF text. Is there anything like a RTF control for Web Server?
nothing that I'm aware of.
>> I think, I must go the HTML way.
yes, I think that's what usually happens.
>> Any ideas on libraries or so which convert RTF -> HTML ?
Google is your friend <g>... I haven't done any work in this direction, but others may chip in.
>> Is it possible to display the HTML text besides a browse (like a hotfield in ABC) ?
yes (whew).
cheers
Bruce
10761
Web Server - Ask For Help / Re: Issues with deployed app
« on: April 13, 2008, 11:48:29 PM »
Hi Gregg,
I'd start by checking 2 things;
a) the web folder obviously needs to be in the right place, and working. All the JS and CSS is in there, so if it was missing you'd get this effect.
b) You mention that the home page is a static page. So make sure all the necessary NetWebServer special bits are in there.
specifically;
1) the first line and
2) the bit inside the <head> section.
Cheers
Bruce
I'd start by checking 2 things;
a) the web folder obviously needs to be in the right place, and working. All the JS and CSS is in there, so if it was missing you'd get this effect.
b) You mention that the home page is a static page. So make sure all the necessary NetWebServer special bits are in there.
specifically;
1) the first line and
2) the bit inside the <head> section.
Cheers
Bruce
10762
Web Server - Ask For Help / Re: Entry field (String) reads 0,50 as 50
« on: April 11, 2008, 12:22:11 AM »
Hi Bjarne,
Some extensive testing later and I'm beginning to appreciate why the DEFORMAT command is more or less useless. I'd already re-coded it (the dFormat method) for the Time fields, and it appears that it could be a lot smarter for numbers as well.
I've re-coded the method to handle this though, and I think you'll be happy now.
(I'll send you the updated CLW in an email)
Sorry for the hassles.
Cheers
Bruce
Some extensive testing later and I'm beginning to appreciate why the DEFORMAT command is more or less useless. I'd already re-coded it (the dFormat method) for the Time fields, and it appears that it could be a lot smarter for numbers as well.
I've re-coded the method to handle this though, and I think you'll be happy now.
(I'll send you the updated CLW in an email)
Sorry for the hassles.
Cheers
Bruce
10763
Web Server - Share Knowledge / Re: When your browse won't go forwards and backwards - Gotchas I've found
« on: April 10, 2008, 11:55:28 PM »
Hi Rob,
the rules for xHtml are mostly simple.
a) every tag MUST be closed (ie either <tab></tag> or <tag />)
b) the html is case sensitive - so use lower case for everything
c) be VERY careful of special characters - specifically <, >, and &. these should be encoded (preferably in the #xx; format.)
d) Tags must nest correctly. ie <tag1><tag2></tag1></tag2> is not allowed.
Cheers
Bruce
the rules for xHtml are mostly simple.
a) every tag MUST be closed (ie either <tab></tag> or <tag />)
b) the html is case sensitive - so use lower case for everything
c) be VERY careful of special characters - specifically <, >, and &. these should be encoded (preferably in the #xx; format.)
d) Tags must nest correctly. ie <tag1><tag2></tag1></tag2> is not allowed.
Cheers
Bruce
10764
Web Server - Ask For Help / Re: Form - child browse - child form and validation
« on: April 10, 2008, 12:51:35 AM »
Any chance of an example Casey?
Cheers
Bruce
Cheers
Bruce
10765
Web Server - Ask For Help / Re: Entry field (String) reads 0,50 as 50
« on: April 10, 2008, 12:51:01 AM »
Hi Tor-Bjarne,
hmm. This is what I'd expect. (I haven't tested any of this.)
Consider the "normal" clarion number
1,234.56
this is equal to 1234.56
with your pic this changes to
1.234,56
So for an entry field I'd expect it to accept 1.234,56 or 1,234.56 but not both.
Or am I missing something?
We could make the formatting more fancy, but then how should the following entries be interpreted
1,234
1234,56
1234.56
1.234
1.234,56
1.234.56
Cheers
Bruce
hmm. This is what I'd expect. (I haven't tested any of this.)
Consider the "normal" clarion number
1,234.56
this is equal to 1234.56
with your pic this changes to
1.234,56
So for an entry field I'd expect it to accept 1.234,56 or 1,234.56 but not both.
Or am I missing something?
We could make the formatting more fancy, but then how should the following entries be interpreted
1,234
1234,56
1234.56
1.234
1.234,56
1.234.56
Cheers
Bruce
10766
Web Server - Share Knowledge / Re: When your browse won't go forwards and backwards - Gotchas I've found
« on: April 10, 2008, 12:43:50 AM »
Hi Rob,
If it's inside the <div> then it'll get regenerated (and resent) when the browse page changes.
ie on a sort-header change, prev / next and so on.
If it's inside the div, then it needs to be perfect xHtml. If the browse fails to work then I'm 99% sure it's not perfect (yet).
You should be ok to put it inside the div, if you want it refreshed all the time, but of course if it's static it's better outside the div anyway.
tip: if you have the project define
NetShowSend=>1
set in your app, then _outgoing_ responses from the server will be sent to DebugView as well. This is helpful to see what is going to the browser, and so where the bad html is. FireBug is also good for inspecting incoming async html.
Cheers
Bruce
If it's inside the <div> then it'll get regenerated (and resent) when the browse page changes.
ie on a sort-header change, prev / next and so on.
If it's inside the div, then it needs to be perfect xHtml. If the browse fails to work then I'm 99% sure it's not perfect (yet).
You should be ok to put it inside the div, if you want it refreshed all the time, but of course if it's static it's better outside the div anyway.
tip: if you have the project define
NetShowSend=>1
set in your app, then _outgoing_ responses from the server will be sent to DebugView as well. This is helpful to see what is going to the browser, and so where the bad html is. FireBug is also good for inspecting incoming async html.
Cheers
Bruce
10767
Web Server - Ask For Help / Re: Problem with shifting CSS on two side by side browses
« on: April 10, 2008, 12:06:50 AM »
Hi Mike,
any chance you can post an example?
Cheers
Bruce
any chance you can post an example?
Cheers
Bruce
10768
The Rest - Ask For Help / Re: Programmatically triggering Onclick event using client-side
« on: April 03, 2008, 07:38:57 AM »
You're thinking web Server Chris, whereas in this case it's web client...
cheers
Bruce
cheers
Bruce
10769
The Rest - Ask For Help / Re: Programmatically triggering Onclick event using client-side
« on: April 02, 2008, 08:06:29 AM »
Hi,
almost certainly the javascript is triggering an asyncronous GET. So you'd do a well-formed GET to simulate this. Probably with the header tweaked.
The best way to see it is to use a packet sniffer (Ethereal etc) to "see" the request if you do it manually. Pay attention to the headers.
Cheers
Bruce
almost certainly the javascript is triggering an asyncronous GET. So you'd do a well-formed GET to simulate this. Probably with the header tweaked.
The best way to see it is to use a packet sniffer (Ethereal etc) to "see" the request if you do it manually. Pay attention to the headers.
Cheers
Bruce
10770
Web Server - Ask For Help / Re: Validate a deletion from a browse - how?
« on: April 02, 2008, 07:05:32 AM »
Hi Casey,
I don't think I have too many examples of this,
but you can put your code into the
ValidateDelete routine in the form.
If the delete should fail, set the variable
Loc:Invalid
to something.
And set the variable
ANS = 0
Cheers
Bruce
I don't think I have too many examples of this,
but you can put your code into the
ValidateDelete routine in the form.
If the delete should fail, set the variable
Loc:Invalid
to something.
And set the variable
ANS = 0
Cheers
Bruce