Hi Paul,
You will not be able to use neither node-firebird-libfbclient nor
node-firebird directly from browser  as these modules are designed to work
in nodejs, not in browser.




2014-02-15 23:14 GMT+02:00 Paul Ruddlesdin <p...@ruddlesdin.com>:

> Hi, I am looking for some help with this module. I am not really sure how
> to use it. just started using html5 and i am looking to connect to a
> Firebird database directly from javascript. I understand that your module
> will let me do this but i don't know how to set it up. from searching on
> the web the code below shows i have so far but it doesn't work. I have
> nodejs installed on my windows pc. what do i need to do to get this
> working. thanks, paul
>
> function doFirst()
> {
>     test1=document.getElementById('text1');
>     test2=document.getElementById('text2');
>     button1=document.getElementById('button1');
>     button2=document.getElementById('button2');
>     button1.addEventListener('click', getData, false);
>     button2.addEventListener('click', reset, false);
> }
> function reset(){
>     test1.innerHTML='Hello Paul';
>     test1.style.color='green';
>     test2.innerHTML='Hello Paula';
>     test2.style.color='green';
> }
> function getData(){
>     test1.innerHTML='Hi Paul';
>     test1.style.color='blue';
>     connectDB();
> }
> function connectDB()
> {
>     test2.innerHTML='Hi Paula!';
>     test2.style.color='blue';
>
>     var fb = require("node-firebird");
>     fb.attach({host: '127.0.0.1',database:
> 'C:\\Var\\db\\UTF-8\\QDDefault.fdb',user: 'SYSDBA',password: 'masterkey'});
>      //Query and fetch rows
>     var paul = database.query("SELECT DESCRIPTION FROM TBLWARE WHERE
> WARENR=10001");
>     test2.innerHTML=paul;
>     test2.style.color='red';
> }
> window.addEventListener('load',doFirst,false);
>
>
>
> On Wednesday, 29 January 2014 09:45:01 UTC, Adrian Marius Popa wrote:
>>
>> Now is up in npmjs and can be installed by a simple
>>
>> npm install firebird
>>
>> On Wednesday, January 29, 2014 9:35:07 AM UTC+2, Adrian Marius Popa wrote:
>>>
>>> Node C++ Module for Firebird is updated in git soon to be pushed to npm
>>> It can be compiled now with node v10.x with node-gyp instead of waf
>>>
>>> git clone it
>>> node install
>>>
>>> https://github.com/xdenser/node-firebird-libfbclient
>>>
>>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nodejs+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to