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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - FormFieldJavaScriptAction JavaScript Length
  FAQ FAQ  Forum Search   Register Register  Login Login

FormFieldJavaScriptAction JavaScript Length

 Post Reply Post Reply
Author
Message
Niels View Drop Down
Beginner
Beginner
Avatar

Joined: 26 Mar 09
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Niels Quote  Post ReplyReply Direct Link To This Post Topic: FormFieldJavaScriptAction JavaScript Length
    Posted: 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Niels View Drop Down
Beginner
Beginner
Avatar

Joined: 26 Mar 09
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Niels Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post 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>!");';
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store