Forums

Odd HTML code insertion

martin.simpson 19 Jan, 2010
Regularly, my code will get snippets of HTML inserted into the middle of it. The code inserted is:

<script type="text/javascript" src="http://www.benlippenregistrations.com/administrator/components/com_chronocontact/js/tiny_mce/themes/advanced/langs/en.js"></script>


Sometimes it appears in the middle of plain text, so it doesn't matter. But sometimes it gets inserted inside one of my HTML tags, breaking the entire form. It always shows up in the same place, unless I make significant changes to the code; then it will start appearing in a new place. I can delete the inserted code, click Save or Apply, then navigate back to the Form Code tab... and there it is again. It takes multiple deletions of the inserted code before it will finally save WITHOUT adding the code in, and it seems to be completely unpredictable whether it will save properly or not. Now every time I want to make any change to my form, I have to save again and again until it works correctly.
GreyHead 19 Jan, 2010
Hi Martin,

I don't recall that being reported before. Is this in the Wizard edit or the Form Manager | Form HTML box?

Bob
martin.simpson 19 Jan, 2010
Bob,

It's in the Form Manager | Form HTML box. The file being included makes me think it might be something to do with how ChronoForms is playing with Joomla!, so I deactivated the tiny_mce editor as thoroughly as I could... but it's still reinserting that same bit of code.

Marty
GreyHead 19 Jan, 2010
Hi Marty,

That sounds like something amiss with the installation or some conflict with something else on the page. ChronoForms does intall it's own tiny_mce editor and it's loaded in the admin page. But I can think of no reason why you'd end up with that code in the Form HTML.

If the site is on-line then by all means PM or Email me the url and a SuperAdmin login and I'll take a quick look.

Bob
ssuria 25 Jan, 2010
Hi, I have the same error,
<script type="text/javascript" src="http://XXXXXX.org/web2/administrator/components/com_chronocontact/js/tiny_mce/themes/advanced/langs/en.js"></script>
It is random and when I try to access to a form, sometimes I see a lot of code, and I can't save changes.
martin.simpson 28 Jan, 2010
ssuria - I see that sometimes too; if I just reopen the form it usually goes away. It's not nearly as insidious a problem as the self-inserting MCE code.

I've begun to notice the problem on another, entirely separate Joomla! install. Different server, different template, and the same problem cropping up. It seems as if it might be either connected with form code length (i.e., too long HTML and/or JavaScript) or the number of times the form has been saved/edited, but that's probably just me grasping at straws to explain things.
ssuria 29 Jan, 2010
Well, I think now it's OK. I have reboot apache and now I don't have any problem
martin.simpson 30 Jan, 2010
Hmm, interesting.

One thing I did determine after looking more closely at the issue is that I somewhat overreacted. Yes, it does insert the JavaScript call into my code-- but that call is not in the ACTUAL code unless I hit "Save" with it there.

In other words, when I open the form for editing, it has a random bit of HTML added to the code in the textbox. This does not represent the form code in the back end. It only causes my form to crash and burn if I save the code with the insertion in it. So it's a minor annoyance, but ChronoForms is not altering my code after it's been saved.
arkmedia 18 Feb, 2010
So did anyone figure why its being inserted in the first place?
krislac 18 May, 2010

Hi Marty,

That sounds like something amiss with the installation or some conflict with something else on the page. ChronoForms does intall it's own tiny_mce editor and it's loaded in the admin page. But I can think of no reason why you'd end up with that code in the Form HTML.

If the site is on-line then by all means PM or Email me the url and a SuperAdmin login and I'll take a quick look.

Bob



Hello Bob,

I have exactly the same problem since a few days. Did you found the solution for Marty and could you explain me how to repare it ?
Thanks a lot,
Kris-
GreyHead 19 May, 2010
Hi Kris,

I don't think that anyone has yet found what causes this, let alone a good solution :-(

Bob
This topic is locked and no more replies can be posted.