User Profile
Collapse
-
what error do you get exactly? -
Leave a comment:
-
better show the code that you have problems with so readers have something to work with.Leave a comment:
-
this is trivial and was not the question in the original post. i suggest to read the real questions first before posting random answers....Leave a comment:
-
ok - since 'the code' is constantly posted regardless of being not useful in this context (since its not related to the OP's requirements) lets use it as an example of how not to write Javascript code (even for the 'selfchosen' example the poster decided to throw out code for):
1. function has a meaningless name
2. function gets a parameter passed that is never used
3. the variable i is an implicit global
4. wrong...Last edited by gits; Mar 6 '20, 11:03 AM. Reason: make 'The Code' persistent for those that might be interested in the mentioned flawsLeave a comment:
-
while i can understand the feelings when you see existing code and feel its 'old school' or not in a 'hip' architecture - i can understand the senior devs in your case as well. Let alone call something a 'monolithic mess' shows that you judge over it from your own point of view without honoring what these devs already built - and obviously is in production and helps to earn all the money the company can use to pay your salary.
I think...Leave a comment:
-
ok thanks - i can see how it might help in demonstrating how to access/modify cells. i was just a bit confused why i would like to replace a number with a character or vice versa in reality. Just never had such a requirement in real life so far - so i just did ask to try to get a bit more context around the plain posted code.Leave a comment:
-
-
well - may i ask what realistic usecase could be behind that? So far i never encountered something where i would have had the need for such code in a real scenario?Leave a comment:
-
more accurate would be:
a.reverse(); - mutates the array a
a.slice().rever se(); - mutates a new array that was returned by the slice method - so the original array a would stay unmodified...Leave a comment:
-
The configuration of the browser shouldn't have to do anything with that - if so then the entire page would be a mess in the first place since it shouldn't rely on specific configurations. There was a time when developers did rely on specific security settings in IE to use ActiveX components or such - which of course wouldn't work in any other browser then - and which today shouldn't be an issue anymore since noone should use that anymore. The OP...Leave a comment:
-
can you tell a bit more detailed what exactly happens there? You setting 2 hrefs to your new url - then try to fire a click event the #redirectPage-node and 'remove' a click event from the #btCalc-node. What exactly are these nodes? I suspect that the click()-method call is not working correctly - but why not setting the location of the desired viewport directly?Last edited by gits; Feb 21 '20, 09:19 AM.Leave a comment:
-
what exactly needs to be fixed? please provide more context for the reader and ask a proper question - this will increase the probability of getting an answer to your problem.Leave a comment:
-
Well - i didnt feel the need to delete the entire post - of course it might have had some intention to promote a sale - but as dev7060's post already showed it might be useful to discuss experiences with that particular product. In the end it will allow readers to make decisions on their own or ask more questions. I feel that one of today's problems is a bit that people write things in a kind of absolute phrases and other people read it unable to...Last edited by gits; Feb 14 '20, 04:57 PM.Leave a comment:
-
since the thread was dug out of last year - in case anyone wants to use that shown code - there are some things to be commented:
1. decide whether and when to use var, let const keywords and not mixing them up somehow randomly - just because something works its not always the case its the right way - you could even leave out the variable declarations in that example at all and it would still work - but that would be even worse code...Leave a comment:
-
the problem needs more exact explanation on what exactly is not working properly in which browser. 'perfectly arranging' isnt a term that says how it should work since that can be subjective to any person - so explain the issue more and show the code that is involved.Leave a comment:
-
no need to discuss it here - we all know how SEO works and placing backlinks in forums is a well known technique which i consider to be advertising - nothing more. If you want to publish an article here - then by any means write an article and dont just lure readers onto your site with links.Last edited by gits; Feb 11 '20, 10:10 AM.Leave a comment:
-
write a proper article then instead of just linking another one here. You cannot tell me that this is not plain sitepromotion to throw out a few keywords and then place a link to a site where people should see an offer to get certificates and whatnot (thats why you probably even posted it in this career section). if you want to advertise here - check: https://bytes.com/mediakit.html...Last edited by gits; Feb 11 '20, 08:22 AM.Leave a comment:
-
in post #7 i did touch on explaining why that is a very bad, if not the worst, solution....Leave a comment:
-
basically its not an issue with JavaScript if your images are too big. Optimize them and it will be already better. Of course it might be that the JavaScript code can be optimized as well - but for that we would need to see that code here.Leave a comment:
No activity results to display
Show More
Leave a comment: