![]() |
| Getting HTML source from Site Designer pages |
|
JasonLedtke
|
The javascript-generating-HTML techniques used by Site Designer caused problems for some visitors to my sites. I am not 100% certain what causes the problem, but it is very repeatable and seems to be associated with Norton Internet Security products. Users with the problem get a giant mess instead of nice pages. So I wanted to strip out most of the Javascript and present a mostly static page - this solved the problem.
It occured to me that other people might want to rescue their HTML from the site designer wizard as well - possibly to fix the bugs I was seeing, or to be able to load their site into Dreamweaver or Frontpage, or to be able to more highly customize their HTML (and fix things like "Untitled" web pages). Here is the step by step process I used to extract the HTML from my site designer site. 1) Download the HTML document and Open it for editing 2) Add this script to the bottom of the webpage:
3) Open the modified HTML document in a browser 4) A new window will popup with the source HTML, Copy the HTML from this window to this site: http://infohound.net/tidy/ 5) Paste it in, tidy it, copy the results as the starting point for the new page. 6) In the new HTML, remove all <script> and CDATA blocks 7) Add these lines before the <body> tag*:
*There may be additional .js files you need to reference to make your pages work. These did the trick for me, but your mileage may vary. Obviously, after you do this you should not use site designer any more. |
||||||||||||||||
|
|
|||||||||||||||||
|
pmeserve
HostMySite Tech
|
Couple other ways for FF/Mozilla people:
* using DOM Inspector, you can copy the value of the HTML.innerHTML JavaScript object * using the Web Develper Extension you can view/save "Generated Source" |
||||||||||||
|
|
|||||||||||||
| Yes, SiteDesigner |
|
comprug
Forum Regular
|
Yes, I have to admit, I don't like to criticize HMS, but SiteDesigner generates pretty bad markup.
|
||||||||||||
|
|
|||||||||||||
|
pmeserve
HostMySite Tech
|
Well the actual HTML isn't that bad, it's just that large amounts of the content get injected with Javascript. For somewhat obvious reasons there are certain security apps that find the behavior suspicious. Its just sort of an unfortunate design choice...we have looked into the possiblity of changing this
|
||||||||||||
|
|
|||||||||||||
| On a more important note though |
|
comprug
Forum Regular
|
On a more important note though, I hear Norton internet security does nasty things to AJAX Requests.
|
||||||||||||
|
|
|||||||||||||
| Getting HTML source from Site Designer pages |
|
||
|


