I have a new window that opens up as a file manager and am creating a link that sends the file name (#name#) back to the form field in the opener page.
when I mouse over the link the variable #name# of the file link(eg "strategy.doc") is showed correctly in the status bar but when I click it I get the ("strategy" is undified) javascript error. Notice that it has also dropped the ".doc" part of the variable #name#
I have been tring to do this all morning, I have even made a function instead of running the javascript through the link and it gives me the same result.
My thoughts are that I cannot pass a period "." in the string to javascript write command....?
And, That the variable #name# needs to be enclosed with '#name#' in the write command.
Can anyone shed some light on my situation... and show me how to enclose #name# in the sting below with '#name#'.
By the way I know the function works because I can use it in a form with a submit button... but I do want to create a form field for this application.
my Script..
document.write("<a href='javascript

pener.document.form1.t_strategy. value=#name#;window.close();' >Click here</a>");