Forum Moderators: open

Message Too Old, No Replies

View Source is not working the way I expect it to

i've got a major problem, can someone help?

         

jonnydude2

11:25 pm on Jul 18, 2004 (gmt 0)

10+ Year Member



three days ago,I was trying to edit my site by using the 'view source' option...but instead of showing the file's name...I saw the full path...so now i cant edit my html doc.
example:
If I open "c:\blabla.html" and the view it's source I get a document which says in it's title:
"C___blabla.html[1]"
instead of "blabla.html"
can any one help?

bill

1:13 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld jonnydude2

What are you using to edit your page? Why not just open the file directly from that software instead of view source? It sounds like you're editing the temp file.

lorax

1:27 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



And you don't need any fancy tools to edit the file. Notepad (or it's equiv in the Apple world) would do just fine. Then you can manually edit those references.

And welcome to WebmasterWorld!

jonnydude2

2:14 am on Jul 19, 2004 (gmt 0)

10+ Year Member



No,no,no...you didn't understand me...
When I use the view source option it's supposed to open notepad...
But when it opens notepad, instead of letting me edit the file directly...it's sort of creates a new copy of the file...
If I open c:\blabla.html and then right click-->view source..
It opens notepad in a new copy, with this title:
"c___blabla.html[1]"
instead of:"blabla.html"
Generally It creates a whole new copy of the file..

vkaryl

2:22 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, yes, it's opening a copy of the file in your temp internet files folder.

So you can do your editing in that copy of the file just fine, but you need to "save as" a file in My Documents or somewhere BESIDES the temp internet files folder, so that you can access the edited file to upload it with your FTP client. (In other words, you can't just click on "save" and expect the file to overwrite the source file on the server - it's two totally separate functions/situations.)

I don't know that you can automatically edit in notepad from view source, save the edited file, and expect it to save on the server. If that's a new functionality, that'd be nice.

Purple Martin

4:29 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're not supposed to be able to edit source directly after clicking "View Source". This is because the source of a typical HTML web page is on a web server and is therefore read-only. I agree that it would be nice to be able to edit local files as it would make quick updates much easier, but browsers simply aren't designed to do that.

tedster

4:41 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, PM, some browsers let you configure "view source" to open your editor of choice. For example, I have Opera set to open the source code in HomeSite. When I am online it opens the cached version of the page. But if I am viewing local files, I can immediately edit them.

Even opening a cached version of a page source directly in an editor gives a lot of options for analyzing the code - it's great for research.

jonnydude2

11:39 am on Jul 19, 2004 (gmt 0)

10+ Year Member



The Html file is a file that i created on my computer...i just opened a txt and changed it to a html file...
and I was able to edit the file directly using view source before....
And now i can't...

steve40

11:53 am on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi ,
I seem to remember some time ago a virus that screwed notepad , can't remember what it messed up though , suggest you run a virus checker on your PC ,
steve

Leosghost

12:09 pm on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



klez...I think it was klez.h ..sometimes hides in notepad

vkaryl

11:06 pm on Jul 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, jonnydude2. Let's see if I finally got this right. You're editing a MACHINE-RESIDENT html page, and in the past you have had it open automatically in notepad, done your edit, and then saved it. Right?

If that's the case, I can think of a couple of things that might have changed (though I would of course have no way of knowing HOW they would have got changed!):

1. The .html extension is no longer recognized as editable in notepad (any installations of anything lately that might have changed your extension listings?) You can change the action for this extension in My Computer/Tools/Folder Options using the File Types tab.

2. Somehow your html page has been saved as a "read-only" file, so in order to open for edit in notepad it is opening as a "new file" which would explain the [1] in the title bar. You can try right clicking on the original html file and click on Properties, then on the main screen tab, at the bottom, check that the "read only" box is empty.

If neither of those helps, please let us know.

And welcome to Webmaster World!

jonnydude2

1:02 am on Jul 20, 2004 (gmt 0)

10+ Year Member



I'm not stupid, you know...
I tried the options you advised even before I posted this discussion...
By the way...I solved the problem myself.
Apperantly A virus "consumed" some of my windows dll's.
After taking care of the virus, I used my windows disc and restored the dll's missing..
But thx for trying guys..

vkaryl

1:13 am on Jul 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I wasn't (nor were others, I'm assuming) thinking you were stupid, just that we hadn't understood you properly the first time.

Sometimes it's helpful if one details everything one HAS tried so that others just hoping to help don't duplicate one's earlier efforts.

Glad you figured it out.