external form

Permalink
Can anyone please help me I need help with external form that has it's own .js file, or point me to articale?
I have looked in the help but can find anything?
Thank you

 
synlag replied on at Permalink Reply
synlag
copy concrete/elements header_required.php to elements/; edit it and insert your javascript here

i think with 5.3 you can add myblockscript.js to your form folder and it will be included automatically in the header
vincent replied on at Permalink Reply
Good day
Let me see if i got this? I add the .js file in the form folder? is that correct?
vincent replied on at Permalink Reply
Thanks for the help I have 5.2.1 so I did copy the header_required.php. now I am going to need some help to edit this php, I have the following file that is requered for the form to work.
CaptchaSecurityImage.php
livevalidation_standalone.js
monofont.ttf
reset-fonts-grids.css
consolidated_common.css
Now how would I edite the header_required.php, the page that I am adding the form to is called Spitbraai.

Please can you help me with this.
Thanks
synlag replied on at Permalink Reply
synlag
put the following file types
*.css into css/
*.php into helpers/
*.js into js/
copy header_required.php into elements/ and add
$this->addHeaderItem($html->javascript('my.js'));
$this->addHeaderItem($html->css('my.css'));

beneath the core includes
vincent replied on at Permalink Reply
Thanks working on it now? where do i put the .ttf file
Thanks
Remo replied on at Permalink Reply
Remo
Why do you need a ttf file? Do you want to use your own font?

A form doesn't need a ttf file unless you're a graphic designer that thinks the standard fonts aren't nice enough..
vincent replied on at Permalink Reply
I have adde the following code in the header_required.php page

</script>

<?php
$this->addHeaderItem($html->javascript('livevalidation_standalone.js'));
$this->addHeaderItem($html->css('consolidated_common.css'));
$this->addHeaderItem($html->css('reset-fonts-grids.css'));
$this->addHeaderItem($html->helpers('CaptchaSecurityImages.php'));
$this->addHeaderItem($html->helpers('monofont.ttf'));

But I get the following error when runing concrete
Fatal error: Call to a member function javascript() on a non-object in C:\wamp\www\OceanLife-Concrete\elements\header_required.php on line 73
vincent replied on at Permalink Reply
I use this font in my validation of the information the user has entered.

Thanks
vincent replied on at Permalink Reply
Good day
I got the form working with the js file, but now it is nt showing the security image for the email form

I have added the CaptchaSecurityImages.php and the monofont.ttf file in the helpers folder is this correct
vincent replied on at Permalink Reply
Good day
Thanks for the help form is work sofar, but just the security images that does not display, I have added the CaptchaSecurityImages.php in the helpers folder, but on the form I get no display? how do I point the form to the CaptchaSecurityImages.php page that is in the helpers folder?
Thanks