Results 1 to 6 of 6

Thread: <object> <embed>

  1. #1

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342

    <object> <embed>

    You may want to reference this thread:
    http://www.vbforums.com/showthread.p...hreadid=190750 .


    I recently learned a little bit more about server controls... how to use them w/ vs .net.

    I am writing html code to an <asp:Literal /> tag. One of the things that gets written in the html is an <object> tag (which embeds svg files into the page). Since I started using the <asp:Literal /> tag, instead of response.write, the svg images won't load unless the page is viewed on the server.

    ex:
    case 1:
    I open the .aspx, that creates the page w/ svg embedded, on the webserver, and everything works fine.

    case 2:
    I open the .aspx that creates the page w/ svg embedded, from another system (not the server), and svg images never load.

    wierd part:
    In either case (viewing w/ a browser directly from the server or w/ a browser on another system) when I click view source, the source code is identical.


    The page was working fine when I was using response.write to write the html (but the html appeared above all other tags which, is very sloppy and bad)


    This is what the <object>/<embed> tags look like in the source code:
    Code:
    <object data='G:\WebServer\cpthandler\svgCharts\frictionRatio.svg' width='215' height='685' type='image/svg+xml'>
     <embed src='G:\WebServer\cpthandler\svgCharts\ffrictionRatio.svg' width='215' height='685' type='image/svg+xml' />
                  </embed> 
                </object>
    thanks for any help.

    Paul

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    'G:\blah...'


    is the problem it needs to point to a web address

    something like

    http://whatever.com/cpthandler/svgCh...ctionRatio.svg


    Finally someone else who uses SVG!!
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    cool, thanks, I'll try that in about one sec.

    Finally someone else who uses SVG!!
    Ya, I started using it in a real app (i've toyed w/ it a few times before) about 2-3 months ago. I'm generating some kick-@$$
    xy-scatter charts on the fly (getting data points from text files).

    I'm lovin' the svg stuff now. I spent countless hours messin' w/ ms chart control and other stuff, and could never get things to layout just right. SVG rocks.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    SVG is the bong!!



    I had written a couple tutorials on how use filters in svg for a great svg site http://www.svgelves.com

    but alas the site disappeared

    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Hyperactive Member pgrimes's Avatar
    Join Date
    Aug 2001
    Location
    sacramento
    Posts
    342
    cool... If you have the tutor's up or get them up somewhere else, let me know, I'd like to check 'em out.

    [email protected]

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I may still have em at work..I hope
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

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