Solved

Dialog List with link

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

  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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.

822 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