Zvonko, I think he may be using a SOAP connector to a database via XmlHttpRequest() or JSP. But I totally agree with calling AJAX hype - it's still good ole' DHTML! The worst I've heard recently is AFLAX - Asynchronous Flash and XML... doh! That's Flash MX!
@JoeUS: We need to see the code!
Main Topics
Browse All Topics





by: ZvonkoPosted on 2006-08-18 at 08:38:40ID: 17343234
You CANNOT do that.
The page containing JavaScript statements is executed on browser side. And the db is normaly on server side. Browser and therefore JavaScript cannot access ANYTHING on server side. All that browser can do is request a page by URL and post form data. Nothing else. Therefore is AJAX such a hype because it does that URL calls and form submitts in the beground and giving the user the feeling browser can do more then getting URLs and sending form data.
So sorry, you never will get a database connection in browser to a remote database.
For that what you want to do is server side scriptiong, not JavaScript. Your web server needs to have CGI, Perl, ASP, PHP, JSP or any other server side scripting language to preset the html values from db records.