I've been using JavaScript for a few years now I'm not a huge expert I rely more of JQuery. I am just wondering what best solutions are there to call Javascript files (and to make pages load faster):
Normally I request all these in the Header like you normally would but I have seen and heard people to call their Javascript files in the footer to make page load faster and have all their Javascript functions all in the footer as well.
Is this a good idea? What are the downside? Should I just keep all my JS in the Header as usual?
What I would like to do is create header and footer information for my webpages which are created by calling from a referenced .js page . . . for example in Header.js:
I´m trying to place a javascript navigation menu inside a cell of a table in my page, the problem is that the constructor of the menu object has parameters for menu positioning and size and when the window is rezised the menu stands at the same position and with the same size.
My question is: is there a way to modify those parameters dinamically to match window size, and how is that made, or is there another way to include that menu using a table for page layout.
I am working on a website that uses a random header. I have been trying to figure out how to adjust the code so that the header also serves as a clickable link.
Here is the code that I have:
What do I need to add in order for the header to also serve as a link? I am completely new to JavaScript and I don't understand it very well.
I use a Time Date Picker Javascript code [URL]. It works fine with a placement problem. When you click one of the last pair input fields on the page, a drop-down list will appear from the input field. In my case, the drop-down list shows on the bottom of a page instead. I can't find the code controls the location of the list.
some html here <script src=1.js></script> some html here <script src=2.js></script> some html here
I want to execute 2.js first, but I can not touch 1.js 2.js. I need to write a wrapper around them. I am thinking to add a onload of a image file after 2.js to make 1.js active.
some html here <script src=1.js></script> some html here <script src=2.js></script> <img load 1.js"> some html here
I have the below code in a form to re-form the characters entered into it into a dollar amount and also only accept numeric characters. However, when I enter the numbers "113" (which appears after the reformatting process as 1.13), it no longer accepts any other characters. I also am not able to deleted from the text box that I entered it in. I was wondering if anyone has any ideas why this is happening.
I have built a form on my network. I have put several javasripts in the form. The thing that is driving me nuts is; while codes such as highlight fields, copy fields and text limit work, others, such as Sentence case and Auto enter curent date don't.
so I've been trying to get the code for the scroll arrows found at http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm to work.
well I got the first set to work for the top text box on the site I'm working on. BUT THEN! haha I tryed duplicating the code to use it for a bottom text box on the same site and they mess eachother up so that both arrow sets run the same box.
I'm making a simple color code chart that when the user clicks the button, it alerts the color code, but javascript wont recognize the color code. Could someone please help. Here's the code:
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title></title>
I have some Javascript code that reads and sometimes sets the content of a textarea. I want this to be reasonably browser and platform independent. My question is, what characters should I expect to find at the end of a line? I suspect that I need to cope with either "" or""; can someone confirm?
Setting the content is more of a challenge. I don't want to have nasty browser detection to select what to use for newlines. Is there one newline pattern that is safe for all browsers?
my users will be filling in a text box, and its contents will be forwarded to another page via a form link. I keep coming across new instances of characters getting converted to %2 codes, eg ! gets changed to %21,' gets changed to %2C etc. At the moment I am replacing these with javascript on the receiving page, but this can't be the best way to do it. And I don't really understand why it happens anyway. Is there a way of making sure what gets typed in gets forwarded correctly? Or failing that, is there a list I can use to find them all?
I need to access and edit html codes that belong to another file.For the above I want to change the pic1.html to pic6.html. I have a file Helper.html that will change this value on a click of a button. How do I go about doing that?
I am trying to use these two js codes in one page:
[url]
[url]
They both work perfectly fine except when both linked up at the same time. Only the last one will work. I've tried to find how the codes are working when the page loads in order to fix that problem but I cant figure it out for these two specific codes.
i was building a website using two jquery codesfirst one for the slideshow banner and the other one for the menu but only one of them works, i've search on the web and i fouond something called jquery no conflict()is this good?this is the code inside de <head> tags