PDA

View Full Version : My website doesn't work on some computers


RDRCarlos
April 27th, 2007, 03:17 AM
I put together a fairly complex website and it doesn't function on some computers, especially macs. I used the Microsoft script editor to write the pages and used vbscript as the scripting language. I originally thought it might of been because I didnt have the <!DOCTYPE> tag as the first line on all the pages but even after including the tag, no change (actually there was a change. All the text fonts were changed but no functionality change).
Problem 1:
On my first page I use the [SetInterval] function to execute commands at a specific time interval. This works fine on my writing computer and on my test computer. It also works fine on my friend's computer of whom I'm writing the site for. Another friend has a mac and he can load the page but the event timer doesn't work. Another friend has a PC and again, the timer doesnt start on his computer.
Problem 2:
My second page is my menu page. I used a table to set up my menu buttons. I used the table cells themselves as the buttons rather than adding extra <input> tags. I used CSS to simulate the cells as buttons. Again, the buttons work fine on both my computers and on my first friends computer but not on my other 2 friends' computers. They can load the page but the buttons don't work and the curser doesn't change on their computers when they mouseover the buttons.
On my pages, I use the following script in the [window_onload] function to change the browser size to maximum.
window.moveTo 0, 0
window.resizeTo window.screen.availWidth,window.screen.availHight
Could this be a possible problem?
Any help or insight would be greatly appreciated.

Buzz
April 27th, 2007, 03:53 AM
It's all browsers... if you are coding for IE then you are creating problems for other users. It's best to code for Firefox, then fix issues IE has. The issue isn't due to Macs, it's due to code that isn't cross browser compatible. Firefox is Firefox on both the Mac and the PC. Safari renders pages almost identical to Firefox.

I can't really offer much help without a direct look at code.

RDRCarlos
April 27th, 2007, 04:01 AM
The url the the website introduction page is http://regaldogsresort.ca. Feel free to view the source code.

Buzz
April 27th, 2007, 05:40 AM
Okay, you really need to get rid of all vb script. Use javascript, php, asp, perl, cgi.. but not vb script.

vb script is a windows operating system script. It will never work on anything that isn't running windows.

RDRCarlos
April 27th, 2007, 07:56 AM
I see the problem now. Unfortunately I'm currently only versed in vbscript due to the fact that I learned Visual Basic code (after learning that old Basic code back in 198?) while building applications for the microsoft office programs. The similarity to vbscript made it fairly easy for me to script my site and give it the functionality that my Visual Basic applications have. I see now that it will only work for for people using the IE browser at a medium security setting. I guess its time for me to learn more about the standards of cross-browser scripting.
I have gained a fair bit of knowledge in CSS while building my site and have also dabbled a bit in ASP scripting. I guess what I need to know now is what route to take. If I go the route of server side scripting such as ASP, will I be able to use vbscript on the server side and have the return pages function properly on all browsers? I guess the answer to that depends on what is scripted to the return pages.

Any further input is welcome.

Buzz
April 27th, 2007, 08:04 AM
You could use some vbscript on a Win server as part of server-side scripting before it ever hits a browser. But chances are you'd do better to simply sticking to web standards such as javascript, asp or php. They are all cross-browser, cross-platform compatible.