Results 1 to 9 of 9

Thread: help me with this code plz !!!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Location
    iran
    Posts
    28

    Angry 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 !!!
    Thank yoOu -):

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  4. #4
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    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................

  5. #5
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    Objects won't exist in IE or other browsers for much longer if EOLAS's suit against MS succeeds.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  7. #7
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196
    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

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  9. #9
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    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
  •  



Click Here to Expand Forum to Full Width