Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to access the javascript function defined in jspf from js

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry! I missed it in hurry. Henceforth i will use the code tags.

Please anyone can help me urgently?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure the path to the JavaScript file is correct?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic