Applying JavaScript In Sitemap File
-
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="*" /;
-
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="*" /;
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.
-
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.
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
-
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
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.
-
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.
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?
-
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?
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.