Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Dialog List with link

Posted on 2000-03-26
2
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  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 article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

618 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