Hi
Thanks for the Reply. But i think that u haven't got my question correctly. The problem is that the jsp makes a call to the external js external1.js, and one of the functions in external1.js makes a call to a function defined in another external javascript file external2.js.
Thank U
Mansoor.
User Profile
Collapse
-
Load an External Javascript Function
Hi
I have a javascript file called external1.js . This file has a function say function1.
In the function I need to make a call to external2 javscipt file(external2. js) function.
the sample code is
external1.js
external2.jsCode:function1 { ......... function2()// this function is defined in external2.js ................. }
...Code:function2 { ................ -
Hi
Thanks for the reply. But i need the statement that i need to include so that i can access the external javascript function . For ex in HTML u say
can i include the javascript file in the same way, like a htc file has the following statementCode:<head> <script type="text\javscript " src="\....\...\example.js"> </head>
...Code:<script LANGUAGE="JScript">
Leave a comment:
-
accesing an external JavaScript function from .htc file
Hi
How do i access an external javascript function from a .htc file.
Thanks
Mansoor -
Hi
browse http://www.w3schools.c om/js/tryit.asp?filen ame=tryjs_text
and remove the code on the left hand side and paste the following code and test it
...Code:<html> <head> <script type="text/javascript"> function valuereturned() { var str="alert('button has been clicked')"; return str; } function evaluate() {Leave a comment:
-
Hi
Thanks for the reply
I am not getting any javascript error , but in my servlet i print some info to the server logs whenever the servlet is called.
This works fine in mozilla. The info gets printed as many times as the ajax function calls the servlet i.e everytime the button is clicked, so this is working fine in mozilla, but in IE7 the info gets printed only once no matter how many times the button is clicked....Leave a comment:
-
Hi
Thanks for the reply.
But i donot know how to check for errors in mozilla, and also nothing is showing up
Thanks
MansoorLeave a comment:
-
eval function not working in Mozilla
Hi
My second question is the eval function of javascript works fine in IE7 but not in Mozilla. The function in my code is as follows:
How do i make it work in Mozilla.Code:var str = "alert('how r u')"; eval(str);
Thanks
Mansoor -
AJAX call only works once in IE. Works fine in Mozilla.
Hi
I have a JSP that calls an Ajax function when a button is clicked.
The Ajax function calls a servlet . The Ajax function works well in Mozilla , but in IE7 when the button is clicked it works well for the first time but the subsequent clicks on the button the servlet is not being called.
I am not able to debug why this problem in ocuuring in IE7 but not in Mozilla.
Thanks
Mansoor -
Executing Javascript code stored in a database.
Hi
I have a database table that contains alert statements, each having a unique id. I have a javascript function that makes a call to the database taking in the unique id as parameter .
for ex [HTML]var stmt = callDbase(12345 ); [/HTML] . The function returns the alert statement, I am able to retrieve the alert statement from dbase, now i need to execute the variable stmt that holds the alert statement in my javascript.
... -
Hi Epots
what i actually meant was i have a javascript file say name.js , in this i have a function getName() which in turn calls a javascript function called getFullname() which is defined in a file called display.html
Thanks
MansoorLeave a comment:
-
Accessing embedded javascript function from external js file
Hi
I need to call a javascript function defined in a html file from a javascript function defined in an external javascript file(.js). Can anyone suggest me how do i do/acheive this functionality.
thank u
Mansoor -
accessing java methods in javascript
hi
i have the following java applet progam and the javascript
the problem is that when the javascript tries to access the applet method it gives me an error as follows
document.form1. myApplet is null or not an object. plz provide me a soln for this. the code is as
html file
[code=html]<HTML>
<HEAD>
<SCRIPT type="text/javascript">
function getScreenDim() {
...
No activity results to display
Show More
Leave a comment: