Email:   
Home
In This Issue
Email a Friend
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
How to make your Flash site even flashier (continued)

Flash 5 comes with some great ActionScript commands. These are set commands, similar to Domino's LotusScript commands, which are also event driven. Flash 5 now comes with an ActionScript Reference Guide book, which covers some of the new ActionScript commands. I recently had the opportunity to use the methods of the ActionScript XML (eXtensible Markup Language) objects.

There are a number of ways you can translate information from your Flash form into Lotus Domino. If you're Web savvy, you can take advantage of the QuerySave Web Agent and utilize your "query_string" field. If you're into CGI (Common Gateway Interface) Scripting, you can post information into a script file and use the Post/Get commands to bring the information into Lotus Domino.

In order to keep this a simple process, I've decided to use the JavaScript method. This method is easily duplicated and takes only three steps to complete!

I'll show you how to complete these tasks using Flash 5. Once you start up Flash 5, don't be threatened by the large number of floating dialog command boxes. If you're already familiar with Flash 4, I'd recommend that you select Edit->Preferences from the Flash menu options and change the Timeline Options for Flash 4 settings, as shown in Figure A. This may even make Flash a little easier for beginners.

FIGURE A

You can adjust the Timeline Options to Flash 4 settings. Click picture for a larger image.

Three easy steps
First we're going to create some JavaScript within the Domino form that will pick up variables. Then we're going to create the necessary Flash elements (User Input Fields) on a Flash form, also known as "the stage." Finally, we'll create an action (button) within the Flash form that links the Flash elements to the Domino form via the JavaScript within the form.

It's that simple. I'll attempt to use naming conventions for my JavaScript and fieldnames, so you won't need to know JavaScript to follow this example.

Step one: Place some JavaScript code into your $$HTMLHead field
JavaScript functions are usually defined inside the <HEAD> </HEAD> because you often need those functions loaded before any other element of the Web page. The JavaScript is then included between <SCRIPT> </SCRIPT>.

To achieve this in a Domino form, you must use the $$HTMLHead field. The JavaScript functions are stored as formulas, so make sure that you replace all double quotes with \" and all single quotes with \' before pasting the script as a value formula for that field.

One cautionary note: Remember to hide the $$HTMLHead using the Hide-when formulas of the Property box for text.

When you press the Flash button, it will start your JavaScript, which will set the values in your Domino form.

Here's what the code should be:

"<SCRIPT Language=\"JavaScript\">" + @NewLine +
"<!--" + @NewLine +
"function update(JavFlashfieldname,JavFlashfieldemail)" + @NewLine +
"{" + @NewLine +
"document._DomFlashForm.DomNamefield.value=JavFlashfieldname" + @NewLine +
"document._DomFlashForm.DomEmailfield.value=JavFlashfieldemail" + @NewLine +
"document._ DomFlashForm.submit()" + @NewLine +
"}" + @NewLine +
"// -->" + @NewLine +
"</SCRIPT> "




[ Prev | Next ]

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
-- Advertisement --

2-Minute Tutorials
How do I...

  • integrate MS Office or OpenOffice with Notes?
  • create cross-tab reports and charts?
  • print serial letters and mailing labels?
  • create PDFs in Lotus Notes?


Check out the 2-minute tutorials here.
-- Advertisement --

INSTALL, UPGRADE NOTES CLIENTS WITHOUT VISITING EACH DESKTOP
Use InstallPump to automate your Notes R8 migration. InstallPump enables you to rollout Notes throughout the enterprise without visiting each desktop.

  • 100% fully automated Notes upgrades/installs.
  • Modify the Replicator Page, Address Book, and Desktop... and much more.

See for yourself. Full evaluation copy available at installpump.com.

Download your FREE evaluation copy of InstallPump today.

Copyright © 1998-2008, ZATZ Publishing. All rights reserved worldwide.
Editor's Login