In Javascript is there a way to create a "dynamic" variable which recognizes the page it is located on and then be able to refer (call) it in other scripts or links?
I don't know the proper programming terms, so bear with me.
So, for instance, in the Website Tracker code you define a global dynamic variable called [vCurrentPg].
Then that variable would be used as part of a name, ie.,...Zebra_[vCurrentPg]. When viewing or publishing, XWD would read page-1 and internally interprets the name as Zebra_1. If the name were used on page-9, internally it interprets the name as Zebra_9.
Similarly, a link could be created referencing this name, for instance ...'javascript:my_close('Zebra_[vCurrentPg])'.
The Name dialog dropdown list would display Zebra_[vCurrentPg].
Such a variable could be used for displaying page numbers or other page unique functions.
It would be helpful when creating names in complex, multipage sites and pare-down the Names' list.
JC
Bookmarks