|
-
Sep 11th, 2003, 11:11 PM
#1
Thread Starter
Junior Member
help me with this code plz !!!
hi all, can any one say me that what does this piece of code ? and if that works or not ?
in the html source code we have :
.
.
.
<OBJECT ID="test" width=250 height=50 CLASSID="CLSID:10548230-1C12-11A1-8248-4a1d4f56a2aC"
codebase="http://www.mywebsite.com/loader.cab#version=1,0,0,2">
</OBJECT>
.
.
.
<SCRIPT LANGUAGE="javascript">
var ie4 = b_agent.indexOf("MSIE 4.0",0);
if (ie4 == -1)
{
if (!test.Version)
{
alert('!test version');
}
else
{
alert('test version !!!');
}
}
</SCRIPT>
what does test.version ? is it a method of javascript ? i could mail the full code too if it is
important. i needeed that check if the loader.cab file has been installed on the client computer
or not? and i looked some source code , till i found that above code, but i don't now exactly what
that source code does?
is there any another way that i could find that the cab file has been successfully installed on the client
computer?
plz help me as soon as possible , cause i need urgent help !!!
-
Sep 12th, 2003, 09:01 PM
#2
Fanatic Member
Version is a method/property of the object "test" that is being defined in this code block:
Code:
<OBJECT ID="test" width=250 height=50 CLASSID="CLSID:10548230-1C12-11A1-8248-4a1d4f56a2aC"
codebase="http://www.mywebsite.com/loader.cab#version=1,0,0,2">
</OBJECT>
What it is beyond that... I couldn't say.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Sep 15th, 2003, 02:10 AM
#3
It simply represents the version number of the object, so you can not only test whether the object is there at all but also if it has a high-enough version.
That said, any object other than Flash and Java are IE-only and thus bad.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 15th, 2003, 02:36 AM
#4
Lively Member
there are more plug-ins.
adobe and shockwave for instance.
you can check all that.
But you can also check for msn or icq.
http://www.raketje.com coming..............soon................
-
Sep 15th, 2003, 07:43 AM
#5
Objects won't exist in IE or other browsers for much longer if EOLAS's suit against MS succeeds.
-
Sep 16th, 2003, 01:50 AM
#6
Yeah, and if the software patents decision in Europe goes through we'll have similar stupid stuff here too.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 16th, 2003, 07:29 AM
#7
I think the European thing is going to be a disaster if it goes through.
From what I understand if you want to add a textbox to a vb form you need a liecence from the person who created the textbox control and ditto for nearly every bit of code you use
-
Sep 16th, 2003, 08:33 AM
#8
No, it's different.
Say this thing had been law many years ago. Someone came up with the idea to display a small box in graphical environments where you can write text inside. And this someone patents this concept of a "textbox". That would mean that EVERYONE who wants to develop or use a textbox would have to pay that guy - for coming up with a quite obvious idea.
This is already possible in the USA, as the new lawsuit against MS proves. Someone patented the idea of a program displaying content that it doesn't recognize by loading a helper program or plugin for it - which is exactly what all web browsers do with applets or plugins.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 16th, 2003, 01:07 PM
#9
Lively Member
all that patent stuff is really stupid, and I hope europe isn't going to allow this...
http://www.raketje.com coming..............soon................
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
|