{"id":1383,"date":"2022-08-30T15:16:04","date_gmt":"2022-08-30T15:16:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/15\/jasny-twitter-bootstrap-implementation-give-an-error-on-tooltip-script-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:16:04","modified_gmt":"2022-08-30T15:16:04","slug":"jasny-twitter-bootstrap-implementation-give-an-error-on-tooltip-script-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/jasny-twitter-bootstrap-implementation-give-an-error-on-tooltip-script-collection-of-common-programming-errors\/","title":{"rendered":"Jasny Twitter Bootstrap implementation give an error on tooltip script-Collection of common programming errors"},"content":{"rendered":"<p>I have been implementing Jasny Twitter Bootstrap when I call validation for make a popover , an d it is giving me an error about a undefined var.<\/p>\n<p>I am attaching my code in order you could help me with this issue<\/p>\n<pre><code> $('#ReferalAdminAddForm').validate({\n                    rules: {\n                            'data[Referal][CustomerTypeId]': {\n                                    required: true\n                            },\n                            'data[Referal][town_id]': {\n                                    required: true\n                            },\n                            'data[Referal][nit]': {\n                                    required: true,\n                                    minlength: 11,\n                                    maxlength: 11,\n                                    digits: true\n                            },\n                            'data[Referal][name]': {\n                                    required: true,\n                                    minlength: 2,\n                                    maxlength: 128\n                            },\n                            'data[Referal][address]': {\n                                    required: true\n                            },\n                            'data[Referal][phone]':{\n                                    required:false,\n                                    minlength: 6,\n                                    maxlength: 16\n                            }\n                    },\n                    highlight: function(element) {\n                            $(element).closest('.control-group').removeClass('success').addClass('error').popover('toggle');\n                    },\n                    success: function(element) {\n                            element\n                            .text('OK!').addClass('valid')\n                            .closest('.control-group').removeClass('error').addClass('success');\n                    }\n            });\n<\/code><\/pre>\n<p>Console give this messsage<\/p>\n<pre><code>TypeError: b is undefined\n...\/2,left:c.left-d};break;case\"right\":g={top:c.top+c.height\/2-e\/2,left:c.left+c.wi...\n\nbootst....min.js (l\u00ednea 7)\n<\/code><\/pre>\n<p>My javascript call are:<\/p>\n<pre><code>\n\n\n\n\n\n\n\n\n\n\n\n      \n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-11-15 09:07:47. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have been implementing Jasny Twitter Bootstrap when I call validation for make a popover , an d it is giving me an error about a undefined var. I am attaching my code in order you could help me with this issue $(&#8216;#ReferalAdminAddForm&#8217;).validate({ rules: { &#8216;data[Referal][CustomerTypeId]&#8217;: { required: true }, &#8216;data[Referal][town_id]&#8217;: { required: true }, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1383","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1383"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1383\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}