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

Pages: 1 [2] 3 4 ... 8
16
Web Server - Ask For Help / Re: Printing HTML created with TinyMCE
« on: September 09, 2012, 11:43:31 PM »
What if you wanted the formatted HTML to be part of a PDF report?

17
E-Mail - Ask For Help / Problem sending embedded images
« on: September 03, 2012, 01:57:51 AM »
I am forwarding an email by receiving it in NT and then sending it. It all works except for embedded images.

In the receive procedure I have ThisEmailReceive.OptionsDontSaveEmbeds = 0 which results in the embedded image being saved in the attachments folder as, for example, image001.png@01CD85C0.0BEE6400. However, this image is not being attached in the sending procedure as it is not listed in the attachment file list that is being passed from the receive procedure to the send procedure.

What do I need to do on the send side re this embedded image?

18
Web Server - Ask For Help / Scroll to top of form
« on: August 24, 2012, 04:36:49 AM »
I have a memory form which contains several browse procedures such that the form is always longer than the browser window. The problem is that it opens partly scrolled down and the user always has to scroll to the top.

I have determined that the following code (on a button) will scroll the form to the top: p_web.Script('window.scrollTo(0,0);')

What I want to do is embed this code somewhere so the form automatically scrolls to the top on opening (having populated the browses), but I cannot find an embed that works.

Anyone got any suggestions as to where to embed?

19
Thanks Bruce. I realise that there cannot be any direct communication and was thinking that maybe the javascript could set a session variable that could then be read? Is that possible and what javascript code would do that?

20
Web Server - Ask For Help / Interacting with a javascript "confirm" box
« on: August 23, 2012, 01:39:24 AM »
I can display a javascript confirm box using following:
p_web.Script('var r=confirm("Press a button"); if (r==true) {{x="You pressed OK!";} else {{x="You pressed Cancel!";}')

However, I am not sure how I could then act on the selection in my Clarion code?

21
Web Server - Ask For Help / Browse not displaying from top
« on: August 21, 2012, 07:13:46 AM »
I have a long browse (about 100 lines). When it  displays in the browser, the browser quite correctly uses a scroll bar to allow you to scroll up and down however, when the browse first displays, the view is about midway between the top and bottom and the user has to always scroll up to the top. How can I make it start at the top?

22
Web Server - Ask For Help / Re: SendEmail on a new thread
« on: August 20, 2012, 04:55:17 AM »
I get Syntax Error: No matching prototype available if I change the Web11 example to START(SendEmail, 25000, email)

I just realised that I need to remove the ,String from the Prototype so it just reads (String pParms) - that now compliles and works when STARTed.

23
Web Server - Ask For Help / SendEmail on a new thread
« on: August 20, 2012, 04:30:20 AM »
I am using sendemail based on Nettalk example. In the example it says that the SendEmail procedure can be STARTed as the parameters are passed as a group. However I get compile errors when I compile if I try and STArt it.

SendEmail(email)  works fine

But, START(SendEmail, 25000, email) gives compile errors

24
Web Server - Ask For Help / Re: Go to new page when when report run
« on: August 19, 2012, 10:15:23 PM »
Thanks Bruce, I understand that the Javascript that is used to call the report needs to open the Homepage. Can you or anyone help me as to what to embed and where that would achieve this?

Many thanks.

25
Web Server - Ask For Help / Re: Go to new page when when report run
« on: August 18, 2012, 01:52:40 PM »
But if I call the report without the Nettalk extension, surely it wont open in the browser?

26
Web Server - Ask For Help / Go to new page when when report run
« on: August 17, 2012, 06:19:20 AM »
I have a memory form which collects date range for a report and is set so the actions of the form run the Report procedure in a new tab (when the user clicks "Save" which is renamed as "Go").

This all works fine but I would like the memory form to close and for the HomePage to open when the user clicks Go (as well as opening the report in a new tab). I have tried embedding   p_web.Script(p_web.WindowOpen('HomePage')) but cannot find a place where it will not stop the report being run - effectively I need the report to run and then open the Homepage.

Any suggestions?

27
Ok I see p_web.HeaderDetails.ContentDisposition = 'attachment; filename="'&p_web.GetValue('name')&'"' in the example which is serving a static file. If I want to make a standard report (using Tracker PDF Tools) to download rather than open in the browser, what would I embed where?

28
I want to be able to open a generated PDF report as a "file" so the browser gives option of saving or opening, but at present they all open in a new tab in the browser.

By contrast, if I open a URL of a static file (including PDFs) it opens as I want with the option to save or open.

How can I make a genearated PDF report open the way I want?

Thanks

Ian

29
Web Server - Ask For Help / File Upload - limit file size
« on: August 15, 2012, 07:22:12 AM »
How can I limit the filesize of a file upload in a webform, preferably before the file is uploaded, if it is larger than x bytes?

Thanks

Ian

30
Web Server - Ask For Help / Change font of text entry box
« on: August 15, 2012, 05:42:45 AM »
I have a text entry box which is being displayed in the browser in a fixed font (Courier maybe?). How can I change the font to something else? I see a CSS tab but what would I put in which field?

Thanks

Ian

Pages: 1 [2] 3 4 ... 8