Home > Domino Tips > > Working with the "JavaScript" form
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Working with the "JavaScript" form


Page Nix
02.23.2000
Rating: -4.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


The "JavaScript" form Like a lot of Notes Web developers, I store my JavaScript code in documents where it can be accessed by multiple elements of the database. By keeping my JavaScript as separate documents from forms, I have a means for quickly updating the code without requiring a design refresh. In addition, I can make the changes with only Editor access, which is the highest level of access some developers are allowed once their databases are in a production environment. I'll summarize my method here. Create a form named "JavaScript." On this form, you will need two fields: Name and Code. The Name field is an editable text field where you will name the document. This name will be used by the @DbLookup formulas in our forms to find the documents. The Code field is an editable text field where you will place your JavaScript. To display JavaScript documents, I usually create a specific view just for them. You will probably want to hide this view to keep accidental edits and deletions from happening. Create a view now and name it whatever you like - just make sure that the alias is "JavaScript," because that is the name we'll use in the code to reference the view. The first column will need to equate to and be sorted by the value of the Name field, so that we can find the document when we perform a lookup. There is no need for any other columns in the view. Remember that the $$HTMLHead fields on the My Reports form and the $$ViewTemplateDefault form will be using @DbLookups to retrieve the JavaScript code from documents that are displayed in this view. For more information visit The View.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts