virtual application root in javascript? what's the "~" in js??
-
Has anyone had to find the virtual application root inside a javascript? I'm having some trouble with it. In the past, we have been able to use: var spellURL = "../CommonPages/SpellCheck.aspx"; inside our spell.js script. But we recently added a new level of subdirectories. So SOMETIMES we need another "../" in order for js to find the aspx page. So instead of trying to use relative paths, does anyone know the js equal of "~"?? fyi - i didn't design the new level of directories. That was PJ (Pre-Jessica) :^) Thanks, Jessica
-
Has anyone had to find the virtual application root inside a javascript? I'm having some trouble with it. In the past, we have been able to use: var spellURL = "../CommonPages/SpellCheck.aspx"; inside our spell.js script. But we recently added a new level of subdirectories. So SOMETIMES we need another "../" in order for js to find the aspx page. So instead of trying to use relative paths, does anyone know the js equal of "~"?? fyi - i didn't design the new level of directories. That was PJ (Pre-Jessica) :^) Thanks, Jessica
FYI - ended up using /AppName/CommonPages/SpellCheck.aspx Thanks, Jessica