User Profile
Collapse
-
I found a solution. I just added the IE Tab for Chrome and it is doing what I need so far. -
SharePoint 2013, google chrome will not open text files.
I want to be able to "Edit" a file instead of the file opening up in the browser. It was actually doing the same thing in Mozilla and IE, but I was able to fix the issue with those two browsers, but nothing is working for google chrome browser. When the file is clicked I would like to see the dialog box that ask if I would like a read-only or "Edit" -
-
document.write in wrong place
Hello:
I put document.write in an onload function and now the site executes the statement and I can't access the website code or website anymore. It is in SharePoint. The site flashes for a second and then the write statement executes immediately. Any way to edit the SharePoint code? -
-
Can someone directly answer this question? How can I take this line/string
<a href="http://bytes.com">Byte s</a> topics
and add it to a div as Bytes topics
Don't just say use escape and unescape without an example. The string is appended to other strings that may not have html tags and stored in a variable string. The final string is added to the innerhtml of the div. So basically it seems like adding html...Leave a comment:
-
-
-
Well nothing is working. Seems like a line like
<a href="http://www.steelers.co m">Steelers</a> win. I tried escape and unescape and got the same result: it only puts the text version in the div. I want the following in the div
Steelers win
...Code:function LoadFile() { var oFrame = document.getElementById("frmFile"); var strRawContents = oFrame.contentWindow.document.body.childNodes[0].innerHTML;Leave a comment:
-
OK, thanks. I've been looking at both ways, but leaned toward innerHTML.Leave a comment:
-
The last actually comes out as text not the link. The link appeared when I copied and pasted.Leave a comment:
-
This is code I am running. Here is the result.
The http://www.steelers.com win again.Code:<a href="http://steelers.com"> Pittsburg Steelers</a> This is line 1. This is line 2. This is line 3. <a href="http://steelers.com"> Pittsburg Steelers</a>
Leave a comment:
-
What do you mean the actual code? This the actual code from the site. If it helps below I have take out all comments and copied it again here.
...Code:<script type="text/javascript"> function LoadFile() { var oFrame = document.getElementById("frmFile"); var strRawContents = oFrame.contentWindow.document.body.childNodes[0].innerHTML; while (strRawContents.indexOf("\r")Last edited by Rabbit; Mar 23 '15, 08:27 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data. Second warning.Leave a comment:
-
-
I know that. I'm the one who commented it out. As mentioned I can get it to work that way: the way the commented out line is doing. Once again I am trying to read lines(some containing html tags) from a file and add it to the div.Leave a comment:
-
Even if I try to use replace, it just puts the following in the container.
<a href="http://steelers.com"&g t; Pittsburg Steelers</a>Leave a comment:
-
Even without the escape line it still does the same thing. I was just trying something with the escape.Leave a comment:
-
-
//document.getEle mentById('div1' ).innerHTML = '<div><a href="http://www.steelers.co m">Steelers</a></div>';Leave a comment:
-
Thanks Rabbit for your response. I'll keep playing with it to see what happens. Line 25 above is basically doing the same thing you are doing. I want user to be able to edit the text file at any time and each time an edit is made, the div will update as well with the additional text. So sometimes they may put href or other html tags in the text file.Leave a comment:
No activity results to display
Show More
Leave a comment: