Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm going through the codecademy.com AngularJS course and have gotten stuck on the Bolt Network 2 project. I've narrowed the issue down to that for some reason when Angular run it does not insert html/js for the directive program-listing. I have dumped the code on github here: https://github.com/MichaelLeeHobbs/boltnetwork2
I have gone over ever line at least a 3-4 times and have compared it very closely to the App Market project. Whatever mistake I have made I cannot find it. :( On a side not what tools would you use to debug this? Chrome Dev Tools are not showing any errors :(
Thanks in advance!
change:
app.directive('program-listing', function() {
to:
app.directive('programListing', function() {
Angular changes the name internally. So you will name your directive cammel cased and use hyphens on the html
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 months ago.
This post was edited and submitted for review 4 months ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
I'm new to web development.
I made a website using HTML, CSS, and JavaScript and uploaded it to GitHub Pages. My JavaScript doesn't work there.
When running on my localhost, everything works fine, but on GitHub pages the javascript simply does not show up on my HTML page. If you check the IMPORTANTE_LER.md file, there's a youtube video on how it looks on localhost.
My repo: https://github.com/maruan-achkar/N2PAC_NEW
Console errors:
Probably the way you included your JS file path breaks in Github Pages because it can't find the file so adding a "./something.js" to your include might fix it.
<script src="./something.js" type="module"></script>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm trying to make a simple products scraping app, When I Start The Server On VsCode It Works Fine, But On Heroku It Only Scrapes The First Product And Blocks There, Please See The Photos, I'm Open To Any Suggestions.
image of it working on vsCode
image of it working on Heroku
Note: I had the same problem on vs code before (the same project) and solved it but it's not working on heroku. The problem was that an await never returns anything it just blocks the code so the server stays on that line forever.
I dont think the problem is in heroku, maybe you need to add catching errors in your application, and see what cases the trouble.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I'm using Angular's ng-include in my SPA project and, though things appear to be working fine, I'm getting the following error:
angular.js:12116 SyntaxError: missing ) after argument list
at http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:2:2622
at Function.m.extend.globalEval (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:2:2633)
at m.fn.extend.domManip (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:3:23107)
at m.fn.extend.append (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:3:20620)
at .<anonymous> (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:3:22151)
at m.access (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:3:3399)
at m.fn.extend.html (http://127.0.0.1:49463/Public_Libs/JQuery/jquery.js:3:21736)
at link (http://127.0.0.1:49463/Public_Libs/Angular/angular.min.js:251:377)
at aa (http://127.0.0.1:49463/Public_Libs/Angular/angular.min.js:71:279)
at Z (http://127.0.0.1:49463/Public_Libs/Angular/angular.min.js:60:329) <div class="panel-body slide-animate-container ng-scope" ng-include="Get_Current_Sub_Page_in_Main_Panel()">
I don't quite see what the error could be.
I guess that your function function in your code lose syntax[)].You'd better check it clearly or use JS hint.
The error was in a piece of code I copied-pasted from Facebook (interesting...). Indeed, a ")" was missing.
Thanks to all for your comments and suggestions.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I'm trying to build a dashboard with AngularJS where I have a couple of different routing options. On some of those options (pages) I'm trying to use a TinyMCE editor.
I've written a directive for the textarea and tinymce and that works fine.
The problem I'm facing now is that whenever I switch options (pages), the TinyMCE instance seems to dissapear. So keep in mind that the TinyMCE appears normally when I load the routing option first, but when I start switching around to other options and back things start to break and all I see is a plain textfield with no controls or anything.
No error messages are happening or whatsoever so I don't really know what's going on.
I do check if the instance is already initialized before I even do that, I just don't know what's wrong :/
As the user YOU suggested I've started using ui-tinymce instead of cooking it up myself. Although it has some other issues at this point, the editor remains persistant which was the problem in the first place.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
so I am working on this site (my rep isn't good enough to provide the home link) atm but I have a problem with product listing pages and the tips and tricks page, whereby what seems to be happening is a complete failing on the part of jMenu and jFlipBook respectively.
Since I did not write the original site nor have I used these plugins before I'm not sure why they're not working properly. You'll notice on the tips and tricks section if you inspect element and set the nav items to include the class jMenu (which jMenu should do automatically) the page becomes about 90% fixed (save for the submenus still being out of action). After digging around in the source for a while I've come to a dead end, so if anyone can shed any light on the matter it would be really helpful! Cheers in advance!
If you look at the javascript console you will see errors pointing to your document ready code blocks.
You are using:
$('document').ready(function(){
when it should be:
$(document).ready(function(){
I would imagine that this is breaking your code.