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.
436
Web Server - Ask For Help / Re: is it possible to display a PDF in a browse?
« on: November 03, 2011, 08:03:46 PM »
Dave,
Aye, it's possible. Can't speak to the wisdom of doing so though
Check out jQuery Media plugin (http://jquery.malsup.com/media/) which allows you to put a "div" on a page somewhere with _something_ in it.
Example code:
This was written over 12 months ago. Probably needs <13,10>'s for readability. Not sure how many version of the media plugin since then. But it works with what I've got.
Aye, it's possible. Can't speak to the wisdom of doing so though

Check out jQuery Media plugin (http://jquery.malsup.com/media/) which allows you to put a "div" on a page somewhere with _something_ in it.
Example code:
Code: [Select]
packet = clip(packet)&|
'<div id="your-pdf" class="your-pdf">'&|
'<button>Show/Hide latest PDF</button>'&|
'<a class="pdf-file" href="http://'&clip(SITEURL)&'/'&clip(PDF RELATIVE PATH)&'"></a>'&|
'</div>'&|
'<script>'&|
'$(".pdf-file").media({{width: 500, height: 800});'&|
'$("button").click(function() {{ $(".pdf-file").slideToggle("slow"); });'&|
'$(document).ready(function() {{ $(".pdf-file").hide(); });'&|
'</script>'This was written over 12 months ago. Probably needs <13,10>'s for readability. Not sure how many version of the media plugin since then. But it works with what I've got.
437
Web Server - Ask For Help / Re: NTWS - Printing PDF with Image..part 2
« on: November 03, 2011, 07:55:33 PM »
Don,
Yes, it was a Capesoft Draw reference (in my code, not sure about others).
I use Draw + FreeImage controls on my reports (which go to pdfs). It's the best way I've found thus far, and works fine with PDFTools.
Yes, it was a Capesoft Draw reference (in my code, not sure about others).
I use Draw + FreeImage controls on my reports (which go to pdfs). It's the best way I've found thus far, and works fine with PDFTools.
438
Web Server - Ask For Help / Multi-site Example - Toil, Bubbles and Troubles
« on: November 03, 2011, 07:53:00 PM »
Folks/Bruce,
I'm having some issues getting the Multi-site example to work.
The images below tell a story (can't embed like gmail, rats!)
1. The web admin page for the servers. I've changed the Host Name, DLL path, Web Folder and the Default Page (which had an "a" at the end? not familiar with that). I tested with defaults, wasn't working, which prompted me to make the changes, one by one). Still not working.
2. What firebug shows me (page doesn't exist).
3. My "settings" page in the main exe.
4. A snapshot of the webserver log.
Any ideas what I'm doing wrong?
[attachment deleted by admin]
I'm having some issues getting the Multi-site example to work.
The images below tell a story (can't embed like gmail, rats!)
1. The web admin page for the servers. I've changed the Host Name, DLL path, Web Folder and the Default Page (which had an "a" at the end? not familiar with that). I tested with defaults, wasn't working, which prompted me to make the changes, one by one). Still not working.
2. What firebug shows me (page doesn't exist).
3. My "settings" page in the main exe.
4. A snapshot of the webserver log.
Any ideas what I'm doing wrong?
[attachment deleted by admin]
439
Web Server - Ask For Help / Re: Phantom equates
« on: November 02, 2011, 05:35:43 PM »
Okay, that does sound very phantom-ish!
440
Web Server - Ask For Help / Re: Advanced charts in
« on: November 02, 2011, 05:23:25 PM »
Linas,
One of the gurus who sometimes roams this board (Oh Bill, Where Art Thou?) put me onto RGraph (http://www.rgraph.net/). It's free and VERY easy to implement.
One of the gurus who sometimes roams this board (Oh Bill, Where Art Thou?) put me onto RGraph (http://www.rgraph.net/). It's free and VERY easy to implement.
441
Web Server - Ask For Help / Re: Refreshing index page after logging in
« on: November 02, 2011, 05:17:32 PM »
Koen,
Does Firebug (if you're using it) show any bad xhtml? It's a big deal for Nettalk to function properly I've discovered (again and again, I'm a little slow).
Does Firebug (if you're using it) show any bad xhtml? It's a big deal for Nettalk to function properly I've discovered (again and again, I'm a little slow).
442
Web Server - Ask For Help / Re: Phantom equates
« on: November 02, 2011, 03:06:54 PM »
Koen,
Most likely they are being referred to somewhere else in the nettalk form template.
Like being "refreshed" by another field.
Most likely they are being referred to somewhere else in the nettalk form template.
Like being "refreshed" by another field.
443
Web Server - Ask For Help / Re: NTWS - How to print report with image
« on: November 02, 2011, 03:04:38 PM »
Don,
If you've got access to p_web, then you have the Uploads path.
p_web.RequestData.WebServer._SitesQueue.Defaults.UploadsPath.
That's the absolute path (not relative for web use).
If you've got access to p_web, then you have the Uploads path.
p_web.RequestData.WebServer._SitesQueue.Defaults.UploadsPath.
That's the absolute path (not relative for web use).
444
Web Server - Ask For Help / Re: Dynamic Heading in a NetWebForm procedure
« on: November 02, 2011, 02:56:50 PM »
If you know the ID of the header, you could use jQuery replaceWith (http://api.jquery.com/replaceWith/) .. Or am I missing something?
445
Web Server - Ask For Help / Re: Printing from NetWebForm or NetWebBrowse
« on: October 30, 2011, 04:27:54 PM »
Rupert,
Having a print button in a netwebform that "surrounds" a netwebbrowse is a great way to do things. I do it all the time.
The first question that comes to mind is .. What is the name of the page being opened on the button click?
Then if the page name is the report, you have an issue with the way the report has been set up. So I'd ask if you've got the correct templates at work (a PDF generator extension on the report + the Nettalk Report extension on the report). The nettalk docs have this laid out, very easy to follow.
If the page name is something else, is it a different procedure from your app?
Using the "procedure" field on the template will only call a procedure. So it has to be something from your app.
Having a print button in a netwebform that "surrounds" a netwebbrowse is a great way to do things. I do it all the time.
The first question that comes to mind is .. What is the name of the page being opened on the button click?
Then if the page name is the report, you have an issue with the way the report has been set up. So I'd ask if you've got the correct templates at work (a PDF generator extension on the report + the Nettalk Report extension on the report). The nettalk docs have this laid out, very easy to follow.
If the page name is something else, is it a different procedure from your app?
Using the "procedure" field on the template will only call a procedure. So it has to be something from your app.
446
Web Server - Ask For Help / Re: Form Drop field - setting a memory variable from another field
« on: October 28, 2011, 01:22:56 AM »
Oh, okay. Awesome. Good to know.
Actually, I heard your voice saying your reply .. So you have probably already told me that before.
Memory is my strong point.
Actually, I heard your voice saying your reply .. So you have probably already told me that before.
Memory is my strong point.
447
Web Server - Ask For Help / Re: NTWS - How to print report with image
« on: October 27, 2011, 07:56:37 PM »
Of late I've been creating some image-heavy reports in Nettalk, and the use of both PDFTools and Draw Image (+ FreeImage) controls on the reports has been invaluable.
Together they allow for a pretty awesome level of freedom.
Together they allow for a pretty awesome level of freedom.
448
Web Server - Ask For Help / Re: Form Drop field - setting a memory variable from another field
« on: October 27, 2011, 07:54:56 PM »
Devan,
Reading your last post reminded me about _Open and _Close file from p_web. My brain has tracked in Access:<filename>.UseFile() .. Need to standardise to use proper Nettalk etiquette.
Thanks!
Reading your last post reminded me about _Open and _Close file from p_web. My brain has tracked in Access:<filename>.UseFile() .. Need to standardise to use proper Nettalk etiquette.
Thanks!
449
Web Server - Ask For Help / Re: Is anyone else having problems with buttons since 5.30
« on: September 19, 2011, 11:45:41 PM »
Ha ha. That'll learn me for skim-reading.
Apologies!
Apologies!
450
Web Server - Ask For Help / Re: Is anyone else having problems with buttons since 5.30
« on: September 19, 2011, 10:54:39 PM »
Jeffrey,
Thanks for the info.
I've got Nettalk 5.36. So it might not be that?
Thanks for the info.
I've got Nettalk 5.36. So it might not be that?