Click here to Skip to main content
15,898,035 members
Home / Discussions / Web Development
   

Web Development

 
QuestionInternet Explorer 7 Tabs Pin
Brendan Vogt27-Feb-09 21:49
Brendan Vogt27-Feb-09 21:49 
QuestionISAPI + Apache Pin
Bram van Kampen27-Feb-09 14:22
Bram van Kampen27-Feb-09 14:22 
AnswerRe: ISAPI + Apache Pin
Curtis Schlak.27-Feb-09 19:09
Curtis Schlak.27-Feb-09 19:09 
GeneralRe: ISAPI + Apache Pin
Bram van Kampen1-Mar-09 15:45
Bram van Kampen1-Mar-09 15:45 
QuestionBHO with cookies Pin
tsahiB27-Feb-09 7:42
tsahiB27-Feb-09 7:42 
NewsProfessional Outsource Website Design & Development company Pin
petermechele27-Feb-09 6:27
petermechele27-Feb-09 6:27 
QuestionJS and PHP but only one object definition Pin
sortegrip27-Feb-09 5:38
sortegrip27-Feb-09 5:38 
Questionondrop event Pin
cooltoad12327-Feb-09 2:36
cooltoad12327-Feb-09 2:36 
AnswerRe: ondrop event Pin
Curtis Schlak.27-Feb-09 4:20
Curtis Schlak.27-Feb-09 4:20 
GeneralRe: ondrop event Pin
cooltoad12327-Feb-09 4:36
cooltoad12327-Feb-09 4:36 
GeneralRe: ondrop event Pin
Curtis Schlak.27-Feb-09 4:47
Curtis Schlak.27-Feb-09 4:47 
QuestionHow to Create web widgets with ASP.net ? Pin
rok_00726-Feb-09 14:41
rok_00726-Feb-09 14:41 
AnswerRe: How to Create web widgets with ASP.net ? Pin
Expert Coming26-Feb-09 20:59
Expert Coming26-Feb-09 20:59 
QuestionAddressing the *Home* folder - javascript [modified], Yes question revamped. Pin
Smith#26-Feb-09 6:17
Smith#26-Feb-09 6:17 
How do I address a home folder in javascript?
like from a sub directory, I would want to open a document from the directory, by giving a relative path.
document.open("~/myfolder/mydoc.htm");


To be precise, I'm generating the script itself. like

obj = "<a href="~/myFolder/mydoc.htm">click";
</a>


More clarifications
Home: Webroot

Where I am now : Webroot/MyPages/MyLittlePages/SPage.htm
Where I am now : Webroot/MyPages/MyBiggerPages/SPage.htm

Where I want to go: Webroot/TargetPage/Tpage.htm


From SPages, I want to open a doc in TargetPage. And I'm writing a common script generator that gets added as inner HTML. So no matter where I am, I should be able to call the script that expands the code & be able to open the doc.

here the "~" doesn't work. So everytime I'm hard coding the rootweb address. That totally sucks. Anybody help.

Thanks.

Beer | [beer]

modified on Friday, February 27, 2009 5:35 AM

AnswerRe: Addressing the Root folder - javascript Pin
Johnny ²26-Feb-09 20:44
Johnny ²26-Feb-09 20:44 
QuestionRe: Addressing the Root folder - javascript Pin
Smith#26-Feb-09 22:58
Smith#26-Feb-09 22:58 
AnswerRe: Addressing the Root folder - javascript Pin
Johnny ²27-Feb-09 21:34
Johnny ²27-Feb-09 21:34 
QuestionCan I insert image & button on the right-side of a table? Pin
THA200026-Feb-09 2:33
THA200026-Feb-09 2:33 
AnswerRe: Can I insert image & button on the right-side of a table? Pin
led mike26-Feb-09 4:39
led mike26-Feb-09 4:39 
AnswerRe: Can I insert image & button on the right-side of a table? Pin
Smith#26-Feb-09 6:25
Smith#26-Feb-09 6:25 
GeneralRe: Can I insert image & button on the right-side of a table? Pin
THA200026-Feb-09 10:09
THA200026-Feb-09 10:09 
GeneralRe: Can I insert image & button on the right-side of a table? Pin
Smith#26-Feb-09 23:02
Smith#26-Feb-09 23:02 
GeneralRe: Can I insert image & button on the right-side of a table? Pin
THA200027-Feb-09 3:06
THA200027-Feb-09 3:06 
GeneralRe: Can I insert image & button on the right-side of a table? Pin
Smith#27-Feb-09 4:03
Smith#27-Feb-09 4:03 
GeneralRe: Can I insert image & button on the right-side of a table? Pin
THA200027-Feb-09 5:26
THA200027-Feb-09 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.