473,804 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firefox Javascript <-> DB

Hi everybody,

Does anybody know how to access a remote database (say Oracle) from
JavaScript code (within a Firefox Extension) ?

I know ADO via ActiveX in the IE world and think a similar thing exists
in Firefox.

Thanks a lots,

Guillaume from France
Jul 23 '05 #1
4 2074


Guillaume CABANAC wrote:
Does anybody know how to access a remote database (say Oracle) from
JavaScript code (within a Firefox Extension) ?


I googled and found
<http://eu.mozdev.org/Brussels2003/talks/jan/index.html>
I am not sure whether that is about a local or a remote database.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
There has been a lot of progress lately in getting javascript to talk
to a server.

In the past projects such as JSRS
(http://sourceforge.net/projects/js-rs) were helpful by providing a
cross browser solution to contacting a server and retrieving info
through javascript. I've found it very useful, and it's a good
starting point.
JSRS Abstract:
JavaScript Remote Scripting Transfer Javascript data without reloading
the webpage. Call functions or methods on the server through
Javascript. Works without the use of any Java nor plugins. Supports
NS6.2, IE5.5 and up. Parameters passing is wrapped.
Another great solution, but it's not completely browser independent, is
the XMLHTTPRequest object. This has become more popular for a lot of
reasons. It's easier to use, implements XML to relay data, and it is
supported by most browsers (not opera or konquerer that I know of).
However, the XMLHTTPRequest object is becoming more standard and
accepted (opera will support it in version 8.0)

One of the reasons why this has started to become more popular, believe
it or not, is that Google is starting to use it in their online apps.
Gmail (http://www.gmail.com), Google suggest
(http://www.google.com/webhp?complete=1&hl=en), and Google
Maps(http://maps.google.com) use it as core function. It's some pretty
cool stuff.

The XMLHTTTP object is designed to be given a url and callback
function. Then once the call to the server is made and a response is
retrieved by the browser the callback function is executed. I've found
a few good sites that go into detail and have some good examples.

http://webfx.eae.net/dhtml/xmlextras/xmlextras.html

http://www.adaptivepath.com/publicat...ves/000385.php

http://jibbering.com/2002/4/httprequest.html

One more solution that may be worth looking into is the XML for
<script> open source project (http://xmljs.sourceforge.net/). This
project was mainly developed to provide the XML Document Object Model
for javascript, but it has some other functionality that allows talk
back and forth to a server from within the javascript framework.

I prefer using a mix of the all three approaches in using javasccript
to get data from a server. I enjoy the XML Document Object Model that
is available with the XMLHTTP object, but I can't sacrifice the browser
compatibility support that JSRS affords. So nice mix works pretty
well.

I hope this is what you're looking for. I didn't post any code
snippets since the links I've given do a much better job.

I think this info should get you started.

Good Luck

Jul 23 '05 #3
Thanks a lot for having spent time answering ! Usenet is really an
efficient way to learn from people.

I would like to build an application that would allow users to see and
post annotations on web documents. So I thought I could code :
- the project's functionnal core in Java (provide services hidding
the DB connexion : getAnnotation, setAnnotation.. .)
- javaScript code for presentation : asks the java code when a page
is loaded by the browser, retrieve annotations and insert then into the html
file using DOM + CSS

As far as I can see, I can
- retrieve IE browser events from javascript
- warp my Java core in a home made ActiveX in my JavaScript code
(with Sun's Java-ActiveX bridge)

a schema may help you understand my proposal:

DB <-- JDBC --> Java functionnal core <-- ActiveX --> JavaScript <-- events,
DOM, CSS --> MSInternet Explorer

The only problem : it is too complex and may be simplified with
XMLHTTPRequest ??? What do you think about it ?

Thanks, Guillaume
"Terribleco w" <te*********@gm ail.com> a écrit dans le message de news:
11************* *********@o13g2 00...legr oups.com...
There has been a lot of progress lately in getting javascript to talk
to a server.

In the past projects such as JSRS
(http://sourceforge.net/projects/js-rs) were helpful by providing a
cross browser solution to contacting a server and retrieving info
through javascript. I've found it very useful, and it's a good
starting point.
JSRS Abstract:
JavaScript Remote Scripting Transfer Javascript data without reloading
the webpage. Call functions or methods on the server through
Javascript. Works without the use of any Java nor plugins. Supports
NS6.2, IE5.5 and up. Parameters passing is wrapped.
Another great solution, but it's not completely browser independent, is
the XMLHTTPRequest object. This has become more popular for a lot of
reasons. It's easier to use, implements XML to relay data, and it is
supported by most browsers (not opera or konquerer that I know of).
However, the XMLHTTPRequest object is becoming more standard and
accepted (opera will support it in version 8.0)

One of the reasons why this has started to become more popular, believe
it or not, is that Google is starting to use it in their online apps.
Gmail (http://www.gmail.com), Google suggest
(http://www.google.com/webhp?complete=1&hl=en), and Google
Maps(http://maps.google.com) use it as core function. It's some pretty
cool stuff.

The XMLHTTTP object is designed to be given a url and callback
function. Then once the call to the server is made and a response is
retrieved by the browser the callback function is executed. I've found
a few good sites that go into detail and have some good examples.

http://webfx.eae.net/dhtml/xmlextras/xmlextras.html

http://www.adaptivepath.com/publicat...ves/000385.php

http://jibbering.com/2002/4/httprequest.html

One more solution that may be worth looking into is the XML for
<script> open source project (http://xmljs.sourceforge.net/). This
project was mainly developed to provide the XML Document Object Model
for javascript, but it has some other functionality that allows talk
back and forth to a server from within the javascript framework.

I prefer using a mix of the all three approaches in using javasccript
to get data from a server. I enjoy the XML Document Object Model that
is available with the XMLHTTP object, but I can't sacrifice the browser
compatibility support that JSRS affords. So nice mix works pretty
well.

I hope this is what you're looking for. I didn't post any code
snippets since the links I've given do a much better job.

I think this info should get you started.

Good Luck

Jul 23 '05 #4
On 2005-03-21, Martin Honnen <ma*******@yaho o.de> wrote:
I googled and found
<http://eu.mozdev.org/Brussels2003/talks/jan/index.html>
I am not sure whether that is about a local or a remote database.


According to that old talk, they only had Postgres support. They have MySQL
and SQLite working now, but I believe you still have to recompile the
browser, which just seems so 90s to me. There's also another project to
unify Mozilla database service code using SQLite3 (mozStorage). Too bad
about the duplication of effort. mozStorage is described in this bug
report:

https://bugzilla.mozilla.org/show_bug.cgi?id=261861

Dave Cook
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3850
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the nav-frame shows the menubar, so whenever I click a link in the menubar, it opens in the frame below. But...
12
1953
by: Howard Kaikow | last post by:
Yesterday, I decided to try Firefox. I've encountered a behavior that is either a bug in Firefox or a bug in my Javascript code. I'll try to explain the problem, hoping that this newsgroup can (in)validate my Javascript code. First, I'll describe the purpose of the Javascript code. I often have a need to post a URL to something at my own web site, e.g., http://www.standards.com/Sorting/SortPerformanceComparison-Description.html. It is...
4
5414
by: Luke Venediger | last post by:
Hi there, Please help. I cannot get a javascript function to be called from an img tag when the page loads. Here is a snippet of my code, and I'm trying to call the MM_nbGroup function, but this is not working in FireFox, only IE. My function is there (so not missing). <img src="Images/BTN_profile_over.jpg" name="profile" border="0"
2
1450
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild, AppendChild, making width grow? Hi,
3
3360
by: jimmygoogle | last post by:
I posted earlier with a scope problem. I think I resolved it in IE but in Firefox it still exists. Anyone have any ideas/experience with this? I attached my code sorry it is so long. You can cut/paste it into 2 files and run it to see what I mean. ###############menu.html############### <html> <body> <script type="text/javascript">
4
2165
by: dsimmons | last post by:
On my website http://seasidequilters.blogspot.com/ I'm having a problem that someone thinks might be associated with Firefox browsers. I'm hoping to find someone in this forum that might be willing to check my website with Firefox. Sounds like I might have a float problem/div problem that is visible to Firefox users only Here is my problem: >From my PC and majority of viewers of my webpage they see the Flickr badge (photos) on the...
4
2169
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is broken in Firefox 1.5.0.1 on OS X. What happens with the Scriptaculous library is this In the html document the author only has to include one line
9
1531
by: toby989 | last post by:
Hi All Does anyone have an idea why firefox applies the spec in the CSS to the contents but IE does not? Thanks. Toby
11
3442
by: minnesotti | last post by:
Hi there, I subscribed to a photographic pictures-hosting website which is heavy on JavaScript. My preferred latest browser Mozilla Firefox does not work with it -- no pictures are displayed and no buttons react to clicking. The website's helpdesk says it should work with Firefox, and could not offer any more advices. The JavaScript Console shows that there are numerous errors occuring. It looks like the web browser does not recognise...
3
2438
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains searching capabilities for the gridview. The masterpage has controls contained in a panel control,...
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10350
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7638
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.