Forums

problem with acajoom

hisham alsayed 22 Jan, 2008
hi,,,
i build my web form with chronoForms and but my HTML code in it and add the code for Acajoom in specific part in my from like this
<h3>Suscriber Module</h3>
<!--  Beginning Module : Acajoom News 1.6.0   -->
<script language="javascript" type="text/javascript">
function submitacajoommod(formname) {
  var form = eval('document.'+formname);var place = form.email.value.indexOf("@",1);var point = form.email.value.indexOf(".",place+1);
  if (form.name.value == "" || form.name.value == "Name"«») {
    alert( "Please enter your name." );return false;
  } else if (form.email.value == "" || form.email.value == "E-mail"«») {alert( "Please enter a valid e-mail address." );return false;
  } else {
    if ((place > -1)&&(form.email.value.length >2)&&(point > 1)){form.submit();return true;
    } else {alert( "Please enter a valid e-mail address." );return false;
    }
  }
}</script>
<link rel="stylesheet" href="http://localhost/Joomla150/components/com_acajoom/css/acajoom.css" type="text/css" >
<form action="http://localhost/Joomla150/index.php?option=com_acajoom" method="post" name="modacajoomForm1">
<div class="" style="text-align:left">
<input type="hidden"  value="1" name="subscribed[1]" />
<input type="hidden" name="sub_list_id[1]" value="1" />
<input type="hidden" name="acc_level[1]" value="0" />
<input id="wz_11" type="text" size="10" value="Name" class="inputbox" name="name" onblur="if(this.value=='') this.value='Name';" onfocus="if(this.value=='Name') this.value='' ; " />
<br/>
<input id="wz_12" type="text" size="10" value="E-mail" class="inputbox" name="email" onblur="if(this.value=='') this.value='E-mail';" onfocus="if(this.value=='E-mail') this.value='' ; " />
<br/>
<input id="wz_2" type="checkbox" class="inputbox" value="1" name="receive_html"  checked="checked"  /> Receive HTML?
<br/> 
<input id="aca_22" type="button" value="Subscribe" class="button" name="Subscribe" onclick="return submitacajoommod('modacajoomForm1');" />

but it appear in my web form but it does not work functionality so what can i do ?

also how can i remove menus and every thing from joomla to get that type in attachment with this message or i should make my own template or give me link to free one please suitable with my page help me ASAP ,thank u

Edited to add code tags and reformat code<br><br>Post edited by: GreyHead, at: 2008/01/22 14:24
GreyHead 22 Jan, 2008
Hi hisham,

I'm not clear why you'd want to put this AcaJoom from in ChronoForms but I can tell you what seems to be wrong.[list]
  • Take the script portion (see below) without the script tags anp put it into ChronoForms JavaScript box.
  • Take the script tags and the form tag out of the remainder and paste that into the HTML code box.
  • Change the form name in the Subscribe button input to ChronoContact_modacajoomForm1
  • You may also need to have the Redirect URL set to http://localhost/Joomla150/index.php?option=com_acajoom depending on what you want this form to do.
  • [/list]Bob

    Script portion:
    function submitacajoommod(formname) {
      var form = eval('document.'+formname);var place = form.email.value.indexOf("@",1);var point = form.email.value.indexOf(".",place+1);
      if (form.name.value == "" || form.name.value == "Name"«») {
        alert( "Please enter your name." );return false;
      } else if (form.email.value == "" || form.email.value == "E-mail"«») {alert( "Please enter a valid e-mail address." );return false;
      } else {
        if ((place > -1)&&(form.email.value.length >2)&&(point > 1)){form.submit();return true;
        } else {alert( "Please enter a valid e-mail address." );return false;
        }
      }
    HTML code:
    
     <h3>Suscriber Module</h3>
    <link rel="stylesheet" href="http://localhost/Joomla150/components/com_acajoom/css/acajoom.css" 
    type="text/css" >
    <div class="" style="text-align:left">
    <input type="hidden"  value="1" name="subscribed[1]" />
    <input type="hidden" name="sub_list_id[1]" value="1" />
    <input type="hidden" name="acc_level[1]" value="0" />
    <input id="wz_11" type="text" size="10" value="Name" class="inputbox" name="name" onblur="
    if(this.value=='') this.value='Name';" onfocus="if(this.value=='Name') this.value='' ; " />
    <br/>
    <input id="wz_12" type="text" size="10" value="E-mail" class="inputbox" name="email" onblur="
    if(this.value=='') this.value='E-mail';" onfocus="if(this.value=='E-mail') this.value='' ; " />
    <br/>
    <input id="wz_2" type="checkbox" class="inputbox" value="1" name="receive_html"  checked="checked"  
    /> Receive HTML?
    <br/> 
    <input id="aca_22" type="button" value="Subscribe" class="button" name="Subscribe" onclick="return 
    submitacajoommod('modacajoomForm1');" />
    hisham alsayed 22 Jan, 2008
    hi
    hi it still not work and i use acajoom with that way (take script and but it as it is because i want to put it in specific please in my page)and also use your link but no result
    also how did u request from me remove <form> tag and it containts on the link which u sent it
    like that
    <form action="http://localhost/Joomla150/index.php?option=com_acajoom" method="post" name="modacajoomForm1">


    please help me asap it page does not work
    GreyHead 23 Jan, 2008
    Hi hisam,

    Why are you using ChronoForms to do this?

    ChronoForms will not work correctly if you include the form tag.

    If you include a url like that in the OnSubmit URL then ChronoForms does nothing and you are wasting your effort with it.

    Bob<br><br>Post edited by: GreyHead, at: 2008/01/22 19:04
    GreyHead 23 Jan, 2008
    Hi hisham,

    To do what exactly? I don't have acajoom but it looks as though this form is a page in their package??

    Bob
    flodo 31 Mar, 2008
    Did you already fix the problem with the acajoom subscription?
    GreyHead 01 Apr, 2008
    Hi flodo,

    Yes, I think so. What problem do you have?

    Bob
    This topic is locked and no more replies can be posted.