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 ... 703 704 [705] 706 707 ... 736
10561
Web Server - Ask For Help / Re: NetTalk web app within an Iframe
« on: September 11, 2008, 07:14:44 AM »
Hi Leroy,

Since the header and footer may change, why not make them iFrames in _your_ window, and fetch _them_ from the parent site.

ie
Make a whole page...
Consisting of 3 parts...
Top and Bottom part are iFrames, fetching the header and footer from the "parent" site.
Middle part is the dynamic bit.

this would work because neither the header, nor footer, include JavaScript - so would not incur the cross-site-scripting issue.

Alternatively - If the header and footer are "reasonably static" they could be stored as HTML "snippets" in the web folder, and included as needed using the <!-- Net:F:filename --> tag. so if they got updated on the main site, they'd get copied to your web folder as well, but it's not like you'd have to recompile or anything.

If you're _really_ clever you automate the update of the snippets so that your server "fetches" the header and footer from the main site from time to time.

Cheers
Bruce

10562
Mike,

I think that question deserves it's own thread...

Cheers
Bruce

10563
Web Server - Ask For Help / Re: _busy.gif showing all the time
« on: September 09, 2008, 10:37:39 PM »
Hi Mike,

Theres a 99% chance this just means you haven't copied the latest web folder to your app.
That's the usual case where I see it.

The other 1% would be because the "reply" from the server is not valid xHtml. In other words when you press whatever button, or row, or whatever that causes the Busy gif to appear, then the reply coming to the browser is not correct. If this happens the busy won't disappear.

Cheers
Bruce

10564
Web Server - Ask For Help / Re: NetTalk web app within an Iframe
« on: September 09, 2008, 10:31:22 PM »
Hi Leroy,

Yeah, you're gonna have a problem running JavaScript from one site inside another site. And that's effectively what you're trying to do here.

In essence, IE is doing a "security" thing - by preventing one site from "mixing" with another site. If you think about it for a bit, allowing two sites to "mix" is not good for the host site.

the solution of course is not to have two sites, but to host the whole thing as one site. Or to make two sites, but to make all the pages from the two sites distinct from each other. In other words you'd have no problem calling one site from the other, backwards and forwards, it's strictly a problem because you are wanting to "include" the one site inside another.

Cheers
Bruce

10565
News And Views / Re: NetTalk Pre-Release version 4.31 available
« on: September 09, 2008, 07:13:26 AM »
PR12 is now available
http://www.capesoft.com/ftp/public/prerelease/index.htm
Lots of little fixes. Please remember to update your web folder.

Cheers
Bruce

10566
Hi Sjoerd,

Which version are you using? That really doesn't sound like standard behavior.
Can you duplicate that effect in an example?

Cheers
Bruce

10567
Web Server - Ask For Help / Re: Pocket Pc and Nettalk
« on: September 07, 2008, 10:55:50 PM »
Hi Jorge,

Which version of IE is it running?
I've heard that the Opera browser has a LOT better success when running on hand-helds.

Cheers
Bruce

10568
Web Server - Ask For Help / Re: Switch Browses on forms dynamically
« on: September 04, 2008, 11:25:36 PM »
hi Kevin,

so
a) add all the browses you want to offer
b) make them "hide" based on some condition
c) change the condition value with the buttons press.
d) set the button to "refresh the browse form fields when pressed".

Cheers
Bruce

10569
Hi Sjoerd,

>> With that said I want to give me visitors the ability to use client-side sorting.

I don't recommend this at the moment. The client-side-sorting script has a number of unwelcome side effects.
Certainly you shouldn't use it on a page-loaded browse because it would only be able to sort what they can see. (and they'd lose the benefit of the locator).

It's probably that the client-side sorting will get a revamp (along with a lot of other JavaScript) in NetTalk 5 - but at the moment I don't have plans to re-do it for NetTalk 4. I think the server side sorting is more useful at the moment.

cheers
Bruce

10570
Web Server - Ask For Help / Re: Auto Refresh A Browse
« on: September 04, 2008, 07:00:35 AM »
Hi David,

I suppose the question is - what are you expecting to see?
"Current" shows the current position (as distinct from first, or last) so unless one of the records you are looking at changes, there won't be anything to see.

The other issue is if any of your browse columns have "allow xhtml" ticked on. Or you have allowed xhtml in the header, or on the xhtml tab. It what you've got is not _strict_ xHtml then the browse will not display. The most common mistakes are;

a) a tag not closed properly. like <p> (should be <p /> or <br> (should be </br>).
b) an "illegal" char, like & in the text.

Cheers
Bruce

10571
Web Server - Ask For Help / Re: Form Tabs - Tab Condition
« on: September 04, 2008, 06:57:30 AM »
unfortunately it's not easy to do this at the moment Kevin.

Cheers
Bruce

10572
Hang on, there's already a NetWebServerWorker.MakeErrorPacket method.
Although it's probably a fairly recent addition.

So in WebHandler you can override that (look at the code in netweb.clw for the sort of things you should put in there.

Cheers
Bruce

10573
Hi Vince,

I think the worker class needs a MakeErrorPage method, that usually just calls the Server class. Then you can override this method in the WebHandler (and there you will have the session ID).
I'll try and squeeze this into the next build (which is coming out tomorrow).

Cheers
Bruce

10574
Hi Charl,

well done. This could be simplified to

if not p_web &= NULL
  self.cancelled = 1
end

right before the
    IF ~SELF.Cancelled
line

I'll tweak the template to support this.
Thanks
Bruce

10575
The Rest - Ask For Help / Re: Anyone done an RSS feed?
« on: August 21, 2008, 10:11:52 PM »
Oh, and of course, what I didn't say is that there's no need for you to actually save the XML file. You could generate it, and send it from memory every time it is requested.

This would allow for some really interesting things. For example, say you had a software release RSS feed. So when you add something to this all the RSS readers alert their users, and the program is downloaded. By generating the XML file on the fly, you could "stagger" the information release.

For example, if 5 people are already downloading the release, then don't the release in any RSS requests. When the downloads are complete, then go back to announcing the release. In this way the "notification of the release" is balanced against the people downloading it, thus not overloading your server all in one go.

cheers
Bruce

Pages: 1 ... 703 704 [705] 706 707 ... 736