Link to home
Create AccountLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

absolute, relative paths in Java Script

I am using some java script to open a window. In my developement environment everything works fine. However in production, I am getting an object undefined error, and I believe that the path is not being recognized properly in production.

I tried removing the forward slash in front of the path, however that did not work:

window.showModalDialog('/COLSOM/AP/SignUpSheet.aspx?CurrentDateTime=' + new Date().getTime(),'','unadorned:yes;resizeable:1;

How do I need to set the path to my file? I also tried preceding the path with the ~ sign, however that did not work either.
Avatar of Ivo Stoykov
Ivo Stoykov
Flag of Bulgaria image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of brgdotnet


Well the site was moved to a different folder by and admin and it works. Yes, when I pasted the URL, it actually worked that way.