This forum is for less technical discussions about the Drupal project, not for support questions.

Adding javascript validate bank account in webform

I have added to my theme file valid.js Webform_tpl.php and in with :

drupal_add_js ( webform_client_form_4() . '/valid.js' );
o
drupal_add_js(drupal_get_path('theme', 'bartik') .'/valid.js');

In the image fields of webform.

http://desmond.imageshack.us/Himg37/scaled.php?server=37&filename=valida...

I would need to call the function validar_ccc when the form is submitted and remove the correct ccc alert .... but I get.

But the truth can not get it to work. I've been trying this validation until full and there is no way. Please help, thanks for your time.

Y el valid.js:

function obtenerDigito(valor){
valores = new Array(1, 2, 4, 8, 5, 10, 9, 7, 3, 6);
control = 0;
for (i=0; i<=9; i++)
{
control += parseInt(valor.charAt(i)) * valores[i];
}
control = 11 - (control % 11);

if (control == 11) control = 0;
else if (control == 10) control = 1;

return control;
}

function numerico(valor){
cad = valor.toString();
for (var i=0; i var caracter = cad.charAt(i);
if (caracter<"0" || caracter>"9")
return false;
}

return true;
}

function validar_ccc (f)
{
if (f.banco.value == "" || f.sucursal.value == "" || f.dc.value == "" || f.cuenta.value == "")
{
alert("Por favor, introduzca los datos de su cuenta");
}
else
{

Drupal vs MVC framework?

For me drupal is flexible and powerful.

Please improve Drupal Help Document.

Hi All,

I'm pretty new to Drupal Development, Experience with Wordpress. As I'm a new bee, sometime I'm not able to work things out and like a every developer I go to Google to find the things that I'm missing while developing. Help that I prefer is Drupal help, but to my surprise I always see the code on help document and not actual help. Why I should come to Help document if I want to see code. I can see that code on my drupal setup. Help document should be explanatory about the function and not function code itself.

See wordpress help for example,

Drupal or other CMS or no way ...

Hi all,

... I want to make a Virtual Stock Game to play with some coworkers... where:
- i want to log users -
- make them buy some stocks from Nasdaq with play money.
- and daily publish a hall of fame table...

Would be really difficult to do this with Drupal ?? is there any module that can handle this ?

Some friend told me that its better to do with Joomla... ( i'll change my friends if not ;D )

Thank you in advance !

in_out

Drupal 6/7 - PayPal Module

Hi,

We plan to create a system where it can have multiple vendors. For payment, we plan to use PayPal.

So, I am looking for a module (if there is any) that can interact with PayPal and we can setup accounts for each vendor. Users can only select goods from one vendor at a time so we can dictate which vendor account to use for checkout.

Can someone please recommend a module?

Thanks

vBulletin just committed suicide

In the 'grow' Drupal area... perhaps with Liam M's vB to Drupal module could snag some good sites.

vBulletin just released their beta of vB 5 today. This was supposed to be the solution to the debacle that vB 4 was.

Unless it is radically transformed over the next two weeks.... I think they just killed themselves.

There are a lot of really big busy sites on vB. Perhaps this is an opportunity for the bigger Drupal houses to snag some clients looking to get out of vB3 and vB4 cause the future is not looking good at the moment.

Pages

Subscribe with RSS Subscribe to RSS - General discussion