ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Javascript custom form (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Javascript custom form
#4122
artistjewel (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Javascript custom form 7 Months, 1 Week ago Karma: 0  
Hi,

For email marketing we use icontact - who give us the signup code which includes javascript and I have been unable to get this to work in chronoforms. They offer you two choices of code, the standard copy & paste and custom so you can change the layout (which I used).

What I'm wanting to do is place this signup form (which is email field only) in the top module here: www.travelcafe.co.nz where the member sign in currently is. I'd also like to be able to use a custom button if possible?

To give you an idea... this is the code I end up with (after changing layout)

Code:

<style> .signupframe { border: 1px solid #FFFEFE; background: #ffffff; color: #226699; font-family: Arial, Helvetica, sans-serif; } </style> <form method=post action="http://app.icontact.com/icp/signup.php" name="icpsignup" accept-charset="UTF-8" onsubmit="return verifyRequired();" > <input type=hidden name=redirect value="http://www.travelcafe.co.nz/index.php/Thanks.html" /> <input type=hidden name=errorredirect value="http://www.icontact.com/www/signup/error.html" /> <script language=javascript> function verifyRequired() { if (document.icpsignup["fields_email"].value == "") { document.icpsignup["fields_email"].focus(); alert("The Email field is required."); return false; } return true; } </script> <div id="SignUp"> <table width="480" class="signupframe" border="0" cellspacing="0" cellpadding="5"> <tr> <td width="226" align=right valign=top> Breaking travel deals to your inbox </td> <td width="234" align=left> <input type=text name="fields_email"> <input type="submit" name="Submit" value="Sign me up!" /> </td> </tr> <input type=hidden name="listid" value="2677"> <input type=hidden name="specialid:2677" value="SWJE"> <input type=hidden name=clientid value="113347"> <input type=hidden name=formid value="613"> <input type=hidden name=reallistid value="1"> <input type=hidden name=doubleopt value="0"> </table> </div> </form>
Thanks, Laurel<br><br>Post edited by: admin, at: 2007/11/29 00:06
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4132
admin (Admin)
Admin
Posts: 1570
graphgraph
User Online Now Click here to see the profile of this user
Re:Javascript custom form 7 Months, 1 Week ago Karma: 22  
Hi Laurel,

So the problem is what exactly ? is that you can't get this code to work in a chronoforms page OR to place it in the top module position ? or something else ?

Cheers

Max
 
Report to moderator   Logged Logged  
 
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
  The administrator has disabled public write access.
#4135
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Javascript custom form 7 Months, 1 Week ago Karma: 59  
Hi Max,

I'm happy to try this - I think the problem is getting the iContact code into a module.

I need to do exactly this for my own site. Will try in the morning using the 'content module' extension.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#4136
artistjewel (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:Javascript custom form 7 Months, 1 Week ago Karma: 0  
Hi Max,

I can't get it to work in chronoforms. It goes into that module but there is some code on the first line that makes it drop to the next line where it can't be seen in that module. I moved it to a different module to test the form itself but nothing.

Laurel
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4162
GreyHead (Admin)
Admin
Posts: 2801
graph
User Offline Click here to see the profile of this user
Re:Javascript custom form 7 Months, 1 Week ago Karma: 59  
Hi Laurel,

I've got the basics working OK. Not quite a pretty in the basic Joomla and I haven't tested the redirects.

I had to change the form name in the JavaScript from 'icpsignup' to the ChronoForms name, in my case 'ChronoContact_test_form_13'.

The JavaScript part of your code, without the script tags goes into the Form Code JavaScript box in ChronoForms. The remaining HTML - without the form tags goes into the HTML code box.

Put - onsubmit=&quot;return verifyRequired();&quot; accept-charset=&quot;UTF-8&quot; - into the Form Tag attachment box in the ChronoForms General tab.

Save the form, create a Content item containing just {chronocontact}text_form_13{/chronocontact}

Add the content item into the Content Item module and the form should work OK.

Here's my test showing the JavaScript error dialogue.



Bob<br><br>Post edited by: GreyHead, at: 2007/11/30 00:49
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#4165
artistjewel (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:Javascript custom form 7 Months, 1 Week ago Karma: 0  
That seems to be working for me except I'm getting some extra text above it that I don't see in the html. I have put it here for now if you want to look http://www.travelcafe.co.nz/index.php/Travel-books-&amp;-guides.html

Thanks

Laurel

I've since gone to look in icontact for the email address I entered but nothing

Post edited by: artistjewel, at: 2007/11/30 03:45

Post edited by: artistjewel, at: 2007/11/30 04:22<br><br>Post edited by: artistjewel, at: 2007/11/30 10:55
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials