![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2004
Posts: 1
Rep Power: 0
![]() |
A friend of mine is writing a java (or asp.net, dont know untill flow charts are done and he decides which he thinks fits the problem better) back-end program.. and he needs a java script front-end (writen by me) and i havent done much javascript... and I'm wondering if anyone knows of a book or a web site that can teach me how to make a web site that can talk to a java or asp.net back-end program
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
I take it by Java back-end you mean JSP or something like that? Generally speaking, Java applets are front-end, and talking to them from JavaScript is black art.
Usually, the best way for JS to talk to server-side code is via GET requests; this is trivial to do. You can send post requests with JS too, by generating and submitting a form. I think you should probably get yourself a good general grounding in JavaScript; once you've got that, sending queries to CGIs or any other server side code should essentially be the same as loading any other URL (you could do it by assigning to location.href, for example, or using window.open() with a hidden frame as a target. Hidden frames could also be used to house dynamically generated contrived 'forms' which can then be submitted from JavaScript). Anyone here know of any less Voodoo-inspired ideas? That's my best shot. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|