|
-
Jul 12th, 2004, 10:48 AM
#1
Thread Starter
Hyperactive Member
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.
-
Jul 12th, 2004, 11:43 AM
#2
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
-
Jul 12th, 2004, 12:48 PM
#3
Thread Starter
Hyperactive Member
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.
-
Jul 12th, 2004, 07:54 PM
#4
Frenzied Member
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.
-
Jul 13th, 2004, 03:21 AM
#5
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+
-
Jul 13th, 2004, 04:15 AM
#6
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
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...
-
Jul 13th, 2004, 06:03 AM
#7
Thread Starter
Hyperactive Member
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...
-
Jul 13th, 2004, 07:11 AM
#8
Is the file server side or client side?
-
Jul 13th, 2004, 07:18 AM
#9
Thread Starter
Hyperactive Member
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?
-
Jul 13th, 2004, 07:30 AM
#10

I hope my english was fine...
-
Jul 13th, 2004, 08:21 AM
#11
Thread Starter
Hyperactive Member
Oops sorry your english is good!! I am just a space case, lack of sleep. The file is server side.
-
Jul 13th, 2004, 08:22 AM
#12
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
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...
-
Jul 13th, 2004, 08:26 AM
#13
Thread Starter
Hyperactive Member
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.
-
Jul 13th, 2004, 08:32 AM
#14
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
-
Jul 13th, 2004, 08:43 AM
#15
Thread Starter
Hyperactive Member
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.
-
Jul 13th, 2004, 08:47 AM
#16
Thread Starter
Hyperactive Member
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
-
Jul 13th, 2004, 11:10 AM
#17
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.
-
Jul 13th, 2004, 11:14 AM
#18
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" -->
-
Jul 13th, 2004, 01:25 PM
#19
Thread Starter
Hyperactive Member
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.
-
Jul 13th, 2004, 11:49 PM
#20
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?
-
Jul 15th, 2004, 12:44 AM
#21
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|