logo

New Response

« Return to the main article

You are replying to:

  1. ...when you reference the same form from a different entry point.

    This idea may be obvious to some, but it can push a developer to keep with referencing the full URL.

    Jake? Comments/solution?

    Example:

    Same form, but editing vs. creating a new document. The appropriate action link is displayed with the bullet icon. Bullet.gif is stored in image resources. Editing the document requires an extra dot to reference the correct path of the gif since a view is specified upon edit (db/view/docUNID?editdocument). Creating a new document is launched from the root level (db/consultant?OpenForm).

    I could have computed the extra dot in a formula, but I wanted to illustrate the point (pun intended).

    bullet := "<img src=\"../bullet.gif\" width=\"9\" height=\"11\">";

    editActions := "<a href=\"JavaScript:document.forms[0].submit()\">" + bullet + " Save</a>";

    bullet2 := "<img src=\"./bullet.gif\" width=\"9\" height=\"11\">";

    newActions := "<a href=\"JavaScript:document.forms[0].submit()\">" + bullet2 + " Save</a>";

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: