School of CS Western Illinois University

IS 524, Assign#4 Amaravadi

INTRODUCTION TO WEB SITE DESIGN

OVERVIEW OF THE PROJECT

This assignment will use Microsoft Publisher to create part of a corporate web site. Generally a web site consists of a number of pages which are stored in publisher format (“.pub”). You are already given a template (classic.pub) for the web site. You need to save it as “yourstore.pub” (e.g. guitar.pub). Then you can edit it just like a word document. When you are done, you have to generate a “.htm” file i.e. classic.htm. It also creates a directory called <classic_files> These two files are sent to your ecom account via the internet using an open source communications utility called “winscp.” Your account should have/or you should create a “http” directory and ship the files there (see the diagram below). You need to send both files to this directory. See figure below. The “classic.htm”is your index/home page. You can view site by typing

classic.htm).

.

.

http

classic.htm

<classic_files>

DESIGN THE COMPANY

Think of a company that you would like to have, we will call this yourstore . Do not have spaces in the or caps in the file name-- could potentially cause problems in loading e.g. “befit”, “hockey.” Short names are preferable. For grading purposes, all sites must have some tangible items to sell:books, CDs, Toys, furniture, guitars, sports equipment etc

SET UP THE ENVIRONMENT

Create a new directory (folder) using the windows menu (“Start”, “MyComputer”, “File” and “New”).

Give it a name that corresponds to your store e.g. “Classic.” Download the template from the course website (“classic.pub”) into this directory. (You may need to set the download option in your browser to prompt you for a file destination everytime you download otherwise it may download to mydocuments). Open this in MS Publisher (2013).

Open “classic.pub” and save it as “yourstore.pub” where “yourstore” is the name of your store. It could be “guitar.pub”. When you open it, you will see the template as in the second diagram below. Now you can edit the web pages.

SET THE BUSINESS INFORMATION

Go to “Files” and “Info” and type the business information (as per your concepts!)

WORK ON HOME PAGE AND PRODUCT PAGE

A web site consists of a number of individual web pages. Here you can select the page you want to work with by selecting and clicking on the page as shown in the left panel. For the home page you will have to change the images (simply click or right click to insert new image), change the text etc. Unwanted images are deleted by simply selecting and pressing the “del” key. You will do this just as you would edit a word document. You have to add products on the product page (the second page) and change prices also.

You will select this page and directly change the images, product names, SKUs, descriptions and prices. You can preview your web site by going to “web page preview” from main menu.

CREATE CURRENCY CONVERTER PAGE

Creat a third page in the template. When you are on the second page, click “Insert”“Page” and “ Duplicate page”. The third page in the template is a currency converter. Rename it to Currency Converter.

The third page is a duplicate of the second page. You need to get rid of the content in the main part of the page and relabel the Product List menu item on the left side of the page (see above). When you are done this is what you will see.

CREATE A HTML VERSION OF YOUR WEB SITE

Go into Main menu, and “File”, “Save”, “Export” and “publish html.” Select “publish html” under “advanced options”. It will prompt you for a file name (“classic.htm” or “yourstore.htm” where yourstore is the name of the your site). Make sure you save it in your directory. In the example below it is “classic”. Press “save.”

System should generate yourstore.htm (e.g. classic.htm) and <yourstore_files> (.e.g <classic_files> as shown below. Note that “classic.pub” is your source file. See if you can use windows explorer/file explorerto see if it created the files. You will need to send the two files (“classic.htm” and “classic_files” folder) to your ecom account using winscp. But first we need to enter the code

ADD JAVASCRIPT CODE FOR CURRENCY CONVERTER

We will open up one of the html files (3rd page of web site) created by Publisher and enter code.

Go into your computer folder and find the “classic_files” folder (if you did guitars, it would be “guitar_files”.

click on ‘Page407.htm’ to make sure it is the currency converter page. Load it into notepad (should be under accessories). When opening the file, make sure notepad is looking for “all files” rather than “.txt”only. Find the text “To contact us, call:” insert the following code as shown in the screen shot below.

<script language="JavaScript">

function euroConverter(){

document.converter.dollar.value = document.converter.euro.value * 1.470

document.converter.pound.value = document.converter.euro.value * 0.717

document.converter.yen.value = document.converter.euro.value * 165.192

}

function dollarConverter(){

document.converter.euro.value = document.converter.dollar.value * 0.680

document.converter.pound.value = document.converter.dollar.value * 0.488

document.converter.yen.value = document.converter.dollar.value * 112.36

}

function poundConverter(){

document.converter.dollar.value = document.converter.pound.value * 2.049

document.converter.euro.value = document.converter.pound.value * 1.394

document.converter.yen.value = document.converter.pound.value * 230.27

}

function yenConverter(){

document.converter.dollar.value = document.converter.yen.value * 0.0089

document.converter.pound.value = document.converter.yen.value * 0.00434

document.converter.euro.value = document.converter.yen.value * 0.00605

}

</script>

<form name="converter">

<table border="0">

<tr>

<td>Euro: </td<td<input type="text" name="euro" onChange="euroConverter()" /</td>

</tr>

<tr>

<td>US Dollar: </td<td<input type="text" name="dollar" onChange="dollarConverter()" /</td>

</tr>

<tr>

<td>British Pound:</td<td<input type="text" name="pound" onChange="poundConverter()" /</td>

</tr>

<tr>

<td>Japanese Yen: </td<td<input type="text" name="yen" onChange="yenConverter()" /</td>

</tr>

<tr>

<td colspan="2" align="center"<input type="button" value="Convert!" /</td>

</tr>

</table>

</form>

Note: This part is hit or miss – I will not be able to provide any help on this part of the assignment. Publisher used to have a separate menu for inserting code, now due to version changes this feature is no longer available and code has to be manually inserted, as we have tried to do. I will deduct only one point if you are not able to get this to work.

After completing your assignment, your web page will look like shown below, but first you will need to upload the files using winscp. You can check if it is working by simply double clicking on the html file – it should open in Firefox.

UPLOADING THE FILES

  1. You need to check the lab if they have Winscp (it may be listed under “FTP” or “LAB”).
  1. If you don’t have Winscp, go to GOOGLE and search for WINSCP download.
  1. You need to download the “Portable executable.”
  1. You need to save the zip file and run the executable – you are left on your own here. Note that you will not be able to install it on university computers.
  1. You are presented with the WINSCP login panel (see below). You need to enter sftp.wiu.edu for host name and your wiu username and password. It may ask you again for user name and password.
  1. Now you should be in the main menu (see screen below). Find your directory by clicking on the appropriate directory on the left side of the panel. You can find your thumb drive by opening up the menu in the top left hand side (where it says “C:Windows7”).
  1. In the right side panel of Winscp you should have a “http” directory – you will drag and drop your directory files and your .htm file (e.g. classic.htm). If you don’t have a subdirectory, you need to create one. Position the cursor on the folder on the right side panel, then go into application menu on top, “Files” and “New” and create a directory (see below). Call it “http” without the quotes (not shown). Now click on this and send the files over by dragging and dropping from your hard drive or thumbdrive into this directory.
  1. Go into the http directory by clicking on it to see if you transferred the files correctly over. Then go back up so you can see the “http” directory. Select “http” and right click and open properties. You should see something like the permissions screen given in the second screen below. You need to give permissions for others to view your web site. Please note that ‘RWX’ permissions have to be set for each of two files that are sent over (e.g. “classic files” folder). R – read, W – Write, X – execute.
  1. View your “web site” by typing your account address (e.g. “mumi3” without the quotes) as in account/mywebesite.htm. Print the first page. If you cannot view it, you need to go back and a) experiment with the permissions b) check if the files are under http directory or not – if they are not, you need to re-export them.
  1. What I need simply is the URL of your web site, not the path to your folder! (-2 points in this case + resubmit).

SUBMISSION & REQUIREMENTS

You are now the proud owner of an electronic store!

The web site should be tailored to your store, all images and text needs to be different.

View your “web site” by going to a browser and typing your account address as in account/yourstore.htm where account is your account e.g. “mujm32” and yourstore.htm is the name of your main file, such as classic.htm. Print out the first page of the web site after it is loaded in your account and submit that!

COMMON PROBLEMS

  1. “Forbidden your client is not allowed to access the requested object.” This error comes because of insufficient permissions. You can experiment with the web site permissions or you can go to

to guava : a) login by providing user name and password
b) go to “web site” and c) select “fix web site permissions.” Wait a minute before trying the site again. Good luck!

  1. The web site appears, but pictures do not show. You have not sent the directory files over e.g. <classic_files>. If you did send them over, make sure you delete them (in the destination folder). One caution is that you already modified the 722.htm file. You will need to save that separately. Then republish the web page along with directory files and resend both again. Make sure the 722.htm file is uploaded separately (note that it can be 9xx.htm also) You might also have to check the permissions on image files in the subdirectory. You can set them all at once by selecting them and right clicking to open up properties.

1