473,399 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Cant get the javascript function "whichElement(e)" to work in JSP out.println();

Expand|Select|Wrap|Line Numbers
  1.  out.println("<li><a onclick=\'javascript:whichElement(e);menuClicked();selectMenu("+orders.get(i).toString().substring(43)+","+orders.get(i).toString().substring(39,40)+")\'>"+orders.get(i).toString().substring(0,37)+"</a></li>");
  2.  
  3.  
Nov 15 '10 #1
3 1438
JKing
1,206 Expert 1GB
Is that a user defined function?
Nov 16 '10 #2
yes this is a user defined function.
Nov 16 '10 #3
JKing
1,206 Expert 1GB
Do the other functions in the string work?

Does the function work outside of a println?

Could you post the code for the function?

Are there any javascript errors on the page?
Nov 17 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Patrice | last post by:
HI, 1- I fill an array (arrayName ) of records (news and news titles) from an ACCESS database. 2- I call a function (loopDatasNews()) to build a table of news titles. 3- I call javascript...
1
by: Brian Hanson | last post by:
Hi, I am trying to write a javascript function that gets called from a within an asp.net application to print a pdf file(s) programmatically. I am a pretty experienced developer in several...
1
by: Silvia Brunet-Jones | last post by:
Ok I am about to pull my hair. I have an active x control in an object tag which, as you know cant have runat=server. So what I need is to not loose what is in this box everytime a postback...
1
by: Sky Kim | last post by:
Hi, all. I got stuck...here.. Let me simplify my problem.. I added One TextBox, and Required Validator associated with the textbox. And, Submit button. When submit is clicked it should do...
1
by: Danny H | last post by:
Can someone please shed some light on this for me, I have tried using RegisterStartupScript and I cant get it to work. The purpose of this is that the calendar is displaying info from a db and...
2
by: hibaru | last post by:
Hi Is it possible to call a javascript function from a treeview controls OnSelectedNodeChanged event? Something similar to a OnClientClick event for buttons? I cant seem to find anyway to do...
4
by: Swati Jain | last post by:
How I can pass dataset as parameter to javascript function?
11
by: haijdp | last post by:
Hi , the below statement is in a java program,in that xmlforDisplay is the java variable whose value i have to pass to the javascript function as follows, with the below code,I am getting the...
10
by: evicailieva | last post by:
A have a php scrip where I call a JavaScript function. I don't know why, but it doesn't work. At the beginning, when I was writing the script it was working but now it's not. I don't know wхat to do....
2
by: benshep | last post by:
i am trying to create a form like this <html> <head> <script type="text/javascript"> function setValue(id,set) { document.myform.getElementById(id).value = set;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.