How to substitute /pls/apex/ dynamically when refering apex static js file
LogaaAug 6 2009 — edited Aug 10 2009hi,
Any one know how to substitute /pls/apex/ dynamically for accessing js,css static files inside apex application.
i have uploaded my apex application into online. end users download and install it into there server.
In reference of JS file i have given
<script type="text/javascript"
src="/' || v('WORKSPACE_IMAGES') || 'menu.js"></script>'
this code renders like this in run time
http://www.test.com:8080/wwv_flow_file_mgr.get_file?p_security_group_id=987654321033&p_fname=menu.js
path not found error is showing.
but actual path should be
http://www.test.com:8080/pls/apex/wwv_flow_file_mgr.get_file?p_security_group_id=987654321033&p_fname=menu.js
/pls/apex/ could not be hardcoded
because each user have there own settings in conf file.
for exp:
http://apex.oracle.com/pls/otn/f?p=4550:1:1372986659821471
here /pls/otn/
in my server it is
http://www.myservername.com/pls/apex
like v('IMAGE_PREFIX') for /i/ substitution , how to call my static file path including this /pls/apex/ dynamically?
thanks
Logaa