SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 30th, 2003, 04:23 AM
ezuk ezuk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 21 ezuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
newbie alert: XUL and COM?

Hello,

I'm looking into building a XUL interface that a user will run locally (as an application), and will enable him to read and write offline mail in a Fidonet network (ancient technology, I know).

This offline network uses a database known as JAM, and there's a COM object which interfaces with the database (enabling the programmer to submit queries and get results).

Now, the question is -- how do I interface with the COM object via XUL? How do I make the click of a button to call a method of a COM object?

TIA!

Reply With Quote
  #2  
Old April 30th, 2003, 12:49 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
http://books.mozdev.org/chapters/index.html - look under the xpcom section of the book - - -
__________________
~ Joe Penn

Reply With Quote
  #3  
Old April 30th, 2003, 01:00 PM
ezuk ezuk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 21 ezuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by jpenn
http://books.mozdev.org/chapters/index.html - look under the xpcom section of the book - - -


Thanks... I checked it out, but actually it's waaay over my head technically. I just need a simple answer -- will I be able to use a COM object with XUL (under XPCOM or whatever)?

I'm talking about a COM object which already exists.

Reply With Quote
  #4  
Old May 1st, 2003, 03:54 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Quote:
I just need a simple answer -- will I be able to use a COM object with XUL (under XPCOM or whatever)?

Yes - but you need to go through quite a few steps to be able to.

My suggestion would be to grab an xul application and tear through the source tree to see how it is done.

Reply With Quote
  #5  
Old May 1st, 2003, 04:01 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Page 206 (in the paperback book, not sure about the online book) talks about com objects and the interaction with them. You may want to grab that section and have a look at that -

Reply With Quote
  #6  
Old May 3rd, 2003, 09:03 AM
ezuk ezuk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 21 ezuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you very much, jpenn, for the informative answer. It helped me. I think I'm going to use some C functions instead of the COM object to obtain what I want in my little app/script.

Reply With Quote
  #7  
Old May 3rd, 2003, 07:49 PM
jpenn's Avatar
jpenn jpenn is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2002
Location: Washington, DC
Posts: 2,693 jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level)jpenn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 41 m 10 sec
Reputation Power: 16
Another thing that may get you up to speed on this is there are some bindings for MySQL somewhere on the net () that can be used in an xul architecture. This may be a good package for you to get a hold of as the code should show in detail how to make your interaction possible. I have not seen the package, have only heard about it. If rycamor strolls through here, maybe he can provide some insight on this...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > newbie alert: XUL and COM?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway