0

Hi There :-)

I have a Fogbugz plugin that shows a page with two dropdowns on the page, when the uses makes a selection in the first dropdown, a JQuery call is made back to the plugin to refresh the entire div where the two dropdowns are residing.

When the Jquery call has completed it's refresh of the div, the two dropdowns are invisible. But if I say view code, I can see the HTML markup for the div with the two dropdowns in.

I also tried to put a System.DateTime.Now.ToLongTimeString() into the div contens, and the time updates nicely in the div area.

So everything works fine, except that the two dropdowns disappears from the GUI.

Is there a known problem in FogBugz GUI with dropdowns (Select) and JQuery ?

flag

2 Answers

1

It sounds like you might be seeing a side-effect of FogBugz' "smart" dropdowns. These dropdowns are used in place of regular dropdowns in FogBugz and have added capabilities such as filtering the list of options as you type. As a result, FogBugz sometimes hides stock dropdowns.

Try appending <script>DLCL();</script> after your dropdown. This code will register your dropdown with the FogBugz "smart" dropdown code. Also, note that jQuery's .html() function will not evaluate embeded JavaScript in FogBugz (this is only within FogBugz, stock jQuery does evaluate scripts passed in through .html() calls). You will need to use .htmlEval() instead.

link|flag
Thanks for your answer and advice :-), I will have a look at it tomorrow at work :-), and post any results back to this thread. – ThomasE Sep 26 2010 at 17:14
hi again :-) I changed my javascript code from .html(9 to .htmlEval(), and that made the second of the two dropdowns to show up properly. I will look into the code to see if there is any difference between the implementation in the 2 dropdowns. Thomas – ThomasE Sep 27 2010 at 8:09
-2

Most people say that wearing a Chopard is quite irritating, but this statement does not apply to others. 张

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.