Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. Most browsers do not allow AJAX to work on the local filesystem by default due to security settings, it has to be from a server. You can install a test server on your computer using XAMPP or WAMP and test AJAX on the localhost domain.
  2. It would be a good idea if they could update the forum to use a secure connection. Right now it's all over plain HTTP.
  3. You just need to encode the "&", like this: &
  4. That's ASP, it makes sense in the context of ASP. It is server-side Javascript. I have not worked much with ASP, so I don't know exactly the problem, but it is likely because you are mixing up server-side Javascript with client-side Javascript. The client does not have direct access to variables that have been declared on the server.
  5. For security reasons, Javascript is not allowed to write to files. If Javascript could write to files then websites would use that to install viruses onto your computer.
  6. Your HTML tags are mixed up, so the browser is interpreting them wrong. There is at least one closing </div> tag that shouldn't be there. You should correct the validation errors: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.cornerstonevaluationllc.com%2FindexBAKUP.html&amp;charset=(detect+automatically)&amp;doctype=Inline&amp;group=0
  7. This is a known limitation of CSS. The max-height solution is the best pure CSS solution that you will find. You just have to set max-height to a large enough number. The side-effects of the max-height solution are that it opens really quickly but there is a slight delay before closing, if you've set it to be really large. They only way to get the exact behavior you want is to use Javascript. CSS-tricks has a descriptive article about the issues with height transitions in CSS: https://css-tricks.com/using-css-transitions-auto-dimensions/
  8. It's possible to do that without having to load the entire jQuery library.
  9. That means that there are no iframes in your document. The might be because you're running the code before the iframes have loaded. Try putting this Javascript at the bottom of your HTML document after everything has finished loading.
  10. You have to pass a string, which is delimited by either single quotes or double quotes. var frm = document.querySelectorAll("iframe"); If all you're looking for is a list of iframe elements, you don't need the querySelectorAll method, getElementsByTagName will work just as well. var frm = document.getElementsByTagName("iframe");
  11. The password is never sent over the internet, this is just source code of a program that only ever gets executed on the server.
  12. If the software that is reading the XML document finds an element that it recognizes from a namespace that it is built to support, then it will use the data from the element in the way that was specified in the standard associated with that namespace. If you give it an element that it does not recognize, then the behaviour depends on who built the software. The programmer may have chosen to ignore it or they might have decided to show an error message.
  13. testObject starts off empty, but the code is adding elements to it on each iteration. Specifically on this line: testObject[itemPropertyName] = item;
  14. XML does not have macros, it does not have conditionals or loops. It is hardly different than a plain text file. It does nothing until a program reads it.
  15. The closest thing you'll find is XSLT, but it will only work if passed through an XSLT parser. Most browsers have one built in, but if you're in a different environment it will have to load some tool or library to do it. XML does not do anything on its own, it always has to be interpreted by a program.
  16. You cannot put a Javascript variable in the value attribute, whatever is in the value attribute is shown literally as it is in the HTML. If you want to change the value of an input element, it is similar to how you are putting in the <span> except that you should set the .value property instead of .innerHTML.
  17. You've set the left column to a width of 28% and the middle column to a width of 54%, that leaves 18% of empty space between them.
  18. If you really are putting each part of the URL on one line, that needs to be fixed. You cannot have line breaks in a URL. Judging by the format of the URL, my guess is that they built Matomo so that when Javascript is available it will treat the hash the same as the query string, you should actually copy all hash data that isn't in the query string into the query string, then remove the hash. The downside of free software is that the person making the software has no financial incentive to take the time to support their users, but I would infer that the reason the Matomo developers are not being very helpful is that you're using their software in a way that it was never intended to be used.
  19. The last rule overrides the first one. There are a set of rules by which you can always determine which CSS will be used, you can read about it here: https://www.w3schools.com/css/css_specificity.asp
  20. I can't see where in your code it is declared, so I can't tell you if it is accessible. As long as the variable is declared outside of any other functions, it is accessible anywhere. Have you tried it?
  21. I tested and the scoped attribute does not work. According to MDN, Firefox should support it, but it also says that the attribute is deprecated so it's best not to use it. Since the scoped attribute is deprecated, <style> elements should only go in the <head> section of the document.
  22. If you want it to look exactly like that, save the photoshop button as a PNG file and use that as a background image. If you're content with a flatter looking button, you can combine a linear gradient, border radius and box shadow. The arrow at the corner of the box would have to be a right angle triangle and could not have its own shadow. This example shows how to add an arrow to a box with CSS: https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip_arrow_bottom
  23. First, verify that it actually can iterate through the data set twice, by trying a for loop right after the first one. If it can't iterate twice, then you call fetchall() to obtain a list and store that in another variable instead. You will be able to iterate over a generic Python list as many times as you need to.
  24. You have a syntax error in your CSS. Your lines must be separated by a semi-colon. I suggest you move all CSS to the external file and remove the <style> tags from the document. I've attached a working solution. CSS.css SchwarzwaldvereinOrtsgruppeAchern.html
  25. This is a public forum, you can show it to anybody. The task is impossible using only Javascript, but do you have access to a server-side programming language?
×
×
  • Create New...