This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 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
    
  14

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
    
    6
Are you sure the path to the JavaScript file is correct?

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Not able to access the javascript function defined in jspf from js
 
Similar Threads
Javascript Variable scope
trying to change value in a text field when a checkbox is ticked - trouble id'ing text field(SOLVED)
Directory Structure JSP & JS
javascript import
Calling javascript function in js file from JSP