Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Website Maker code issue
Topic Started: Oct 9 2011, 09:47 PM (532 Views)
The_AwaKening
Member
[ * ]
I'm trying to build another page using this feature. It's a scrabble word helper that I made in VBS. It pulls from an online dictionary using msxml2.xmlhttp.6.0.

This code works just fine as an html file on my pc, but it won't load correctly here. Without posting my entire code, here is the portion that doesn't work. The dictionary never loads at startup, but I know for sure the window_onload sub is firing.

Code:
 

' This is called in my window_onload()
Connect "http://www.calvin.edu/~rpruim/scrabble/ospd3.txt", True

Function Connect(Request, aSync)
With objXML
.Open "GET", CStr(Request), aSync

If aSync Then
.OnReadyStateChange = GetRef("objXML_onreadystatechange")
.Send
Else
.Send
Connect = .ResponseText
End If
End With
End Function

Sub objXML_onreadystatechange()
With objXML
If .ReadyState = 4 Then
If .Status = 200 Then
Call LoadDictionary(.ResponseText)
End If
End If
End With
End Sub

Sub LoadDictionary(List)
If Len(List) < 1000 Then Exit Sub

Dim word

Dictionary.RemoveAll

For Each word in Split(List, vbLf)
Dictionary.Add word, getValue(word)
Next
End Sub


Everything stops after objXML.Send. I can post the entire code with html if you need, but I assure you the problem is somewhere in there, and like I said, it works as a stand alone file.
Edited by The_AwaKening, Oct 9 2011, 09:56 PM.
Offline Profile Quote Post Goto Top
 
The_AwaKening
Member
[ * ]
There's something wrong with the xmlhttp object on here. It will not load from any site I try, even after making an attachment right on my forum.
Offline Profile Quote Post Goto Top
 
brandley55
Member
[ * ]
Hello,

Users have to use their old FTP password to enter domain.com/admin area of the builder before the FTP password change or start fresh with web site builder then your password will get sync up then you shouldn't have issue with web site builder or wait for the developer to fix the issue which we have no ETA.

business development
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply