473,626 Members | 3,191 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_T emplates">
<blockquote>
<font face="Arial"><s elect name="menu" style="width: 160mm">
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\ATE_Software_ only_Design_Bui ld_by_Boeing_15 Sept04.mpp">ATE
Software Only Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\Basic_Project _25Jan2005.mpp" >Microsoft
Project Basic Project</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentDesi gnBoeing.mpp">E quipment
Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentDoc. mpp">Equipment
Documentation</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSoft wareVendor.mpp" >Equipment
or Software Design Build by Vendor
</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSoft wareMakeModelBu y.mpp">Equipmen t
or Software - Make Model Buy</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSurp lus.mpp">Equipm ent
Surplus</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\MasterProject .mpp">Master
Project</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\ProcessManage ment.mpp">Proce ss
Management</option>
</select>
<input type="button"
onClick="locati on=document.Pro ject_Templates. menu.options[document.Projec t_Templates.men u.selectedIndex].value;"
value="GO">
</font>
</blockquote>
</form>

Thanks,

John
Feb 16 '06 #1
3 1659
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.or g/>
<form name="Project_T emplates">
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.htmlcodetut orial.com/linepar/index_famsupp_1 10.html>,
for example.
<font face="Arial"><s elect 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\En gineering\Docs\ Project_Office\ ProjectTemplate s\ATE_Software_ only_Design_Bui ld_by_Boeing_15 Sept04.mpp">ATE Software Only Design Build by Boeing</option>
<option
[...]
</select>
<input type="button"

onClick="locati on=document.Pro ject_Templates. menu.options[document.Projec t_Templates.men u.selectedIndex].value;"

This could be shorter and more efficient:

onClick="var sel = this.form.eleme nts['menu']; location=
sel.options[sel.selectedInd ex].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\director y\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.or g/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**********@b oeing.com> wrote in message
news:Iu******** @news.boeing.co m...
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_T emplates">
<blockquote>
<font face="Arial"><s elect name="menu" style="width: 160mm">
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\ATE_Software_ only_Design_Bui ld_by_Boeing_15 Sept04.mpp">ATE
Software Only Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\Basic_Project _25Jan2005.mpp" >Microsoft
Project Basic Project</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentDesi gnBoeing.mpp">E quipment
Design Build by Boeing</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentDoc. mpp">Equipment
Documentation</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSoft wareVendor.mpp" >Equipment
or Software Design Build by Vendor
</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSoft wareMakeModelBu y.mpp">Equipmen t
or Software - Make Model Buy</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\EquipmentSurp lus.mpp">Equipm ent
Surplus</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\MasterProject .mpp">Master
Project</option>
<option
value="\\iso-knt-22\equipment\En gineering\Docs\ Project_Office\ ProjectTemplate s\ProcessManage ment.mpp">Proce ss
Management</option>
</select>
<input type="button"
onClick="locati on=document.Pro ject_Templates. menu.options[document.Projec t_Templates.men u.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
6114
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 Database) This asks for the name of the .adp file to create and then launches into the Data Link Properties dialog box (so far so good) I select my MSDE server from the drop-down, enter the sa account & passwd, attach a database file and try to...
0
1055
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 the user choses the value "EndUser" from the Drop down list, then that link should direct him to "OrderForm-1.aspx" , suppose the user chooses the value "Business" in the ddl then that link should take him to OrderForm-2.aspx & similarly there is...
2
3181
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 can I get google web search (at google.com) to included that content when it indexes my site? Is it a possibility? Thank you so much!
7
3593
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> </head> <style type="text/css">
2
9461
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 the choice made in the first drop-down list? If so, how can that be done? I am working with 'Teach Yourself Microsoft Access' and I didn't see it discussed in that book (if it's even possible to do). Or would I just have to create linked tables...
1
1266
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 frames' because if you 'View Source' the banner area (right across the top of the browser's content area) you see a complete html doc that does _not_ include markup for the menu (down the left hand side, below the banner) or the main content area...
3
2876
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 application or notepad where i want to paste it to be.How can i do it?If anyone knows source code or any website URL's please let me know. Umasakshi
6
4864
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
1
1685
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 link 'Request Details(ie, Student Details)' besides that drop down. This link is used to navigate to view the request information(ie, Student Information.) I have written the code as follows :
0
8202
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8641
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8366
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.