Click here to Skip to main content
15,887,746 members
Home / Discussions / Web Development
   

Web Development

 
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 
Question<img> onclick event</img> Pin
sarah_chandran26-Feb-09 2:21
sarah_chandran26-Feb-09 2:21 
AnswerRe: onclick event Pin
vaghelabhavesh26-Feb-09 3:40
vaghelabhavesh26-Feb-09 3:40 
GeneralRe: onclick event Pin
sarah_chandran26-Feb-09 17:15
sarah_chandran26-Feb-09 17:15 
GeneralRe: onclick event Pin
vaghelabhavesh27-Feb-09 2:39
vaghelabhavesh27-Feb-09 2:39 
QuestionVOIP call phone over web site Pin
Member 219140625-Feb-09 20:44
Member 219140625-Feb-09 20:44 
AnswerRe: VOIP call phone over web site Pin
Expert Coming25-Feb-09 21:15
Expert Coming25-Feb-09 21:15 

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.