Skip to content

Instantly share code, notes, and snippets.

app.directive('mysubmit', function(){
return {
restrict: 'A',
require: '^form',
link: function(scope, element, attrs, formCtrl)
{
console.log('found it');
element.on('click', function(event)
{
console.log('submitting form')
<script type="text/javascript">
var _bsw = _bsw || [];
_bsw.push(['_bswId', '4d127e6d5d74be0e70b15e482e1cdda738cd157eb6a556d11fa1482bb14f6221']);
(function() {
var bsw = document.createElement('script'); bsw.type = 'text/javascript'; bsw.async = true;
bsw.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'js.bronto.com/s/b.min.js';
var t = document.getElementsByTagName('script')[0]; t.parentNode.insertBefore(bsw, t);
})();
</script>
{
"orders_id": "0005181057",
"consignment_id": "a0005181057",
"customers_id": "0",
"customers_firstname": null,
"customers_lastname": null,
"customers_gender": null,
"customers_dob": "01/01/1900",
"customers_telephone": "111-111-111",
"customers_email_address": "anonymous",
@iBasit
iBasit / TheTruthGate.com-solution.php
Created October 6, 2011 20:14
GlobalQuran.com - without css auto-html for TheTruthGate.com - conflicting main. so unhiding the main
<?php
// html url to the application
$api_url = 'http://GlobalQuran.com/';
$api_key = '';
################## DO NOT EDIT BELOW THIS ###################################
if (!$api_url)
{
die('missing vaules, please fill the configuration values and try again!');
}
@iBasit
iBasit / auto-html-no-css.php
Created October 6, 2011 20:01
GlobalQuran.com - without css auto-html
<?php
// html url to the application
$api_url = 'http://GlobalQuran.com/';
$api_key = '';
################## DO NOT EDIT BELOW THIS ###################################
if (!$api_url)
{
die('missing vaules, please fill the configuration values and try again!');
}