Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. loading a simple text file in iframe

loading a simple text file in iframe

Scheduled Pinned Locked Moved ASP.NET
helpcom
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    netJP12L
    wrote on last edited by
    #1

    Hi guys, I am trying to load a text file into an iframe but I am keep getting an "Bad Request" error message. I couldn't figure it out where the problem is. Could anyone please help me up. pathFile="https://www.mysupport.com/myhosted/Data/MainFolder/testFolders1&Folder/t.txt" <iframe name="fraContent" id="fraContent" src="<%=pathFile%>" width=20% height=265 FRAMEBORDER="10"> </iframe> Thanks in advance

    J 1 Reply Last reply
    0
    • N netJP12L

      Hi guys, I am trying to load a text file into an iframe but I am keep getting an "Bad Request" error message. I couldn't figure it out where the problem is. Could anyone please help me up. pathFile="https://www.mysupport.com/myhosted/Data/MainFolder/testFolders1&Folder/t.txt" <iframe name="fraContent" id="fraContent" src="<%=pathFile%>" width=20% height=265 FRAMEBORDER="10"> </iframe> Thanks in advance

      J Offline
      J Offline
      jintalPatel
      wrote on last edited by
      #2

      function setframeOriginal(url) { var eyeframe; eyeframe = document.getElementById('RSIFrame'); eyeframe.src='You Path'; } ;</x-turndown>

      N 1 Reply Last reply
      0
      • J jintalPatel

        function setframeOriginal(url) { var eyeframe; eyeframe = document.getElementById('RSIFrame'); eyeframe.src='You Path'; } ;</x-turndown>

        N Offline
        N Offline
        netJP12L
        wrote on last edited by
        #3

        Thanks for replying but are you saying that i should explicitly assign value through the javascript. Do you thin it will make a difference? While I was assigning to the "scr" value of iframe. I have realized during a simple test that only those files get loaded where there is no & or ampersand sign in found in the file path. How should i deal with this issue. Thanks again

        modified on Tuesday, June 22, 2010 11:14 AM

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups