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.
10711
Web Server - Ask For Help / Re: Compile errors with buttons on browses (PR10)
« on: August 13, 2008, 05:51:59 AM »
Hi Bryan,
Strictly speaking it's a warning, not an error, but I've fixed it for PR11.
I'm hoping to get that uploaded tonight if possible because there are some other, more serious, issues in PR10.
Cheers
Bruce
Strictly speaking it's a warning, not an error, but I've fixed it for PR11.
I'm hoping to get that uploaded tonight if possible because there are some other, more serious, issues in PR10.
Cheers
Bruce
10712
Web Server - Ask For Help / Re: Sql AutoIncrement How to?
« on: August 11, 2008, 10:35:52 PM »
Hi Jorge,
>> I can't quit the validation at dict level, because FM3 requires it in order to create the backend autoincrement at the primary key.
I've chatted to Geoff, and we're both not sure that this statement is true. Is there something in the docs that leads you to believe you should do this?
Cheers
Bruce
>> I can't quit the validation at dict level, because FM3 requires it in order to create the backend autoincrement at the primary key.
I've chatted to Geoff, and we're both not sure that this statement is true. Is there something in the docs that leads you to believe you should do this?
Cheers
Bruce
10713
Web Server - Ask For Help / Re: html all the time
« on: August 11, 2008, 10:26:15 PM »
Hi Ray,
In the browser, if you right-click on the error window, and choose Source (View Source), then you should be able to see the name of the file it was asked for.
In which directory is your reservebad_h.htm page?
Cheers
Bruce
In the browser, if you right-click on the error window, and choose Source (View Source), then you should be able to see the name of the file it was asked for.
In which directory is your reservebad_h.htm page?
Cheers
Bruce
10714
Web Server - Ask For Help / Re: How to really time out
« on: August 10, 2008, 10:13:03 PM »
Hi Mike,
You're thinking of your app as a Program - and it's not a program it's a web site.
When you click on a link in the browser, that request is passed to the site.
All the timeout has done is delete your session. so effectively when you click on a link you are starting a new session.
Browses, Forms, Menus and so on can all be set to "require login". If you go to one of these and you need to login, then you'll be redirected to the login page. So make sure that what you _need_ to be logged in for, is set to be "require login". You can set this on the procedure itself, or on the template settings for the Web Handler.
Cheers
Bruce
You're thinking of your app as a Program - and it's not a program it's a web site.
When you click on a link in the browser, that request is passed to the site.
All the timeout has done is delete your session. so effectively when you click on a link you are starting a new session.
Browses, Forms, Menus and so on can all be set to "require login". If you go to one of these and you need to login, then you'll be redirected to the login page. So make sure that what you _need_ to be logged in for, is set to be "require login". You can set this on the procedure itself, or on the template settings for the Web Handler.
Cheers
Bruce
10715
News And Views / Re: NetTalk Pre-Release version 4.31 PR 10 available
« on: August 08, 2008, 10:20:29 AM »
Ok, PR10 is up.
I'm running out of things to fix - If I've forgotten something please let me know.
(I'm talking specifically about _bugs_ here, not features.)
I need to update the docs in a big way, especially the template docs, before 4.31 goes final.
Cheers
Bruce
I'm running out of things to fix - If I've forgotten something please let me know.
(I'm talking specifically about _bugs_ here, not features.)
I need to update the docs in a big way, especially the template docs, before 4.31 goes final.
Cheers
Bruce
10716
Web Server - Ask For Help / Inserting to SQL : Browse doesn't start on newly inserted record
« on: August 08, 2008, 07:15:31 AM »
A while back there was a thread, possibly more than one, requesting that after inserting a record, to a SQL backend, the browse should highlight the most recently inserted record.
The reason it doesn't work is because if you are using a server-side auto-incrementing key, then immediately after the insert the auto-incrementing-key-field is unknown.
We solve this (in version 4.31 PR10 and later) by doing an immediate SET & PREVIOUS - which will work almost all the time except when 2 users add a record "at the same time" and by "at the same time" I mean within a few thousandths of a second of each other.
There is a file driver solution documented here
http://www.softvelocity.net/community/blogs/clarion_6_tipstricks/archive/2006/03/09/701.aspx
But it only applies to build 9051 and alter, and I'm not having much joy making it work in my current Clarion build (9058) with MsSql 2000.
Cheers
Bruce
The reason it doesn't work is because if you are using a server-side auto-incrementing key, then immediately after the insert the auto-incrementing-key-field is unknown.
We solve this (in version 4.31 PR10 and later) by doing an immediate SET & PREVIOUS - which will work almost all the time except when 2 users add a record "at the same time" and by "at the same time" I mean within a few thousandths of a second of each other.
There is a file driver solution documented here
http://www.softvelocity.net/community/blogs/clarion_6_tipstricks/archive/2006/03/09/701.aspx
But it only applies to build 9051 and alter, and I'm not having much joy making it work in my current Clarion build (9058) with MsSql 2000.
Cheers
Bruce
10717
Web Server - Ask For Help / Re: Required field issue
« on: August 07, 2008, 11:09:12 PM »
Hi Brian,
The validation (field required) would typically be done when the form is Saved.
Since your button is not the Save button, the validation isn't occurring.
You could add _extra_ Save buttons to the form if necessary - but they would need to be constructed very carefully. So if you need to do this, then let me know.
Which I suppose begs the question - why you're not using the standard Save button, but another button.
Cheers
Bruce
The validation (field required) would typically be done when the form is Saved.
Since your button is not the Save button, the validation isn't occurring.
You could add _extra_ Save buttons to the form if necessary - but they would need to be constructed very carefully. So if you need to do this, then let me know.
Which I suppose begs the question - why you're not using the standard Save button, but another button.
Cheers
Bruce
10718
Web Server - Ask For Help / Re: Server Connection Failed
« on: August 07, 2008, 10:43:53 PM »
Hi Greg,
The FireFox tip is here:
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=467.0
There's also a thread somewhere (alas I can't find the link at the moment) which recommends not putting 2 web servers on the same window. (As is typically done when one server is SSL, and the other is not). There were some machines (browsers) which got an SSL error when you did this. I'm not sure if this is applicable in your case (the error doesn't look the same).
Lastly - you're still on version 4.24, which was a good build, but beware of getting too far behind. 4.30 is the current "official" build, and 4.31 is nearing release as well. The further behind you get the more likely there are to be "difficulties" upgrading. All these version-to-version issues (and to be fair there aren't many) are documented in the Version History.
Cheers
Bruce
The FireFox tip is here:
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=467.0
There's also a thread somewhere (alas I can't find the link at the moment) which recommends not putting 2 web servers on the same window. (As is typically done when one server is SSL, and the other is not). There were some machines (browsers) which got an SSL error when you did this. I'm not sure if this is applicable in your case (the error doesn't look the same).
Lastly - you're still on version 4.24, which was a good build, but beware of getting too far behind. 4.30 is the current "official" build, and 4.31 is nearing release as well. The further behind you get the more likely there are to be "difficulties" upgrading. All these version-to-version issues (and to be fair there aren't many) are documented in the Version History.
Cheers
Bruce
10719
Web Server - Ask For Help / Re: Strange Firefox 3 Behaviour
« on: August 07, 2008, 10:37:41 PM »
A summary:
FireFox 3 information here
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=467.0
Cheers
Bruce
FireFox 3 information here
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=467.0
Cheers
Bruce
10720
Web Server - Ask For Help / Re: Potential vulnerability
« on: August 05, 2008, 12:22:40 AM »
Hi Murray,
This technique goes by the rather fancy name of "HTML Injection".
By default NetTalk "encodes" form fields which the user enters, so that you can _see_ what they entered, but it doesn't _run_ what they entered.
In other words, by default, NetTalk is secure.
However, if you tick on the option "allow xHTML" for an entry field (and _specifically_ if you're not using the WYSIWYG HTML editor on the field) then NetTalk does not encode what the user enters.
Obviously if you want the user to add _some_ HTML, but not "bad" HTML, then you need to parse what they enter, and selectively remove stuff.
Cheers
Bruce
This technique goes by the rather fancy name of "HTML Injection".
By default NetTalk "encodes" form fields which the user enters, so that you can _see_ what they entered, but it doesn't _run_ what they entered.
In other words, by default, NetTalk is secure.
However, if you tick on the option "allow xHTML" for an entry field (and _specifically_ if you're not using the WYSIWYG HTML editor on the field) then NetTalk does not encode what the user enters.
Obviously if you want the user to add _some_ HTML, but not "bad" HTML, then you need to parse what they enter, and selectively remove stuff.
Cheers
Bruce
10721
Web Server - Ask For Help / Re: html all the time
« on: August 01, 2008, 10:32:22 PM »
Hi Ray,
I don't understand the question completely. But perhaps this will help.
In the web, you never go back. You only ever go forward. when you go from a browse to a form, you go forward. When you click on the Save button on the form, you go Forward (to the browse). And so on.
Sure you can set the URL for the save button to use, but I don't think this is your problem somehow...
Perhaps you could post a small example for us?
Cheers
Bruce
I don't understand the question completely. But perhaps this will help.
In the web, you never go back. You only ever go forward. when you go from a browse to a form, you go forward. When you click on the Save button on the form, you go Forward (to the browse). And so on.
Sure you can set the URL for the save button to use, but I don't think this is your problem somehow...
Perhaps you could post a small example for us?
Cheers
Bruce
10722
Web Server - Ask For Help / Re: Can SessionID go in a URL on a button
« on: August 01, 2008, 10:20:42 PM »
Hi Brian,
You're on the right track. You've just got too much stuff on the line. Try
BrowseOfficers?<!-- Net:s:SID-->
Cheers
Bruce
You're on the right track. You've just got too much stuff on the line. Try
BrowseOfficers?<!-- Net:s:SID-->
Cheers
Bruce
10723
Web Server - Ask For Help / Re: validate delete from a browse
« on: August 01, 2008, 05:37:12 AM »
Hi Kevin,
The PreDelete routine in the form is the place it _should_ go.
However it has been a long while since I played with the Delete code, so I won't swear to it.
Ray's issue is different - in his case he has a multi-component key.
Cheers
Bruce
The PreDelete routine in the form is the place it _should_ go.
However it has been a long while since I played with the Delete code, so I won't swear to it.
Ray's issue is different - in his case he has a multi-component key.
Cheers
Bruce
10724
Web Server - Ask For Help / Re: Are html validator errors going to cause problems?
« on: August 01, 2008, 05:34:47 AM »
Hi Mike,
The short answer is no, it's not a problem for browsers.
The slightly longer answer is that, from time to time, I feed the examples to the Validator and tidy up whatever I can. I don't think it's ever been _completely_ complaint (there are some button naming issues I need to sort out) but there are no "really bad" things as far as I know.
Cheers
Bruce
The short answer is no, it's not a problem for browsers.
The slightly longer answer is that, from time to time, I feed the examples to the Validator and tidy up whatever I can. I don't think it's ever been _completely_ complaint (there are some button naming issues I need to sort out) but there are no "really bad" things as far as I know.
Cheers
Bruce
10725
Web Server - Ask For Help / Re: track incoming IP address
« on: August 01, 2008, 05:31:13 AM »
Hi Kevin,
Mikes explanation is great. I can add very little except to say;
you can get the IP of the current request using
p_web.GetSessionIP()
Thus anywhere you are currently logging stuff, you can add the IP number of the client to your log.
Cheers
Bruce
Mikes explanation is great. I can add very little except to say;
you can get the IP of the current request using
p_web.GetSessionIP()
Thus anywhere you are currently logging stuff, you can add the IP number of the client to your log.
Cheers
Bruce