Hello,
I’ve confused using ", ', /, , and [. would you please summarize when and
how to use them. i.e. the coding below, I do not why should use [, why use /
instead of .
“{]”
Db := @ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName;-1);“\”; “/”); "
"; “+”);
Generally speaking the browser does not care if you use / or . Nor does Notes. The problem comes that if you get the file path from Notes it returns a \ rather than a / In most cases if you take that onto your URL it will work just fine. However, the web standard is a /.Having said that if you send the Notes FilePath with the \ in it to a BlackBerry (not sure about other handhelds) it will reject it. So now we always (well almost always) swap out the \ with a / before passing the request on. It makes no difference to Notes/Domino and most browsers, but if you are writing for BB it will not work without this change.
(Broke the string so it wouldn’t try to generate the markup in passthru…)
\ : Escape character in Formula (most of the time). See it’s usage in the examples below. To actually USE the \ character, you need to double it. Example: to get “C:\notes\data”, you must enter/generate “C:\notes\data”.
/ : URL Pathing information: http://www.dominoguru.com/index.html The “/” in the URL seperates path content: protocol + (sep + sep) + domain + sep + page
“” : Typically anything in a “” is a text string. “Blah” is a text string containing Blah.
{} : A “new” method to allow escape characters to be auto-generated as required. {The word “Blah” is a string} generates “The word "Blah" is a string”.
’ ': In markup, a doublequote ( " ) or singlequote ( ’ ) can be used to create a string. However, sometimes you may want to generate a string within a string where escape characters are not allowed to be used. For example, the markup:
When this image is clicked, it passed the string “Blah” to the dofuction(); javascript function. Just a quick example of an instance where you might have different quote types…
: in the Domino auto-generated world, anything inside of the is treated as pass-thru HTML.