Announcement

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

#1 2006-11-13 04:43:47

ddrmabuse
New member
Registered: 2006-11-13
Posts: 2

Xinha deactivates my own Javascript functions

Hi ... I designed a website using multiple javascript-functions for showing and hiding <div> areas ... Now I tried to install Xinha (which worked) but my own Javascript functions just don't work anymore. I already searched through the forum, but couldn't find anything regarding this topic. Anybody got the same experiences and can help me?

I include Xinha like that: between my <head></head> tags

<script language="javascript">
    _editor_url  = "<? echo $abspath; ?>xinha/"
    _editor_lang = "de";
</script>

<script type="text/javascript" src="<? echo $abspath; ?>xinha/my_config.js"></script>
<script type="text/javascript" src="<? echo $abspath; ?>xinha/htmlarea.js"></script>

<script language="javascript">
// HERE I GOT MULTIPLE FUNCTIONS THAT SHOW, HIDE AND POSITION <DIV> AREAS
</script>

Thx in advance, DDr. Mabuse

Offline

#2 2006-11-18 10:22:35

Lowlander
New member
Registered: 2006-10-24
Posts: 3

Re: Xinha deactivates my own Javascript functions

probably an onload conflict
Change

window.onload = xinha_init;

to

window.onload = function(){xinha_init(); my_init();}

Offline

#3 2006-11-19 17:34:32

ddrmabuse
New member
Registered: 2006-11-13
Posts: 2

Re: Xinha deactivates my own Javascript functions

Hi all ...

you were right, it was an onload problem. I just called xinha_init in my onload javascript function and tata ... works fine!!

thx for your great help

ddrmabuse

Offline

Board footer

Powered by FluxBB