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. Applying JavaScript In Sitemap File

Applying JavaScript In Sitemap File

Scheduled Pinned Locked Moved Web Development
javascript
6 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.
  • S Offline
    S Offline
    saurabh mohal
    wrote on last edited by
    #1

    i am applying javascript in sitemap file to open a word file like pop up in someother window.It opens too but the page which i have been made start up Object comes in written.I want to view startup page as it is. **Site map Codefile** siteMapNode url="javascript:window.open('companypolicy/Email Policy.doc')" title="Email Policy" description ="Email Policy" roles="*" /;

    S 1 Reply Last reply
    0
    • S saurabh mohal

      i am applying javascript in sitemap file to open a word file like pop up in someother window.It opens too but the page which i have been made start up Object comes in written.I want to view startup page as it is. **Site map Codefile** siteMapNode url="javascript:window.open('companypolicy/Email Policy.doc')" title="Email Policy" description ="Email Policy" roles="*" /;

      S Offline
      S Offline
      SomeGuyThatIsMe
      wrote on last edited by
      #2

      try using an anchor tag as a link to the file you want to open...no that wont work...you could try something like this window.open ("your file here", "new page title", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=420,height=340,left=352,top=50"); the last bit just sets options and sizes for the new window. dont forget the ./ or ../ before the path depending on where the companypolicy directory is.

      S 1 Reply Last reply
      0
      • S SomeGuyThatIsMe

        try using an anchor tag as a link to the file you want to open...no that wont work...you could try something like this window.open ("your file here", "new page title", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=420,height=340,left=352,top=50"); the last bit just sets options and sizes for the new window. dont forget the ./ or ../ before the path depending on where the companypolicy directory is.

        S Offline
        S Offline
        saurabh mohal
        wrote on last edited by
        #3

        pop up is opening well but the problem is that on parent page some OBJECT kind of thing comes in written i dnt want that.I want to view parent page as it is.. Thanks

        S 1 Reply Last reply
        0
        • S saurabh mohal

          pop up is opening well but the problem is that on parent page some OBJECT kind of thing comes in written i dnt want that.I want to view parent page as it is.. Thanks

          S Offline
          S Offline
          SomeGuyThatIsMe
          wrote on last edited by
          #4

          so the popup is opening your word document, but the page that contained the link to the popup just says OBJECT or something similar..or the popup just says object? i have no idea why the parent page would change, unless there's some other javascript running that you arent aware of. if the popup is saying object then it isnt seeing the word document as a file, or cant display .doc file types.

          S 1 Reply Last reply
          0
          • S SomeGuyThatIsMe

            so the popup is opening your word document, but the page that contained the link to the popup just says OBJECT or something similar..or the popup just says object? i have no idea why the parent page would change, unless there's some other javascript running that you arent aware of. if the popup is saying object then it isnt seeing the word document as a file, or cant display .doc file types.

            S Offline
            S Offline
            saurabh mohal
            wrote on last edited by
            #5

            popup is opening word document, but the page that contained the link to the popup just says OBJECT..or can we make javascrpit function in sitemap file and call it in my url?

            S 1 Reply Last reply
            0
            • S saurabh mohal

              popup is opening word document, but the page that contained the link to the popup just says OBJECT..or can we make javascrpit function in sitemap file and call it in my url?

              S Offline
              S Offline
              SomeGuyThatIsMe
              wrote on last edited by
              #6

              It sounds like theres a document.write() in there some place, if you give document.write a control or the return of a few different functions all it will put on the screen is [Object] or something similar. aside from the codebehind doing Response.write or something else with the response object, or a document.write i cant think of any reason that the parent page would change.

              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