I am trying to use some PHP code within Javascript statement. Now the syntax is a bit confusing bcoz of the quotes and I am unable to test it locally (cannot directly test it on the server)
So could you please confirm if the following line of code is correct;
"<a href='<?php somePHPFunction(" + $(this).text() + '.doc",10000,1,0); ?>'>" + $(this).text() + "</a>"
Basically I need the following after evaluation;
<a href="http://myServer.com/DocNum123.doc">DocNum123</a>
The PHP function will return the server side path and file name without the extension (http://myServer.com/someFile)
Also $(this).text() would return DocNum123