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

Pages: 1 ... 713 714 [715] 716 717 ... 736
10711
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

10712
Any chance of an example Casey?

Cheers
Bruce

10713
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

10714
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

10715
Hi Mike,

any chance you can post an example?

Cheers
Bruce

10716
You're thinking web Server Chris, whereas in this case it's web client...

cheers
Bruce

10717
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

10718
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

10719
Web Server - Ask For Help / Re: App won't run on remote web server
« on: March 31, 2008, 08:28:15 PM »
Hi Gregg,

As a guess, the most likely reason is a firewall on the server. Or possibly another program running on that port.

Here's how I'd debug it;

a) compile your app with the "suppress error messages" option unticked. This is on the WebServer extension.

b) run the app as an Exe on the server (not as a service, to start with.)

c) Run a browser _on the server_ and see if it works ok. If it does try running the browser on another machine on the LAN. If ok there, move out onto the WAN (if applicable.)

Cheers
Bruce

10720
Hi Paul,

What does your filter look like? The most common cause of slow browses is incorrect filter statements.

Also, since the browse is based on a VIEW (just like a normal Clarion browse) it would seem to me that you're better off using Prop:SqlFilter over Prop:Sql. Or better yet the SQL() funtion. See normal Clarion docs for more help on SQL().

In terms of placement - right click on the browse procedure and search for LOOP. This is the start of the browse loop, and you'll see code (and embed points) right before it where the filter can be set.

Cheers
Bruce

10721
Web Server - Ask For Help / Re: Problems Controlling RAM Usage
« on: March 31, 2008, 08:18:11 PM »
Hi Rob,

As you noticed, "I clicked on the "X" (close) button to drop it back into the system tray" is not minimizing. Actually it just hides the window.

>> The RAM usage dropped from 153M to 2M - the lowest I have EVER seen it in this app.

well no, it didn't. The "Working set" of ram dropped to 2M. In other words, what this is showing you (if nothing else) is that Task Manager "Ram" is not an especially useful measure for determining memory leaks or anything else. (There are more columns you can turn on though that are better at it.)

So it's behavior neither shows a problem, nor shows there-is-no-problem. As a measurement for this it is not actually relevant.

Cheers
Bruce

10722
Hi Mike,

the reverse of Rob's answer is also true - and possibly more in tune with your situation.
Set the HeaderTag, and Footer Tag options for that NetWebForm (Advanced tab) to
''
(quote quote)
I think that'll work.

If the menu bar is in the header proc then this answers both questions.

Cheers
Bruce

10723
Web Server - Share Knowledge / Re: Customising your own Styles
« on: March 28, 2008, 10:13:40 PM »
Hi Sukhendu,

All the procedures have a "Css Styles" tab. This is where you set the various Css styles for all the components on that window. Then you can also apply styles to browse columns, individual form fields, and so on if desired.

Cheers
Bruce

10724
Web Server - Ask For Help / Re: Problems Controlling RAM Usage
« on: March 28, 2008, 10:11:29 PM »
Hi Rob,

Obviously the possibility for memory leaks in clarion exist, just like any other language - but I think in this case you've got all the bases covered. The fact that it "grows" in memory use would concern me - and I think you should look further into that. Especially if it is "growing" while the program appears to be doing nothing. That suggests a timer somewhere (probably on the web server window) doing something.

Alas though - using Task Manager to determine Ram usage is misleading. Because Windows is smarter than you think.

What happens is basically this. You program uses the 150 Megs of Ram, finishes with it and "frees" it. Windows noticed this, but has nothing better to do with the Ram at the moment. No other program is wanting Ram, and it has plenty of Ram for anyone who does ask. Since your program used this ram recently, it "leaves" the ram assigned to your program for now. That's why the next request just reused that 150 megs.

You'll see this all the time with a normal clarion windows app. On trigger that Windows uses for "taking the ram back" is if the app is minimised. If you "minimised" the server you'd probably see the number change a lot.

If you right click in task manager there are many other memory things you can measure. (for example Virtual vs Physical memory). And in WinEvent there are some memory functions for returning more "accurate" memory numbers.

Cheers
Bruce



10725
Web Server - Ask For Help / Re: Email from a browse using it's data
« on: March 25, 2008, 06:28:05 AM »
Hi Gregg,

So you have the unique ID to identify the record.
Now you need to do a "fetch" from the file to get the rest of the record.

Cheers
Bruce

Pages: 1 ... 713 714 [715] 716 717 ... 736