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. ASP.Net with Java Windows

ASP.Net with Java Windows

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavajavascriptasp-net
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.
  • P Offline
    P Offline
    PDTUM
    wrote on last edited by
    #1

    Hello, I am a genuine novice with Java. I have written the following code to accept a passed variable and open a window designed to show an enlarged graphic. The window opens but then displays the following error, which seems to indicate that the path is incorrect; however, it is the exact path is used to display the original graphic (which works fine). Here is the error, followed by the code. The Error: Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /TB_09_Online/~/GearsAds/gears33.png The Code: <script type="text/javascript"> function OpenLargeWindow(image) { window.open("~/GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus(); } </script> <td class="tdr2"> <asp:Image ID="Image13" runat="server" ImageUrl="~/GearsAds/gears33.png" Height="200px" Width="430px" /> <a href="javascript:OpenLargeWindow('gears33.png')"> <asp:Image ID="Image18" runat="server" ImageUrl="~/GearsAds/plus_sign.png" /></a> </td> Seems simple enough...I cannot understand why the path is wrong, unless it is a syntax error of some sort. Any Idea's? Thank You for your help, Pat

    P 1 Reply Last reply
    0
    • P PDTUM

      Hello, I am a genuine novice with Java. I have written the following code to accept a passed variable and open a window designed to show an enlarged graphic. The window opens but then displays the following error, which seems to indicate that the path is incorrect; however, it is the exact path is used to display the original graphic (which works fine). Here is the error, followed by the code. The Error: Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /TB_09_Online/~/GearsAds/gears33.png The Code: <script type="text/javascript"> function OpenLargeWindow(image) { window.open("~/GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus(); } </script> <td class="tdr2"> <asp:Image ID="Image13" runat="server" ImageUrl="~/GearsAds/gears33.png" Height="200px" Width="430px" /> <a href="javascript:OpenLargeWindow('gears33.png')"> <asp:Image ID="Image18" runat="server" ImageUrl="~/GearsAds/plus_sign.png" /></a> </td> Seems simple enough...I cannot understand why the path is wrong, unless it is a syntax error of some sort. Any Idea's? Thank You for your help, Pat

      P Offline
      P Offline
      puviyarasan j
      wrote on last edited by
      #2

      Check with this window.open("../GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();

      P 1 Reply Last reply
      0
      • P puviyarasan j

        Check with this window.open("../GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();

        P Offline
        P Offline
        PDTUM
        wrote on last edited by
        #3

        Good Morning, Thank you for the reply. Nope....I replaced the tilde with the periods and received the following error: HTTP Error 404 - Not Found. Version Information: ASP.NET Development Server 9.0.0.0 It's different, but still missing content. Thanks for the effort. Please feel free to suggest anything else if you should come up an idea. Best Regards, Pat

        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