s1 + "ript>");
}
and then c.js
I tried the s1="" from another googled post - no joy.
if I change a.html to
<script language='JavaScript' src='cb.js'></script>
<script language='JavaScript'
src='b.js'></script><script>Function();</script>
it works.
I have an ASP script called blah.asp. I wanted to include it in another ASP file on another server, without using <!--#include etc.
I had seen another script that looked similar to: <script language="javascript" src="http://www.mydomain.com/blah.asp"><script>
But when I tried it nothing showed up on the main ASP page. If I run "http://www.mydomain.com/blah.asp" file on its own it runs fine. Can anyone point me in the right direction?
I am developing a series of web pages that use JS, and they are all fairly similar except for some very small changes. What I am hoping to do is create one page that accepts a parameter from location.search and then uses that to include a JS file with the appropriate parts that are different from the main page. I am aware that I could do this the other way round (ie. several different pages that include a set of core functions etc.), but that will not work for this project.
I am looking for a good - if not THE BEST - Javascript Editor available, prefarably to include it in Eclipse.
I found Aptana, but it still seems to be buggy, it had problems with special german characters.
The best would be an editor similar to the Eclipse Java editor - I want to be able to click on a function or variable to see how and were it was defined..
I've got a short form--1 field and a submit button. I want someone to enter their name in that field, hit submit, and have their name be in the "name" field on the next page (which contains a form). Am I even in the right forum?
The error message says getElementById is null or not an object but it works fine with image ids and iframe ids. Can anyone tell me why this doesn't work?
<!-- var xmlDoc=null; if (window.ActiveXObject) {// code for IE xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); } else if (document.implementation.createDocument)
[Code]...
The other works fine and loads the 3 sections of infomation into a table so I can see that it is querying the XML file correctly. I have attached the .js file and the .xml file.
Getting the following error when attempting install of jQuery-1.4.2.min.js Line: 16 Char: 1 Error: 'window' is undefined Code: 800A1391 Source: Microsoft JScript runtime error
I am attempting to create an element (to be added later to the document DOM) using createElement.My test case is just:document.createElement("<p>Hello World</p>");My error console shows the following error:
am beginner in javascript. I am attempting to change border color and style of a asp.net text box using javascript. The function is inside a .js file. It is as follows.
function checkMoney(controlID) { var control = document.getElementById(controlID);
I'm encountering a snag when attempting to dynamically populate multiple dynamic select elements. I have the following object hierarchy Field --> Category --> Expertise which are displayed within a form as select elements, e.g., when 'Field' is changed then the 'Category' is repopulated based on the root index value of 'Field' and then 'Expertise' is repopulated based on the root index value of 'Category'. Below is the code I'm using:
I'm getting an Array from an external source, the data in the array depents on the get variables.
These get variables should be decided by the browser, after there decided I can created the adres to get the file with the JavaScript Array. How do I include this file?
Basicaly what I want in the script is something like:
I making a web site with php and i have alot of js files in it and i need to use more than two files in every a one page
now i'm using for example: <script type="text/javascript" src="file.js"></script>
i heard about can use one js file examle: global.js and call another files with it's functions (file.js, file2.js, lib.js) from this global.js with XMLHttp
I know sometimes javascript and php can be used together. Anyone know how to add a javascript set timeout to this? So that this php include will re-execute after so much time? Or is there a php refresh command I can add to this code itself, not the page.
I have the following script in my jsp. I want to cut this script and include it in a .js file But it is not working with me.
Here is the script : Code: <script language="javascript"> function checkForUnaddeditems() { var mainElement = document.forms.mainentry var quatityValue = mainElement.<%=quantityelement%>.value var productIDValue = mainElement.<%=productIDelement%>.value var price = ""; .....
I copied the previous code into a check.js file and referred to it in the jsp by Code: <SCRIPT type="text/javascript" SRC="check.js"></SCRIPT>
I have this script and I want to take out the part below the / up to the buildMenu(); statement. I would dynamically create the menu list with php. Problem is I don't know javascript that well :(This is its own .js file not a script within the head section of the page.