Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
FormFieldJavaScriptAction JavaScript Length |
Post Reply
|
| Author | |
Niels
Beginner
Joined: 26 Mar 09 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: FormFieldJavaScriptAction JavaScript LengthPosted: 12 Jun 09 at 2:04AM |
|
Hi,
I am just playing around with JavaScript and some action for a button. But now I think I have a serious problem. It looks like that the method FormFieldJavaScriptAction has a restriction in the length of the JavaScript string; It complains if the Javascript string is longer than 255 character.... So If I would like to create more complex tasks by a button click It will not work? It there a way solve this problem? Regards Niels |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Jun 09 at 6:37AM |
|
Hi Niels!
I've never tried the complete length. If it's so like you're explaining then perhaps it's possible to work with AddGlobalJavaScript and GetGlobalJavaScript building your script regarding the special situation? Perhaps you can use code like this: <script src="http://www.sample.com/example.js" type="text/javascript"> ... to use external scripts? Cheers, Ingo Edited by Ingo - 12 Jun 09 at 6:50AM |
|
![]() |
|
Niels
Beginner
Joined: 26 Mar 09 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Jun 09 at 12:35AM |
|
Hi Ingo,
I can't use external JavaScript. The PDF files we are creating are used offline! (The user edits the form data local and submits it later when he is online again back to us) But the support told me that they will have a look in this matter. Thanks Cheers Niels |
|
![]() |
|
Rowan
Moderator Group
Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 Jun 09 at 11:10AM |
|
The 255 character limit is for string constants in Delphi, so it's nothing to do with Quick PDF Library. The easiest way around this to to break it up into multiple strings: LongString := 'app.alert("This is a Long message window ' + 'which can be displayed because the string Literal is ' + 'bigger than 255 characters long <spacefiller><spacefiller>' + '<spacefiller><spacefiller><spacefiller><spacefiller>' + '<spacefiller><spacefiller><spacefiller><spacefiller>' + '<spacefiller><spacefiller><spacefiller>!");';
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store