Results 1 to 21 of 21

Thread: Can anyone help to convert this so it works with Mozila browser

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463

    Can anyone help to convert this so it works with Mozila browser

    Why does this only work with IE? Can you not use classes with Mozilla? Basically all am doing is filling a table with data from a text file. If anyone knows of a better way please tell me.

    Thanks

    Code:
    <html>
    <head>
    <title>song List</title>
    </head>
    <body>
    <OBJECT id=songs CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
        <PARAM NAME="DataURL" VALUE="songs.ini">
        <PARAM NAME="UseHeader" VALUE="True">
    		
    </OBJECT>
    <TABLE datasrc=#songs>
    <THEAD style="color: #0000cc;"><TR><TD><b>Song Name</TD><TD><b>Artists</TD></TR></THEAD>
    <TBODY>
    <TR><TD><B><DIV style="color: #660000;" datafld="Song Name"></DIV></TD>
    <TD><B><DIV style="color: #660000;" datafld="Artists"></DIV></TD></TR>
    </TBODY>
    </TABLE>
    </body>
    </html>
    Last edited by Troy Mac; Jul 12th, 2004 at 10:56 AM.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    What is the object? An ActiveX Control? If so, it's not going to work in anything except IE. The only way around it is to do it someother way. No other browser has implemented any code that will allow ActiveX Controls in their borwsers (and for good reason too.)

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    As far as I know it is not an activeX object.
    I got this code from html goodies. All I want to do is. fill a table on an html page with text from a text file. I can do it using this code but this code does not work in netscape or mozilla. Can anyone point me in a direction to help me? What the text file consists of is Song names and Artists. I think editing the text file would be easier than the table in the web page.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    I still think that's some IE flick... You could use a server side language as an alternative.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Is that the Tabular Data Control? If yes, which I think is most likely, it is an ActiveX control, and will work only with IE 5+

  6. #6
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Can anyone help to convert this so it works with Mozila browser

    Originally posted by Troy Mac
    Code:
    <html>
    <head>
    <title>song List</title>
    </head>
    <body>
    <OBJECT id=songs CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
        <PARAM NAME="DataURL" VALUE="songs.ini">
        <PARAM NAME="UseHeader" VALUE="True">
    		
    </OBJECT>
    <TABLE datasrc=#songs>
    <THEAD style="color: #0000cc;"><TR><TD><b>Song Name</TD><TD><b>Artists</TD></TR></THEAD>
    <TBODY>
    <TR><TD><B><DIV style="color: #660000;" datafld="Song Name">blah</DIV></TD>
    <TD><B><DIV style="color: #660000;" datafld="Artists">blah</DIV></TD></TR>
    </TBODY>
    </TABLE>
    </body>
    </html>
    I think the question is css / table contents colouring. Works on ie when there is something in the div to see.

    Mozilla - no idea, seems to be a brick wall, and I cannot seem to get anything to work right in it.

    Good luck, if you get an answer post up so we can see.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    I realized that this is an ActiveX object which will not work in Mozilla. I need the object to be Javascript but for the life of me I can not find any examples on how to do this. You would think it would be an easy thing to do. All I want is when the page opens to have the jscript read a text file and put it in a list on the page. I am kind of surprise that no one knows how to do that here? Maybe the right person has not read this post yet. I'll keep looking and when I find it I will post it...
    TMacPherson
    MIS Systems Engineer
    [email protected]


  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Is the file server side or client side?

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    Yes in deed it is an ActiveX object. All I am doing with it is opening a text file that has a comma delimited list in it like this

    In the air tonight, Phil collins
    Cherry Bomb, John Mellencamp
    Peaceful world, john Mellencamp.

    When the page opens it reads this file and displays it on the page in a table. This is done all the time because it is eaiser to edit a file then the table when things change. My problem is I want it to work with Netscape/Mozilla and not just IE. So with that said it has to be written in JavaScript. I am surprised that I can not find any tutorials or snippets on how to do this on the web or this forum?
    TMacPherson
    MIS Systems Engineer
    [email protected]


  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170


    I hope my english was fine...

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    Oops sorry your english is good!! I am just a space case, lack of sleep. The file is server side.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  12. #12
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    You can't access files with javascript...

    AFAIK anyway. If its server side you should be able to include it (ASP) or use some other way to get in the data in.

    Good luck


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    using an include would work but my problem is I don't know jack about Javascript (which I plan on changing soon) so i have no idea what to put in the include. Plus any VB script will not work.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  14. #14
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    OK, maybe you need to explain what you have on the SERVER.... javascript is a client-side script language. What you need is some server-side code. Depending on the setup of the server, you might be able to use VBScrip (ala ASP), PHP, Perl, and in an extrem, rare case, JavaScript (if the ISP supports JSP).

    Now, if what you have is a simple web-host that only allows HTML, then you might be SOL.

    You might also want to explain why VBScript won't work and why you are so hell bent on using JavaScript.

    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  15. #15

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    Hey just found out that Comcast (which is my ISP now accepts Front Page Extensions. Although I would still like to know how to do something like this for work environment. which I use IIS for the server.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    This is what and what not accepted by my ISP for front page extensions.

    # What server-based Frontpage features are supported on my site?
    Authoring FrontPage Webs:

    * Publish Web
    * Maintain Web (rename, move, delete files)
    * Index Web (for Web Search)


    Browse-time FrontPage Web Functionality:

    * Hit Counter
    * Web Search Form
    * Save Form Results to File
    * Discussion Form Handler (Disk-based Discussion Webs)
    * Photo Gallery


    Please note that most FrontPage features are not server-based. Rather, they are features implemented:

    * by the FrontPage client at Publish time (e.g., Table of Contents)
    * using client side scripting (JavaScript, VBScript)
    * by client-side Java Applets or ActiveX controls
    * or by some combination of the above.


    # Are all server-based Frontpage features supported on my site?
    Some of the FrontPage features require hosting on a Microsoft Windows environment. Because of this the following features are not available on our UNIX servers:

    * Active Server Pages (ASP)
    * ODBC and SQL Database connections (Access, SQL Server)
    * Server-side ActiveX
    * Server-side Scripting (VBScript)


    We also do not support the following features:

    * Administering FrontPage Webs
    * Save Results to E-mail
    * File Upload
    * Top 10 List
    * Personal or per-site Usage Logs
    TMacPherson
    MIS Systems Engineer
    [email protected]


  17. #17
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Now I see why you were using that control...

    Since the file is server side, you'll need to use some scripting language. Your specs in the post have no mention of PHP.

    Does it support PHP?


    If you're planning to do this for a work environment, where you say you have IIS, you can do it there with PHP or ASP.

  18. #18
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Troy Mac
    using an include would work but my problem is I don't know jack about Javascript (which I plan on changing soon) so i have no idea what to put in the include. Plus any VB script will not work.
    You could include it, that's true, but you'll get it in the same format as the file exists.

    <!--#include file="myfile.txt" -->

  19. #19

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    North East America
    Posts
    463
    I don't think it does support PHP. The include part is easy I know how to that because I do it all the time in ASP to connect to my DB's but if I just put the list in a file then like you said I will just get it as it is in the file ???Did you understand that ??? I am not sure I did LOL!

    Looks like I may be stuck with table editing. My list probably wont change that much anyway.
    TMacPherson
    MIS Systems Engineer
    [email protected]


  20. #20
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Troy Mac
    I don't think it does support PHP.
    You don't think. How about we go for a hopeless effort and see if it does.

    Create a php file, whatever.php and place the following code into it:

    PHP Code:
    <?
    phpinfo();
    ?>
    Then upload it there, and go to whatever.com/whatever/whatever.php

    What do you get?

  21. #21
    Addicted Member
    Join Date
    Jan 2004
    Posts
    162
    gotta question. if you wanna fill a table, say from an xml file, wouldn't you use the span tag like:

    Code:
    <html>
    <head>
    <title>song List</title>
    </head>
    <body>
    <xml id="cdcat" src="cdcat.xml">
    </xml>
    		
    <TABLE datasrc=#cdcat>
    <THEAD style="color: #0000cc;"><TR><TD><b>Song Name</TD><TD><b>Artists</TD></TR></THEAD>
    <TBODY>
    <TR><TD><B><DIV style="color: #660000;"><span datafld="Song Name"></DIV></TD>
    <TD><B><DIV style="color: #660000;" > <span datafld="Artists"></DIV></TD></TR>
    </TBODY>
    </TABLE>
    </body>
    </html>
    Not sure, but thought it made sense

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width