| Author |
Not able to access the javascript function defined in jspf from js
|
Satyajeet Kadam
Ranch Hand
Joined: Oct 19, 2006
Posts: 202
|
|
Docexam.jsp ==>Main Jsp
DocExam.jspf==>fragement included in docexam.jsp like this
docexambasicinfo.js=>This script is included in docexam.jsp like this
Q1) From docexambasicinfo.js i am trying to call the javascript function which is defined in jspf. But i am unable to call it
for example
docexambasicinfo.js
-----------------------
function myfunction()
{
alert("Inside the docexamBasicInfo test my count=="+ccount);
if(ccount>0)
{
alert("inside docexamBasicInfo.js ");
test(ccount);
}
}
DocExam.jspf
-----------------
function test(ccount)
{
alert("inside docExam.jspf");
alert(test);
makeProblemMandate(ccount);
}
Kindly help why i am not able to access the javascript function defined in jspf from js?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56540
|
|
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Satyajeet Kadam
Ranch Hand
Joined: Oct 19, 2006
Posts: 202
|
|
Sorry! I missed it in hurry. Henceforth i will use the code tags.
Please anyone can help me urgently?
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
Are you sure the path to the JavaScript file is correct?
Eric
|
 |
 |
|
|
subject: Not able to access the javascript function defined in jspf from js
|
|
|