Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-02-17 19:54:26

Yermo
Xinha Authority
From: College Park, Md, USA
Registered: 2005-02-13
Posts: 143
Website

Javascript question: CWD?

To start getting up to speed on DOM javascript, I was investigating the ContextMenu image bug. I'm thinking it's probably a relative path issue (as I mention in the bug report).

When running inside a plugin, what's the current working directory?

Is it the directory containing htmlarea.js or is it the directory containing the plugin javascript code?

The paths used in  context-menu.js are "../images/ed_buttons...".


-----------------------------------------------------------------------------------------
Content Management with Business Intelligence      [url]http://www.formvista.com[/url]

Offline

#2 2005-02-17 21:03:18

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Javascript question: CWD?

Yermo wrote:

To start getting up to speed on DOM javascript, I was investigating the ContextMenu image bug. I'm thinking it's probably a relative path issue (as I mention in the bug report).

When running inside a plugin, what's the current working directory?

Is it the directory containing htmlarea.js or is it the directory containing the plugin javascript code?

The paths used in  context-menu.js are "../images/ed_buttons...".

Hmm.  It would be the htmlarea.js directory (_editor_url)


James Sleeman

Offline

Board footer

Powered by FluxBB