Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 998451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:11:48+00:00 2026-05-16T07:11:48+00:00

I have a local web app that lets users attach and view files. Viewing

  • 0

I have a local web app that lets users attach and view files. Viewing files is simply window.open(fileName), however whenever the filename has a # sign in it the file will fail to open with a dns error. I’ve tried escaping the # symbol with %23, and \# but it still fails to open… is there something special I need to do to escape the # symbol in a window.open url?

I’ve copied the filepath from the source file directly to a web browser and it opens fine, so I was assuming it was an issue with the window.open command.

EDIT: window.open code as requested. The url is always something local on our network such as \\path\fileName.pdf

window.open('file:' + url, '', 'top=10,left=10,height=' + (screen.height - 50) + ',width=' + (screen.width - 50) + ',titlebar=no,resizable=yes,scrollbars=1');

EDIT #2: I tried escaping the # right before the window.open string with %23 and displayed it with a prompt right before window.open, and I can copy/paste the string to IE and it opens fine, however the window.open code still fails.

URL Path: file:\\NetworkPath\Doc #1.pdf

Value window.open is giving me: res://ieframe.dll/dnserror.htm#file://NetworkPath/Doc

The app is hosted in an embedded web browser within our software application which uses IE (I think 6)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:11:48+00:00Added an answer on May 16, 2026 at 7:11 am

    Looks like there was a bug listed in Microsoft’s kb way back with IE6. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 515k
  • Answers 515k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think it shold be done with "data-id" parameter as… May 16, 2026 at 6:29 pm
  • Editorial Team
    Editorial Team added an answer ACTION_BATTERY_LOW is a system's broadcast action, so you won't be… May 16, 2026 at 6:29 pm
  • Editorial Team
    Editorial Team added an answer If you wish this rake code to run during the… May 16, 2026 at 6:29 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a web app that is supposed to be run on a single
I have a web-app that was done in Rails 1.2.3 and I have just
I have a web-app that will reside on a production server where I want
I have a web-app that has a master mysql db and four slave dbs.
An application I'm developing requires that the app main a local list of things,
I have an ASP.NET MVC web app whose controllers use WCF to call into
I have an approach in mind for an image viewer in a web app,
I am creating a web service for end users which will have a front-end
Let's assume I browse a specific web page that uses JavaScript to update its
I have a data grid of strings which are the names of files on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.