Announcement

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

#276 Re: User Discussion & Help » How to I submit a New Ticket? » 2007-02-01 13:13:08

ray

I have changed the above link to a wiki page explaining how to create a ticket

#278 Re: User Discussion & Help » Replace all textareas? » 2007-02-01 07:13:50

ray
var xinhas = __xinhas; // or __htmlareas in loder versions
for (var i=0;i<xinhas.length;i++)
{
  xinhas[i]._textArea.value = xinhas[i].outwardHtml(xinhas[i].getHTML());
}

#279 Re: User Discussion & Help » Santex Error in IE » 2007-01-31 07:08:46

ray

Just give it a try and rename my_config.js to my_config.php

#280 Re: User Discussion & Help » Images not shown in Xinha textarea (found no help in existent posts) » 2007-01-30 16:18:06

ray

Try

xinha_config.baseURL = "http://localhost"; //without the slash at the end

this will leave you

src="/server/files/images/pantheon.jpg"

which should work

#282 Re: User Discussion & Help » Santex Error in IE » 2007-01-29 19:04:13

ray

Sorry, of course I meant the unparsed php code is an obvious error and there are various ways to fix it smile

#283 Re: User Discussion & Help » Santex Error in IE » 2007-01-29 17:47:42

ray

Yes, that's obvious. The solution is simple: just rename my_config.js to my_config.php

P.S. You can also put

AddType application/x-httpd-php .js

in a .htaccess file in folder (if you're running apache)

#284 Re: User Discussion & Help » Santex Error in IE » 2007-01-29 08:30:31

ray

Which is the file that contains the line? (The URL reported by IE error message is not always the file that contains the faulty js; also the line reported is usually not quite right).

The syntax you quote is OK, supposed you define the vars beforehand using

var varName;

Why do you use the $-naming? that is not usual in js.
Please give more information, an URL to have a look at might help solve the problem quickly.

#285 Re: User Discussion & Help » imagemanager » 2007-01-29 08:28:15

ray

Please give more information, an URL to have a look at might help solve the problem quickly.

#286 Re: User Discussion & Help » Replace all textareas? » 2007-01-29 08:27:55

ray

Well, from a quick look I don't see why it shouldn't have stopped working.

Please give more information, an URL to have a look at might help solve the problem quickly.

#287 Re: User Discussion & Help » [ImageManager] Can't insert image in IE7 » 2007-01-27 20:39:46

ray

Well, shouldn't the popup blocker prevent opening the window at all?

#288 Re: User Discussion & Help » [ImageManager] Can't insert image in IE7 » 2007-01-27 11:31:21

ray

Sorry can't reproduce the problem, everything works fine for me.

Only a blind guess: Clear the cache.

#289 Re: User Discussion & Help » EFM extended file manager - iframe height problem! » 2007-01-26 10:56:50

ray

I'm glad to hear that! smile

Remember: If somethings not working right,  give a link, so we can have a look and quickly sort this out. This helps you, us, and everybody.
Also you should create a ticket.

#290 Re: User Discussion & Help » CSS management plugin for Xinha » 2007-01-26 10:50:31

ray

Always have been thinking about something like this. looks quite nice on the first glance, will have a deeper look into that later

But you should really create a ticket! You can login with guest/guest

#291 Re: User Discussion & Help » EFM extended file manager - iframe height problem! » 2007-01-26 09:21:29

ray

Thank you for the example, that helped!
I have located the problem and I think how to fix it.
1. Open XinhaCore.js
2. locate the function Xinha.viewportSize
3. replace it by this version

Xinha.viewportSize = function(scope)
{
  scope = (scope) ? scope : window;
  var x,y;
  if (scope.innerHeight) // all except Explorer
  {
    x = scope.innerWidth;
    y = scope.innerHeight;
  }
  else if (scope.document.documentElement && scope.document.documentElement.clientHeight)
  // Explorer 6 Strict Mode
  {
    x = scope.document.documentElement.clientWidth;
    y = scope.document.documentElement.clientHeight;
  }
  else if (scope.document.body) // other Explorers
  {
    x = scope.document.body.clientWidth;
    y = scope.document.body.clientHeight;
  }
  return {'x':x,'y':y};
};

Please report, if this solves the problem for you.
I have also commited this to the trunk.

#292 Re: User Discussion & Help » Standalone EFM » 2007-01-25 16:45:12

ray

If you have too much time and know, or would like to learn, javascript this might be a good opportunity wink

#293 Re: User Discussion & Help » Standalone EFM » 2007-01-25 16:38:51

ray

Honestly , I can't recall it exactly, sorry. But it was mainly stripping out the various input fields and adjusting the according js. IMO it's not possible with the current state of code to use it with various amounts of input fields without js errors.

Some time in the rather distant future I'd like to make the code more abstract to use it in various configurations, e.g. standalone, to insert Flash, or as a file Open/Save as.. box in Xinha

#294 Re: User Discussion & Help » WordCount plugin on the Mac » 2007-01-25 13:24:40

ray

Tested on FF 1.5.0.9 Mac & FF 2.0.0.1 Mac and it works for me (assumed you mean CharCounter)

#295 Re: User Discussion & Help » EFM extended file manager - iframe height problem! » 2007-01-25 11:07:07

ray

there is no function called int. What you do by this is creating  a javascript error and stop executing the resize function that originally should care for a resizing of the iframe relative to the window size.

If it keeps not to work, you better disable the calling of the function itself, which is in the last line of the file

//addEvent(window, 'resize', resize);

I'd like to have a look at a page where this error occurs, because, like I said, I could not reproduce it in my test browsers

#296 Re: User Discussion & Help » EFM extended file manager - iframe height problem! » 2007-01-25 09:12:38

ray

plugins/ExtendedFileManager/assets/manager.js

You can download a (hopefully ) fixed version from here http://xinha.python-hosting.com/file/tr … format=txt
I could not reproduce the error and therefore not test the fix

#297 Re: User Discussion & Help » Relative links upper, then root folder » 2007-01-25 08:25:47

ray

There are two settings:
1. $IMConfig['images_dir']  this is the directory in which the  php script scans for the files
2. $IMConfig['images_url']  this is the url to the above path, the browser has to be able to see this

You have to $IMConfig['images_url'] correctly. Your files folder should be inside the root folder, how else could the browser load the pictures?

#299 Re: User Discussion & Help » Dialogs as CSS layers/IFRAMEs » 2007-01-23 19:58:06

ray
jedi58 wrote:

niko is already working

is working is maybe not quite the right tense. This branch is a year old sad

#300 Re: User Discussion & Help » Dialogs as CSS layers/IFRAMEs » 2007-01-23 18:39:38

ray

window.top.Dialog should be it

Maybe you have a look at this (rather old) branch that has some work in this direction http://xinha.python-hosting.com/browser … w-dialogs/

Board footer

Powered by FluxBB