CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Promblem with Standalone
Pages: [1]

Author Topic: Promblem with Standalone  (Read 1981 times)

zuesty

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 4.1.1
  • CMS version: Joomla! 2.5.3
Promblem with Standalone
April 03, 2009, 12:53:17 pm
Joomla 1.5.9/CiviCRM 2.2.beta2

I have created a basic profile to collect First Name, Last Name and Email that I'm trying to use standalone. Last night when I created the page everything was working fine but now its not. I'm not sure what is happening but when you submit the form you don't get any errors, it simply takes you to the redirect page and doesn't submit the form.

I think it might be my submit button. I am using an image for the submit button, here is the code:

<input class="form-submit default" accesskey="S" name="_qf_Edit_next" value="Join WNA" src="/images/submit.jpg" type="image" />

I just changed type to "submit" and it started working. I switched back and its still working. Can someone explain whats happening.

Please help. Here is the link to the standalone form: http://www.whatnowamerica.org/mailing.html

Thanks a lot
« Last Edit: April 03, 2009, 12:57:05 pm by zuesty »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Promblem with Standalone
April 03, 2009, 01:32:16 pm

not sure why it did work when you switched it back to image? maybe it was caching the older html for some time

can u also add this line to your code

<input name="_qf_default" type="hidden" value="Edit:next" />

so the form knows what action to process by default

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zuesty

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 4.1.1
  • CMS version: Joomla! 2.5.3
Re: Promblem with Standalone
April 03, 2009, 04:49:07 pm
Thanks, Lobo but still having issues. Excuse me for my noobie question: -what does the caching time depend on? I have now changed back to type="submit" but am not getting results unlike earlier. I also added the line you gave me. Still, nothing is happening.

Thanks for your input.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Promblem with Standalone
April 03, 2009, 07:55:41 pm

the caching time was just a random guess.

Can you cut-n-paste the complete html you are using for the form

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zuesty

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 4.1.1
  • CMS version: Joomla! 2.5.3
Re: Promblem with Standalone
April 03, 2009, 09:00:34 pm
<style type="text/css">
<!--
body,td,th {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #FFFFFF;
}
a:link {
   color: #FFFFFF;
}
.texta {
 font-size: 10px;
 background-color: #CCCCCC;
 border: 1px solid #666666;
}
div.x
{
position:absolute;
left:0px;
top:0px;
z-index:-2
}
div.x2
{
position:absolute;
left:0px;
top:0px;
z-index:0
}
body {
   background-color: #041835;
}

-->
</style>
<title>What Now America - Welcome</title><div class="x" style="background-image:url('/images/citybg.png'); background-repeat:repeat-x; width:100%; height:200px"></div>
<div align="center" style="width:100%;  padding-top:50px">

<div align="center" class="x2" style=" width:100%; padding-top:15px"><img src="/images/splashlogo.png" width="300px" height="100   px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

<div align="center" style="width:600px; background-image:url('http://www.whatnowamerica.org/images/splashbg.png'); padding-bottom:5px; padding-top:20px; padding-left:25px; padding-right:25px">


<form  action="http://whatnowamerica.org/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=4&amp;reset=1&amp;" method="post" name="Edit" id="Edit" >






  <div>
  <p>&nbsp;</p>
    <p><font color="#041835" size="+2">Involvement - Empowerment - Pride</font></p>
   
    <p>
<input name="postURL" type="hidden" value="http://www.whatnowamerica.org/index.php" />
<input name="cancelURL" type="hidden" value="http://www.whatnowamerica.org/index.php" />
<input name="group[6]" type="hidden" value="1" />
<input name="_qf_default" type="hidden" value="Edit:next" />
</div>


<script type="text/javascript" src="/administrator/components/com_civicrm/civicrm/js/Common.js"></script>
<div id="crm-container" lang="en" xml:lang="en">

       
    <div><table class="form-layout-compressed"><tr id="editrow-first_name">
      <td class="label"><strong>
        <label for="first_name">  First Name
          *          </label>
      </strong></td>
      <td class="edit-value"><input maxlength="64" size="30" class="texta" name="first_name" type="text" id="first_name" /></td></tr><tr id="editrow-last_name">
        <td class="label"><strong>
          <label for="last_name">  Last Name
            *            </label>
        </strong></td>
        <td class="edit-value"><input maxlength="64" size="30" class="texta" name="last_name" type="text" id="last_name" /></td></tr><tr id="editrow-email-Primary">
          <td class="label"><strong>
            <label for="email-Primary">  Email
              *              </label>
          </strong></td>
          <td class="edit-value"><input maxlength="64" size="30" class="texta" name="email-Primary" type="text" id="email-Primary" /></td></tr><tr><td class="label"></td><td></td></tr></table>
    </fieldset></div>
   
    <div class="crm-submit-buttons">
  <p><img src="/images/youth2.png"></p>
  <p>
    <input class="form-submit default" accesskey="S" name="_qf_Edit_next" value="Join WNA" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="form-submit default" name="_qf_Edit_cancel" value="Skip" type="submit" />
    </p>
  </p>
  <p>&nbsp;</p>
      <p><strong>Help us provide a safe and supportive environment<br />
        in which youth are able to feel secure.</strong></p>
      <p align="right"><a href="http://www.whatnowamerica.org/index.php"><font color="#FFFFFF">SKIP&gt;&gt;</font></a> </p>
    </div>

</div>
<script type="text/javascript">
  </script>
 


<script type="text/javascript">
    function showGreeting() {
       if( document.getElementById("greeting_type").value == 4 ) {
           show('customGreeting');                   
       } else {
           hide('customGreeting');     
       }     
    }
cj(document).ready(function(){
   cj('#selector tr:even').addClass('odd-row ');
   cj('#selector tr:odd ').addClass('even-row');
});
</script>

</form>
</div>
</div>

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Promblem with Standalone
April 03, 2009, 10:31:34 pm

hmmm

sorry, not sure what is happening on your machine and why. i'll think about it and see if something pops up in my head

keep us updated if u make progress

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zuesty

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 4.1.1
  • CMS version: Joomla! 2.5.3
Re: Promblem with Standalone
April 03, 2009, 10:53:25 pm
Alright, thanks for your help, Lobo. I'll keep you updated on what happens.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Promblem with Standalone

This forum was archived on 2017-11-26.