?
Solved

Dialog List with link

Posted on 2000-03-26
2
Medium Priority
?
177 Views
Last Modified: 2013-12-18
My problem is that the first entry on my dialog list is not being triggered because the javascript trigger is onChange.When the user opens my web page, an entry is already shown on the dialog list (for example Category 1). When the user clicks on this, it does not go to the URL of Category 1. When I choose another entry which is Category 2 it works. How can I make the first entry on my dialog list work? I have seen other websites, they place a button beside the dialog list so when the user clicks on this button, it will go to the URL of the first entry. I dont like the button solution.
0
Comment
Question by:Barkley
  • 2
2 Comments
 
LVL 6

Expert Comment

by:ghassan99
ID: 2659826
Barkley,

I knew u will suffer from this, but didnt raise the topic at the time:)  This is a normal behaviour of the 'OnChange' event, and since u just choose the first entry, it means nothing changed, since its the default, also do u remember my button solution;)

Ok what I can think of is just add an entry to the view, with no url, so the value property would be ("") a null string.  And in the java script test for the null string, and do nothing if it was the case.  The entry could be something like "-Choose a website-" make sure u add some character (like the hyphen "-") that always appear at the top in an ascending sorted view, so it will be the fisrt choice in the list.

-Gus
0
 
LVL 6

Accepted Solution

by:
ghassan99 earned 60 total points
ID: 2682864
Barkley,

I knew u will suffer from this, but didnt raise the topic at the time:)  This is a normal behaviour of the 'OnChange' event, and since u just choose the first entry, it means nothing changed, since its the default, also do u remember my button solution;)

Ok what I can think of is just add an entry to the view, with no url, so the value property would be ("") a null string.  And in the java script test for the null string, and do nothing if it was the case.  The entry could be something like "-Choose a website-" make sure u add some character (like the hyphen "-") that always appear at the top in an ascending sorted view, so it will be the fisrt choice in the list.

-Gus
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question