Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form not submitted with CF9

3 views
Skip to first unread message

Andre

unread,
Jan 9, 2014, 3:44:14 AM1/9/14
to
Hello,

I have a strange problem. For a unknown reason, when I select a item to see
details, the system crash.

Technically:
When I select an Item in the list, I submit the form with the ID of the selected
Item and I call a function to extract data and display the result on the screen.

When I control, in the function, the content of the form, it is empty.
No fields, nothing.

The form isn't submitted.

What would be the reason why the form is not submitted to the server?

I work with CF9.

Your help will be appreciated.

Thank you
Best regards

Andre

Doncisco

unread,
Feb 10, 2014, 11:38:37 AM2/10/14
to
Andre,

may I suggest you post some code, such as the form code and the code on the page where the form posts to.

-cisco

André

unread,
Feb 17, 2014, 4:47:44 AM2/17/14
to
Hello,
I'm sorry to react to late, because my workload is heavy.
found below the part of the code with the problem.

Thank you

I don't known if you want more?

Best regards
André

The code is divided in two parts: Coldfusion and Javascript.



ColdFusion:

<form action="?event=#request.event.getArg('formEvent')#" method="post"
name="cherche">
<table style="width:97%" class="form" summary="">
<tr>
<td style="width:20%; text-align:left; color:##2A5FAA; font-size:1.2em;
font-weight:bold;">1) Select language:</td>
<td style="width:80%; text-align:left">
<select name="l_langue" id="L_langue" style="width:10%" onchange =
"ch_action(3,'')">
<cfloop query="request.langueResult">
<option value="#COMMODITIES_LANGUE#" <cfif #COMMODITIES_LANGUE# is
'#session.lg#'>selected="selected"</cfif>>#COMMODITIES_LANGUE#</option>
</cfloop>
</select>
</td>
</tr>
</table>
</form>

Javascript:

function ch_action(f, ac){
switch(f)
{
case 1:
.....
document.cherche.submit();
break;
case 2:
.....
document.charge.submit();
break;
case 3: // Formulaire sélection susbtance
if (ac.length > 0){
document.cherche.action="?event="+ ac;}
else{
document.cherche.action="?event=commodity.selection";
}
document.cherche.submit();
break;
default:
alert("Command Error");
break;
}
}


In article <93fdab75-1caa-4baf...@googlegroups.com>, Doncisco
says...
0 new messages