Welcome to Web Design Guide
|
|
Mac Web Page Design Article
VBScript is something that you can consider in your web design. It can easily
incorporated into your html web pages.
But for a beginner in web design, getting the hang of VBScript can be nerve
wrecking. It takes time and patience to master it.
But VBScript just cannot be ignore anymore. If you are into any form of web
design, having a little knowledge of it will help you to stand in good stead in
your projects.
VBScript: Javascript Made Easy.
Now lets clear some doubts about this part of web design. When compared to Java,
VBScript is easier to learn and master. You just need to have some patience
built into you. That's all is required.
VBScript is a web language for inserting into HTML documents. It's a lot like
Java, but is easier to write thanks to its Visual Basic-like code.
Is It Really Easier?
Well, it's largely a matter of personal preference, and what you're used to. If
you're an experienced programmer, you'll probably think that VBScript is a joke,
and prefer Javascript. If you're not, though, VBScript's English-like code can
make things clearer and quicker when you're writing scripts.
For example, compare this code for an if/then/else condition.
Javascript:
if (a == 1) {
alert("a");
} else if (b == 1) {
alert("b");
} else {
alert("z");
}
Now compare the above Javascript with the following VBScript and decide which is
easier for you in your web design efforts. You will find that most likely you
will want to insert VBScript in your web design.
VBScript:
if a=1 then
msgbox "a"
elseif b=1 then
msgbox "b"
else
msgbox "c"
end if
See what I mean? This is a pretty representative sample of the differences (a
'for' block would provide a more extreme example). To put it simply, Javascript
looks 'code-like', with all kinds of brackets and semicolons all over the place
– and it's all-too-easy to forget one. VBScript, on the other hand, is designed
to be more human, and closer to natural language. While its approach is less
flexible for complicated operations, it's much quicker for simpler ones.
Useful VBScript Functions.
Here are a few of the functions VBScript has that you'll be wishing you could
use in Javascript.
- DateDiff. Works out the difference between two dates – this is a nightmare in most programming languages.
- FormatCurrency. Takes a number and formats it as whatever currency you want.
- InStr. Looks for some text in a string, and stops when it finds it. Useful for including text up to a special 'stop' phrase.
- Split. Divides some text up into an array depending on where a certain character is (similar to PHP's explode command, and just as useful).
- Replace. Lets you look through some text and replace every instance of a certain character or phrase.
Apart from this, VBScript offers quite a few of Javascript's functions. Even
though that's useful, it can sometimes make you feel like you're just writing
Javascript in an odd way – the same way that doing anything complex with desktop
Visual Basic gradually seems to turn into writing a kind of C with a slightly
different layout. If you keep things simple, though, VBScript is good at what it
does.
Now you are getting the hang of VBScript in your web design. Is it not? It's not
such a big deal if you spend some time on it.
So What's the Catch?
Well, the catch is a big one. Pages written using VBScript won't work in any web
browser other than Internet Explorer – it's Microsoft's own language, and no-one
else supports it. For better or for worst, the web has long since standardised
on Javascript. This unfortunate fact means that, for use on the web, you're
pretty much stuck with Javascript, unless you want to alienate many of your
visitors, or your scripting isn't essential for your site to work. This is the
number one reason why you hardly ever see any VBScript anywhere on the web.
If you're writing web pages to go on a corporate intranet or some other
environment where you have control over how users access the site, however,
VBScript can make your life considerably easier. You might also consider using
it if you've written Javascript that works in every browser except Internet
Explorer, as just using VBScript for one or two things can save you playing
around with lengthy workarounds.
So there are advantages as well as disadvantages in using VBScript in your web
design project. So carefully consider the over all strategy followed in your web
design before adopting VBScript.
An Alternative Way of Doing Things.
If Javascript intimidates you and you'd really like to use VBScript, but you
want your site to work on as many web browsers as possible, there is a solution!
VBScript and Javascript that there are converters freely available to translate
between them – a good one is at
http://slingfive.com/pages/code/scriptConverter/ , but there are plenty
more. You can simply write your scripts in VBScript and then run them through
the translator to turn them into cross-browser Javascript, without having to
write a word of Javascript!
Even better, once you've got the two versions of the script side by side, you
can compare them, and start to learn how things are done in Javascript. Before
long, you'll be writing it with no trouble.
Its sincerely hoped that you have found this article on web design useful to
you. Browser for more articles related to web design that are scattered across
this web site. You will find it useful.
Mac Web Page Design Best products
Mac Web Page Design News
Torchlight II: New Website Unveiled - Inside Mac Games
![]() Inside Mac Games | Torchlight II: New Website Unveiled Inside Mac Games Runic Games has unveiled a new website for its upcoming action RPG, Torchlight II. The site redesign includes new features, artwork, screenshots of the day, and an improved navigation system. In addition to a variety of monster types to slay and items ... |
Adobe Updates Beta of Muse for Coding-free HTML5 and CSS3 Site Creation - Graphics.com
Adobe Updates Beta of Muse for Coding-free HTML5 and CSS3 Site Creation Graphics.com Bingo, all the benefits of an environment familiar to designers, with none of the hassle of understanding what was going on under the hood. But insulating the designer from the code came with a price. As the capabilities of the Web evolved, such pages ... |
The state of Apple's ecosystem lock-in, and where we're at today - Macgasm
![]() Macgasm | The state of Apple's ecosystem lock-in, and where we're at today Macgasm These articles usually try to convince the reader that Apple has lured users into a trap using design/popularity/marketing, shut the door behind them and thrown away the key. The company's recent foray into the education market, coupled with the ... |
Design, Features, Performance and Support: 7.3 - CNET
![]() CNET | Design, Features, Performance and Support: 7.3 CNET Under the browser's settings, Amazon includes the ability to force Web pages to either a mobile view or desktop view, which is handy if you abhor mobile-optimized sites, or if you're willing to sacrifice beauty for faster page loads. |
Why We Need a New Definition of 'PC' - TIME
![]() TIME | Why We Need a New Definition of 'PC' TIME It achieved this distinction not by selling more Macs than ever–although it did–but because Canalys's definition of PC now includes something it calls “pads,” such as the iPad, Kindle Fire and Nook Tablet. (You and I are more likely to refer to them as ... |
SAE Program sets conformance standards for MAC industry. - ThomasNet Industrial News Room
SAE Program sets conformance standards for MAC industry. ThomasNet Industrial News Room Use of the program assures end users that MAC parts, components and training products meet the strict performance set forth by SAE International. MAC Industry suppliers are encouraged to visit the new SAE MAC Database Website: http://macdb.sae.org. |



