Solved

Dialog List with link

Posted on 2000-03-26
2
169 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 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

932 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now