Announcement

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

#1 2005-04-19 06:05:34

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Detecting Xinha

Hi, I am trying to detect whether a field is a xinha or not from a popup.

I came up with this:

This works in firefox but not IE.

if(window.opener.fieldname){
      //is xinha
}else{
      // is not xinha
}

Does anybody know a better way?

Offline

#2 2005-04-19 06:38:17

adamp
Xinha Pro
Registered: 2005-03-14
Posts: 77

Re: Detecting Xinha

If you're working from the newbie guide, you can check the ID against the array of textareas you set to apply Xinha to (xinha_editors)

Offline

#3 2005-04-19 07:14:11

adam.jimenez
Xinha Pro
Registered: 2005-04-19
Posts: 50

Re: Detecting Xinha

That worked fine. Thanks a lot. I wsh they'd update the supplied examples!

Offline

Board footer

Powered by FluxBB