Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/6/2009 3:37:08 AM
Gravatar
Total Posts 55

Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

Hi!

In my MojoPortal, I have pop-up windows that serve as lookup fields for large lists. Although I've initially made those lookups using AJAX autocomplete extender (and posted about it here), it proved to be too confusing for average user. My web app is (or, rather, will be) public web site of one accounting company with private section for clients of that company. Many of them are ordinary people with vanilla settings of their web browsers with all those browser's autocomplete settings set to true that they don't want or don't know how to change. It is deeply confusing for many them when, in autocomplete textbox, both lists are shown - browser's and AJAX list, with browser's list over the AJAX's. Even worse, especially for those fast typers accustomed to Excel and Access, is that browser's autocomplete pops immediatelly, before AJAX, and they usually just press Tab to continue typing into another field without ever even seeing AJAX autocomplete. Well, you can't force those people to use web solution of their accounting provider, and you can't even assign someone to set their browser's settings as you can in corporate environment, so I turned to old fashioned way of selecting from large lists using pop-up windows.

And it works marvelously, thanks to SiteRoot property of MP framework. I've also set all those thingies like closing the pop-up window onBlur event, etc.

However, I have one question - how can I use MojoPortal's current skin CSS in those pop-ups? Bear in mind that those pop-ups are physical .aspx pages that do not inherit from mojoBasePage. For now, I keep separate CSS files for them, but I'd like to use those in skin folder. It's not a big deal but it would be handy.

Any thoughts?

2/6/2009 5:46:53 AM
Gravatar
Total Posts 18439

Re: Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

Hi Slaven,

Why not just inherit from mojoBasePage? The css in mojoportal is designed to work with markup produced by using the base page which also hooks up the master page. If you are making a simple dialog and don't inherit from mojoBasePage then why not create your own simple css with styles just for the dialog?

Also it is possible to disable auto complete on form fields.

Also have a look at <asp:TextBox AutoCompleteType="None", I have not tried it but suspect it will disable auto complete.

Best,

Joe

2/6/2009 5:48:58 AM
Gravatar
Total Posts 18439

Re: Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

Just looked up the AutoCompleteType, to turn it off set it to Disabled.

Best,

Joe

2/6/2009 5:52:29 AM
Gravatar
Total Posts 18439

Re: Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

Looks like a down side is there may be some xhtml validation issues when using the autocomplete attribute.

Best,

Joe

2/6/2009 5:54:47 AM
Gravatar
Total Posts 18439

Re: Using skin CSS in pop-ups that do NOT inherit from mojoBasePage?

I bet it would be easy using jQuery to write something that can find all textboxes on a page with a css class name like noautocomplete and then set the autocomplete attribute on each to false. This would allow the markup initially rendered in the page to pass validation.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.