ASP.Net with Java Windows
-
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
-
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
Check with this window.open("../GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
-
Check with this window.open("../GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
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