aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Not able to access the javascript function defined in jspf from js Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Not able to access the javascript function defined in jspf from js" Watch "Not able to access the javascript function defined in jspf from js" New topic
Author

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

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
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: 60053
    
  65

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
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: 15376
    
    6
Are you sure the path to the JavaScript file is correct?

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to access the javascript function defined in jspf from js
 
Similar Threads
Javascript Variable scope
javascript import
Directory Structure JSP & JS
trying to change value in a text field when a checkbox is ticked - trouble id'ing text field(SOLVED)
Calling javascript function in js file from JSP