SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: Mash!

  1. #1
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mash!

    hey guys...

    I've been playing with MASH (Microsoft Agent) that shows a lil' cute anim. I managed to create and run the anim, and I'm supposed to plug the code into the header of the HTML /PHP file.

    Problem is, I don't want to mess up my code; I would like to keep the MASH anim code and the actual PHP scripts on separate files.

    So what I did was save the scripts in a VBS file, and put that file in the HTDOCS dir.

    Then I inserted this code to call the file in my script:

    <SCRIPT LANGUAGE="VBScript" scr="test.vbs"></SCRIPT>

    The agent won't show. I also tried:

    <SCRIPT LANGUAGE="VBScript" scr="C:/test.vbs"></SCRIPT>

    <SCRIPT LANGUAGE="VBScript" scr="./test.vbs"></SCRIPT>

    to no success. Any ideas why the file's not being parsed/called?

  2. #2
    SitePoint Zealot alexk's Avatar
    Join Date
    Nov 2000
    Location
    Sydney, Australia
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    may be replacing scr with src will help?...

  3. #3
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by alexk
    may be replacing scr with src will help?...
    Oh yes, tried that.. nope, it didn't work...

  4. #4
    SitePoint Zealot alexk's Avatar
    Join Date
    Nov 2000
    Location
    Sydney, Australia
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is your test.vbs file located in the same directory as your php script?...

    if so, i guess something is wrong with vbs script...

  5. #5
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hm... can't be. If I dump the code straight into the header, it runs fine. Also, the VB Script is auto-generated by MASH.....

  6. #6
    SitePoint Zealot alexk's Avatar
    Join Date
    Nov 2000
    Location
    Sydney, Australia
    Posts
    134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <SCRIPT LANGUAGE="VBScript" scr="C:/test.vbs"></SCRIPT>
    so, your .vbs script is in the C:\ directory... is your .php script also there?... (sorry, i used to *nix servers... dunno how they organize web directories on Windows )

    if not, try to put them together and use:
    <SCRIPT LANGUAGE="VBScript" SRC="test.vbs"> </SCRIPT>
    Last edited by alexk; Aug 9, 2001 at 03:28.

  7. #7
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi alex... yes, they are together in the same dir. as the other files being parsed.. in apache/htdocs

  8. #8
    HI silver trophy Silverado4x4's Avatar
    Join Date
    Jan 2001
    Location
    USA
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a wild guess, but shouldn't it be C:\ and not C:/ ?

  9. #9
    SitePoint Addict
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ooooh.. tried that ages ago, Silverado....

  10. #10
    HI silver trophy Silverado4x4's Avatar
    Join Date
    Jan 2001
    Location
    USA
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by infinitium
    ooooh.. tried that ages ago, Silverado....
    Just making sure


Bookmarks

Posting Permissions

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