473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't Open MS Project from a drop down link.

Hi,

I'm setting up a project management website, and having a bit of trouble.

As part of the site, I have been asked to have a javascript dropdown menu
that will open several MS Project (mpp) files. While two of the links work
fine, the others do not, and I have absoloutely no idea why. Any
suggestions would be greately appreciated.

The code I'm working with is:

<form name="Project_Templates">
<blockquote>
<font face="Arial"><select name="menu" style="width: 160mm">
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\ATE_Software_only_Design_Build_by_Boei ng_15Sept04.mpp">ATE
Software Only Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\Basic_Project_25Jan2005.mpp">Microsoft
Project Basic Project</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentDesignBoeing.mpp">Equipment
Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentDoc.mpp">Equipment
Documentation</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSoftwareVendor.mpp">Equipment
or Software Design Build by Vendor
</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSoftwareMakeModelBuy.mpp">Equ ipment
or Software - Make Model Buy</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSurplus.mpp">Equipment
Surplus</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\MasterProject.mpp">Master
Project</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\ProcessManagement.mpp">Process
Management</option>
</select>
<input type="button"
onClick="location=document.Project_Templates.menu. options[document.Project_Templates.menu.selectedIndex].value;"
value="GO">
</font>
</blockquote>
</form>

Thanks,

John
Feb 16 '06 #1
3 1645
John Murray wrote:
I'm setting up a project management website, and having a bit of trouble.

As part of the site, I have been asked to have a javascript dropdown menu
that will open several MS Project (mpp) files. While two of the links
work fine, the others do not, and I have absoloutely no idea why.
"Does not work" is a useless error description. [psf 4.11]
Any suggestions would be greately appreciated.
<URL:http://jibbering.com/faq/#FAQ4_43>
The code I'm working with is:
Not Valid at all. <URL:http://validator.w3.org/>
<form name="Project_Templates">
The `action' attribute value is missing.
<blockquote>
Although that is not generally a syntax error, it is a design error. The
`blockquote' element should not be used merely to indent content. It is
there to mark up quotations. It must not be child of the `form' element
in HTML 4.01 Strict (but is allowed to be in HTML 4.01 Transitional).
Use CSS to format your content, not semantical markup.

See <URL:http://www.htmlcodetutorial.com/linepar/index_famsupp_110.html>,
for example.
<font face="Arial"><select name="menu" style="width: 160mm">
The `font' element is deprecated. For example, what if the font "Arial"
is not available on the viewer's system? And the `font' element must not
contain the `select' element, only inline elements.
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\ATE_Software_only_Design_Build_by_Boei ng_15Sept04.mpp">ATE Software Only Design Build by Boeing</option>
<option
[...]
</select>
<input type="button"

onClick="location=document.Project_Templates.menu. options[document.Project_Templates.menu.selectedIndex].value;"

This could be shorter and more efficient:

onClick="var sel = this.form.elements['menu']; location=
sel.options[sel.selectedIndex].value;"

To avoid lengthy lines, or newline within the attribute value, and to
ease maintenance, I would move that code a method and pass `this' when
calling this method.

However, you should consider the following:

1. The `location' property expects a URI (Uniform Resource Identifier)
reference. You are trying to assign UNC (Uniform Naming Convention)
network paths in Windows-only format. Use

file://host/directory/file

instead of

\\host\directory\file

2. A `select' element is not necessarily rendered as a dropdown box.

3. What about users with absent client-side script support? This can be
done so that navigation is possible without client-side scripting, using
`a' elements, and CSS, or CSS DOM scripting, to facilitate the dropdown
effect if supported:

<URL:http://devedge-temp.mozilla.org/viewsource/2003/devedge-redesign-js/index_en.html>

(Note that this is just the archived version that will hopefully get you the
basic idea, the original DevEdge looked better. See Google results for
"CSS menu" and the like for other examples.)
PointedEars
Feb 17 '06 #2
I figured this out and thought I'd post the answer here just incase it came
up again.

The version of MS Project that the files were created in was not completely
compatible with the version of MS Project for Office XP. Re-saving the
files resolved the issue.

"John Murray" <jo**********@boeing.com> wrote in message
news:Iu********@news.boeing.com...
Hi,

I'm setting up a project management website, and having a bit of trouble.

As part of the site, I have been asked to have a javascript dropdown menu
that will open several MS Project (mpp) files. While two of the links
work fine, the others do not, and I have absoloutely no idea why. Any
suggestions would be greately appreciated.

The code I'm working with is:

<form name="Project_Templates">
<blockquote>
<font face="Arial"><select name="menu" style="width: 160mm">
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\ATE_Software_only_Design_Build_by_Boei ng_15Sept04.mpp">ATE
Software Only Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\Basic_Project_25Jan2005.mpp">Microsoft
Project Basic Project</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentDesignBoeing.mpp">Equipment
Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentDoc.mpp">Equipment
Documentation</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSoftwareVendor.mpp">Equipment
or Software Design Build by Vendor
</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSoftwareMakeModelBuy.mpp">Equ ipment
or Software - Make Model Buy</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\EquipmentSurplus.mpp">Equipment
Surplus</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\MasterProject.mpp">Master
Project</option>
<option
value="\\iso-knt-22\equipment\Engineering\Docs\Project_Office\Proje ctTemplates\ProcessManagement.mpp">Process
Management</option>
</select>
<input type="button"
onClick="location=document.Project_Templates.menu. options[document.Project_Templates.menu.selectedIndex].value;"
value="GO">
</font>
</blockquote>
</form>

Thanks,

John

Feb 20 '06 #3
John Murray wrote:
I figured this out and thought I'd post the answer here just incase it came
up again.

The version of MS Project that the files were created in was not completely
compatible with the version of MS Project for Office XP. Re-saving the
files resolved the issue.

So basically, you worked out that it was fuck all to do with Javascript
and thought we'd be interested, what with this being a Javascript
newsgroup and all?

Berk!
Feb 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: *no spam* | last post by:
I want to move my Access 2K database into MSDE. The Access Upsizing Wizard crashes (a known bug wi A2K), so I'm using the following suggested method: Access --> New --> Project (Existing...
0
by: pmud | last post by:
Hi , I need to modify an asp.net page which was deployed to our server. I need to add a link which goes to an "Order Form" based on the value chosen by the user in a drop down list. Suppose...
2
by: gene.ellis | last post by:
I have content about projects that I store in a MS SQL database. People access this information through pages which are dynamically created in PHP. Since my content is stored in the database, how...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
2
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of...
1
by: Darius | last post by:
Hi everyone, (This is a newby "How did they do that?" question) A banking web app I've been using lately (built with ASP it seems) appears to be using frames. I say 'appears to be using...
3
by: Uma sakshi | last post by:
Hi I have one VB.NET application,in that application i have one datagrid control.The datagrid control contains somedata.I want to copy the data in a particular cell and paste it into my C#.NET...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
1
by: yasminussain | last post by:
Hi to all, I have written one jsp file. In that file, I have one drop down which contains list of request name (like student name) based on the selected value within drop down I will display the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.