issue with custom profile fields
#1
Hi everyone, first of all, sorry for anything not clear in this message; i'll try to explain my problem the best i can.

We are trying to insert some required fields in the profile, wich are a little particular, to manage from where a user comes from.

we are not using the custom field addon, but we get some textbox elements with an associated ID. That ID is fundamental because that fields are managed by javascript code that dinamically connects town, province and region in hierarchical manner.

The homepage of the project that develop that kind of fields is here http://sourceforge.net/projects/cpcomuni

Actually the problem is that we are not able to find any way to specify the ID in the personal fields.
Anyone has a solution?
Or maybe it's possible to reference in usercp_profile mask a single component at time (and not "all required fields" or "all custom fields")?

If there is a way to do that, we can solve that issue modifying the ID of the component at hand with javascript.
The true problem is in fact that the "cpcomuni" script (the one linked above) to be viewed correctly, request a structure like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" >
		<head>
		  <title>CPComuni</title>
		  <!-- linkare il file cpcomuni.js e il css
		  	e' consigliato mantere il percorso della docuemt root per evitare
		  	conflitti -->
<script type="text/javascript" src="cpcomuni_js/cpcomuni.js"></script>
<link href="css/cpc.css" rel="stylesheet" type="text/css" />
</head>
	<body>

<input type="text" name="comune" id="comune" size="30" maxlength="125"  autocomplete="off" /><br />
<div id="search-results-comuni"></div>
<input type="text" name="provincia" id="provincia" size="30" maxlength="125"  autocomplete="off" /><br />
<div id="search-results-province"></div>
<input type="text" name="regione" id="regione" size="30" maxlength="125"  autocomplete="off" /><br />
<div id="search-results-regioni"></div>

</body>
</html>

As you can see, we need a precise structure for that component, with <div> elements between components.

Are there any solutions to that kind of problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)