Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

help me about ajax

  Asked By: Willie    Date: Aug 22    Category: Java    Views: 724
  

i want to develop a part of big project with ajax,
and in page have many links that interact with server,
i don't khonw how i handle these links,
because i think i should write many functions in java
script.

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Dominic Murphy     Answered On: Aug 22

you should write  a function like following :

function a(linkId){
location.href="[your location]?id="+linkId;
}

and write in body tag like following :

<body>
Link 1
Link 2
</body>

you should handle  [linkId] with server  side script.

 
Answer #2    Answered By: Jeffrey Washington     Answered On: Aug 22

I dont really get what you're saying here, but however, first try to
user your web framworks ajax  utilities. Tapestry, Wicket, WebWorks and
other's have some utilities as I know.
Then if you have more needs, go for the open JavaScript API's on the
web, like Dojo (http://dojotoolkit.org), Scriptaculous
(http://script.aculo.us) and others.
Maybe if you post your exact problem, we could help  more.

 
Answer #3    Answered By: Landra Schmidt     Answered On: Aug 22
 
Answer #4    Answered By: Alexander Bouchard     Answered On: Aug 22

I recommand you before decide to use ajax, do study about JSF that is very lofty and robust to such as projects, and use best technology to create IOC in View Layer like in Model Layer.

 
Didn't find what you were looking for? Find more on help me about ajax Or get search suggestion and latest updates.




Tagged: