Sadler
Member
Hi,
sure I have come across this before but can not remember how I fixed it so here is the problem.
I have a form which collects some data including a text field which has some code for an imagemap typed/pasted into it. The form works fine but when the data is submitted and I check the record the imagemap code has had a path inserted into it so the field has something like this entered into it:
<img src="<cfoutput>#attributes.imagemapurl#</cfoutput>" width="170" height="266" border="0"
usemap="#map" />
<map name="map">
<area shape="rect" coords="101,88,145,197" alt="Lounge" href="lounge.html" />
<area shape="rect" coords="17,19,150,67" alt="Kitchen" href="kitchen.html" />
</map>
When I check the record in fabrik it looks like this:
<img src="/domain.co.uk/directory/<cfoutput>#attributes.imagemapurl#</cfoutput>" width="170" height="266" border="0"
usemap="#map" />
<map name="map">
<area shape="rect" coords="101,88,145,197" alt="Lounge" href="/domain.co.uk/directory/lounge.html" />
<area shape="rect" coords="17,19,150,67" alt="Kitchen" href="/domain.co.uk/directory/kitchen.html" />
</map>
So it looks like the base path is being inserted by Fabrik/Joomla when the form is submitted. Any ideas on this one?
Cheers
Carl
sure I have come across this before but can not remember how I fixed it so here is the problem.
I have a form which collects some data including a text field which has some code for an imagemap typed/pasted into it. The form works fine but when the data is submitted and I check the record the imagemap code has had a path inserted into it so the field has something like this entered into it:
<img src="<cfoutput>#attributes.imagemapurl#</cfoutput>" width="170" height="266" border="0"
usemap="#map" />
<map name="map">
<area shape="rect" coords="101,88,145,197" alt="Lounge" href="lounge.html" />
<area shape="rect" coords="17,19,150,67" alt="Kitchen" href="kitchen.html" />
</map>
When I check the record in fabrik it looks like this:
<img src="/domain.co.uk/directory/<cfoutput>#attributes.imagemapurl#</cfoutput>" width="170" height="266" border="0"
usemap="#map" />
<map name="map">
<area shape="rect" coords="101,88,145,197" alt="Lounge" href="/domain.co.uk/directory/lounge.html" />
<area shape="rect" coords="17,19,150,67" alt="Kitchen" href="/domain.co.uk/directory/kitchen.html" />
</map>
So it looks like the base path is being inserted by Fabrik/Joomla when the form is submitted. Any ideas on this one?
Cheers
Carl