Soft As It Gets Forums   Welcome to the new Soft As It Gets Forums. You can get assistance here for our new product Surfulater,
and for ED for Windows

Go Back  Soft As It Gets Forums > Surfulater Customer Forums > Publishing and Sharing Content
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1
Old 30th August 2006, 12:41 PM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Default HTML view

Neville originally directed me to This Site as a possability of generating the SurfuLater TreeView and Articles. I did some work on it then got busy doing other stuff...

So I decided to clean up what I'd done so far and let people see.

Edit: Didn't clean up enough (unfortunately) and a call to UserAccounts.CommonDialog crashed the script, as did security issues. So, I've re-done it as a HTA, which tests OK on my security overkilled work computer.

This aint all that fancy and it doesn't do very much except load a read-only version of the SuL KnowledgeBase: but the TreeView works and the Articles display (somewhat like what they do in SurfuLater).

Instructions:
  1. Download and unzip the attached HTMLview.zip file.
  2. A HTML Directory will be created when unzipped.
  3. Open the HTMLview.htm file in IE (FF is an issue)
  4. Click the 'Load files' button and select a directory which contains SurfuLater files and read away...
What it does:
  1. It creates an xml copy of the KB (so nothing terrible will happen to your data.
  2. It uses some vbscript to pass the xml through an xslt transform (several times actually) to generate the TreeView and then Articles.
Possible Future Enhancements:
  • Make it Server-Side code
- Perry
Attached Files
File Type: zip HTMLview.zip (58.8 KB, 27 views)

Last edited by pmowbray : 18th September 2006 at 07:30 AM. Reason: HTMLview update: new version (1.2)
Reply With Quote
  #2
Old 31st August 2006, 05:56 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Cool

Hi Perry,
This sounds very interesting. I haven't had time to go near this stuff, as much as I've wanted to.

I'm getting various errors:
Line 17, Char 1
Error ActiveX Component can't create object: 'Scripting.FileSystemObject'
Code: 0

The the page loads ok, but there is an error symbol at the left of the status bar. Clciking on that displays the above error.

"Load File:" gives "Error on Page" on the status bar. Double click on status bar symbol shows:
Line 254, Char 3
Error: ActiveX component can't create object" 'UserAccounts.CommonDialog'
Code 0.

Over to you.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #3
Old 1st September 2006, 03:11 AM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Default

Hi Neville:

Ah, the joys of Client Side Scripting!!
Quote:
Originally Posted by nevf

I'm getting various errors:
Line 17, Char 1
Error ActiveX Component can't create object: 'Scripting.FileSystemObject'
Code: 0

The the page loads ok, but there is an error symbol at the left of the status bar. Clciking on that displays the above error.

"Load File:" gives "Error on Page" on the status bar. Double click on status bar symbol shows:
Line 254, Char 3
Error: ActiveX component can't create object" 'UserAccounts.CommonDialog'
Code 0.
It sounds like your security is stopping scripting from creating ActiveX objects.

The other issue is with the UserAccounts.CommonDialog. Apparently it's only available when VS is installed (which creates a licence).

The Scripting.FileSystemObject should not be an issue as it's usually installed with Windows.
Reply With Quote
  #4
Old 1st September 2006, 05:55 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Default

Quote:
Originally Posted by pmowbray
Hi Neville:

Ah, the joys of Client Side Scripting!!

It sounds like your security is stopping scripting from creating ActiveX objects.

The other issue is with the UserAccounts.CommonDialog. Apparently it's only available when VS is installed (which creates a licence).

The Scripting.FileSystemObject should not be an issue as it's usually installed with Windows.
I've got a Custom setting with some things enabled and others not. "Run ActivateX controls" is enabled though. I've not seen this error before, but this may because I don't visit sites with ActiveX controls, but I doubt it. It may be that it isn't "marked as safe" whatever that means.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #5
Old 3rd September 2006, 02:01 PM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Default

Quote:
Originally Posted by nevf
I've got a Custom setting with some things enabled and others not. "Run ActivateX controls" is enabled though. I've not seen this error before, but this may because I don't visit sites with ActiveX controls, but I doubt it. It may be that it isn't "marked as safe" whatever that means.
I've learnt something about HTA's this weekend!

And I've re-written it as an HTA which not only works on my XP machine but also on my W98 (which the other one didn't), but just to make sure I'll take it to work and see there (if it works there it should work anywhere!).

- Perry
Reply With Quote
  #6
Old 3rd September 2006, 11:19 PM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Default

OK, the new HTA version works at my work, which I hope will mean it works most places.

Please let me know if that is not the case.

- Perry
Reply With Quote
  #7
Old 5th September 2006, 10:17 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Default

I'm getting further this time. I've tried about 5 KB's and each one gives an
error Line 331, Char 3 Permission Denied.

FYI I'm using a different PC as I'm out of the office this week.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #8
Old 5th September 2006, 12:12 PM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Question

Quote:
Originally Posted by nevf
I'm getting further this time. I've tried about 5 KB's and each one gives an
error Line 331, Char 3 Permission Denied.
Sounds like SurfuLater has locked the files you're trying to view.

I've added an error handler to that function: Let me know if that's not it.

- Perry
Reply With Quote
  #9
Old 6th September 2006, 03:00 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Default

Nope. Surfulater wasn't running at the time. I'll check the new version.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #10
Old 6th September 2006, 03:39 AM
pmowbray's Avatar
pmowbray pmowbray is offline
Senior Member
 
Join Date: Mar 2006
Location: Blue Mountains: Australia
Posts: 236
Default

Quote:
Originally Posted by nevf
Nope. Surfulater wasn't running at the time. I'll check the new version.
That's very odd, as all the offending line is doing is making a copy of the KB??

You're not running from within the archive? No odd permissions where a VBScript can't create a file???
Reply With Quote
Reply


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 10:53 PM.


Powered by: vBulletin Version 3.0.0 Release Candidate 3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2004-2005, Soft As It Gets Pty Ltd