Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 30th, 2004, 4:09 AM   #1
SSAstev0
Newbie
 
Join Date: Dec 2004
Posts: 1
Rep Power: 0 SSAstev0 is on a distinguished road
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
SSAstev0 is offline   Reply With Quote
Old Apr 2nd, 2005, 3:39 PM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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.
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC