Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts

    src attribute won't accept < or >

    I'm getting an error message:

    ******************************

    The XML page cannot be displayed

    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

    The character '<' cannot be used in an attribute value. Error processing resource 'http://(website address)/Images/101o...

    src="<%CDROM%>:/Media/Video/Lesson36.mov"

    ****************************

    Does anybody know a way to get around this limitation?

    Thanks in advance,

    Terry

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    <%CDROM%> is not processed by the server. Is this an asp or jsp page? Whatever it is, it should have an = sign there

    <%=CDROM%>

    But I'm surprised it wasn't parsed by the server and didn't throw an error.
    Are you really using a server-side language?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts
    Thanks for your answer.

    It's a piece of code that makes QuickTime launch full screen with no intervening manual keypresses. Just up and full screen - click anywhere and it's gone. Fantastic! But the method relies on this code:

    <script language="JavaScript" type="text/javascript">
    QT_WriteOBJECT_XHTML('poster.mov', '95', '29', '',
    'href','fullscreen94.qtl',
    'target','quicktimeplayer',
    'emb#bgcolor', 'black',
    'align', 'middle',
    'controller','false');
    </script>

    ...which calls fullscreen94.qtl (number 94 in my case)

    The fullscreen94.qtl contains this code:

    <?xml version="1.0"?>
    <?quicktime type="application/x-quicktime-media-link"?>
    <embed
    src="file:///D:/MediaVideo/No94.mov"
    autoplay="true"
    fullscreen="full"
    quitwhendone="true"
    />

    ...now this works well if the movie is on the D: Drive, but our movies are on a CDROM, and that's where we want them to be.

    Trouble is, the line

    src="<%CDROM%>:/Media/Video/Lesson94.mov"

    doesn't work and complains about the < and >.

    This works well (even without the =) if is is not placed within a src attribute line.

    Is there some way to still reference the file on a CDROM from within a src line?

    Best,

    Terry

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I don't know what qtl is, is that a scripting language? You said that <%CDROM%> works in others except in the src property. Can you show that other code?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts
    I'm sorry - I can't say how the <%CDROM%> works elsewhere because it's part of a proprietary system that I know nothing about, so maybe it's asking too much to request help in this area.

    But the <%CDROM%> does work in this system, just that it throws a curly one when used within the src="" line.

    The qtl thing is really clever and I found it at:

    http://homepage.mac.com/cook5/qt4-we...ullscreen.html

    I am using the second (javascript) method on the page.

    I've been looking for a foolproof fullscreen button method in QuickTime for over a year and here it is. Pity is, I come up against this src attribute problem.

    Oh well, can't have everything I guess.

    Thanks again for your help.

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I don't think you can put variables in a qtl file which is an xml-formatted file. Maybe you were saying the <% %> works in an .asp or .jsp file?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #7
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts
    I guess it's an asp or jsp page - I know I'm not helping you by saying this, but it's a system that I can't delve any further into and that kind of knowledge is transparent to me.

    All I know is that the <%CDROM%> method in this particular system does get a movie off a CDROM (there are other things that have to be stipulated elsewhere - like the drive letter etc.)

    But I was only wondering if there was some way to put a variable (with < and >) inside a src line. I guess not.

    There'll be a way around it, somehow, but it'll be complex I suppose.

    Anyway, I really appreciate your help.

    If I have brought to people's attention the great QuickTime fullscreen loading method, them I haven't wasted anyone's time. (I hope!).

    Best,

    Terry

  • #8
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    May I know what your web server is? IIS or what? Or you're not using one?
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #9
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    884
    Thanks
    53
    Thanked 6 Times in 5 Posts
    It's a Windows web server - not mine incidentally - but, as I say, I don't own the code that makes this <%CDROM%> variable work. I can't therefore say anything about the server side code, because I don't know how it works.

    My files are hosted on this server - and I might be able to get their help to do what I require. But it would just be a whole lot easier if I could present them with a solution that didn't involve them rewriting parts of their system.

    If I could get a src="" line to deal with a variable I would be home and hosed, but I realise now that it is much more complicated than I imagined.

    When I get an answer from the host server I will post it.

    Many thanks once again.

    Terry

  • #10
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    I'm sure people here will be able to help you better if you get more information from your host.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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