This patch relies on looking for the standard Actinic way of displaying the Other Info Prompt. In V6 and V7 this is usually something like:
<SPAN CLASS="actrequiredcolor"><BR>Name|Age|Sex<BR></SPAN>
and the patch picks out the bit between <BR> and the other <BR> which until your site have always surrounded the Prompt.
Now your site is generating
<SPAN CLASS="actrequiredcolor">Name|Age|Sex</SPAN>
so it looks like you've changed something in Design / Text to remove these <BR> tags - perhaps you wanted the prompt on the same line as the input box.
You can either:-
a) Replace the 2 <BR> tags so we ghet what's expected (this will affect the way these prompts are displayed throught your site)
2) change my JavaScript (the stuff you added to actiniccore.js)
replace the lines
Code: Select all
var p1 = pre.indexOf('<BR>');
var before = pre.substring(0, p1 + 4); // before the prompt.
var rest = pre.substr(p1 + 4); // whats after the <BR>
p1 = rest.indexOf('<BR>'); // final <BR>
with
Code: Select all
var p1 = pre.indexOf('or">'); // look for tail of <SPAN CLASS="actrequiredcolor">
var before = pre.substring(0, p1 + 4); // before the prompt.
var rest = pre.substr(p1 + 4); // whats after the <SPAN...>
p1 = rest.indexOf('</SP'); // final </SPAN>
This is untested so it'll be up to you to try it out. Best look at your page with Firefox and use its Tools / JavaScript Console to check for bugs.