Solved

Dialog List with link

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

19 Experts available now in Live!

Get 1:1 Help Now