Web Connection
HoverPanel CSS and documentation
Gravatar is a globally recognized avatar based on your email address. HoverPanel CSS and documentation
  Mike McDonald
  All
  Feb 17, 2019 @ 09:24pm

Rick -

I've been checking out the Client Class HoverPanel feature, and after some adjustments I've got it basically working, but I'm wondering if there is some default CSS styling that I'm not seeing.

The documentation shows..

var Hover = new HoverPanel("Panel","InvoiceAbstract.aspx");

..but I believe that should specify #Panel, and the documentation should state that there should be an empty id="Panel" div included in the page.

I've got this working now, but I had to add some inline CSS tags to my #Panel div, and I just wonder if I am missing some default styling tags that should be available by default.

I also tested this with .Panel and class="Panel but that isn't the issue. There doesn't seem to be anything in the default Application.css file that applies here.

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Rick Strahl
  Mike McDonald
  Feb 17, 2019 @ 10:22pm

I think I mentioned this to you previously, but the Web Control Framework is deprecated so those controls while they still work won't receive any updates or fixes.

I can also barely remember how this stuff works.

I do know the first parameter to the constructor is the ID of the panel that is created.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Mike McDonald
  Rick Strahl
  Feb 18, 2019 @ 09:05am

Rick -

I didn't realize the Client Class HoverPanel was 'part of' the deprecated Web Control Framework, and it doesn't appear that way in the documentation.

The way I found this was by typing 'hover' in the topic search bar, and this appeared under Javascript Client Classes > Components > Client Class HoverPanel. There is also a separate Class wwHoverPanel topic within Web Control Framework (deprecated), but I wasn't looking at that.

After copying the two code blocks from the Client Class HoverPanel documentation page (and tweaking the function names and URL), the only thing I had to do was add an empty div to my page and correct the selector to #Panel, and then it all worked fine. Hovering would call the URL which returns an HTML fragment that gets displayed in the appropriate spot. I also added some inline CSS to the div, for a margin, a border and a background color.

If this is deprecated then I don't want to use it, but the HoverPanel javascript code exists in the ww.jquery.min.js file that is included in a new project by default (via _layoutpage.wcs). Is it possible that code might get removed from the js file at some point in the future?

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Rick Strahl
  Mike McDonald
  Feb 18, 2019 @ 01:34pm

The JavaScript component isn't deprecated, but the Web Control Framework is. Not everything is marked only the root node in the docs has the deprecated note on it. The docs for that stuff is there for those that are using these components in older applications.

The client JavaScript library object is still supported.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Mike McDonald
  Rick Strahl
  Feb 18, 2019 @ 02:14pm

Rick -

The JavaScript component isn't deprecated, but the Web Control Framework is.

That is fine - I'm not using any part of the Web Control Framework. I've never used it and wouldn't start up with it now. Specifically I'm not using wwHoverPanel. I'm using the javascript which is in ww.jquery.js and adding some markup and javascript to a particular page as noted for Client Class HoverPanel.

The root node for Client Class HoverPanel is Javascript Client Classes. It is not within the Web Control Framework (deprecated) node.

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Rick Strahl
  Mike McDonald
  Feb 18, 2019 @ 05:10pm

Right the JS component is not deprecated 😃 My mistake...

Still haven't used that component in a long time, but it should still work.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: HoverPanel CSS and documentation
  Luca
  Mike McDonald
  Dec 16, 2019 @ 10:08pm

Dear Mike,
I did read you was able to get HoverPanel running.
I am struggling on documentation examples from days but still I was not able to see HoverPanel running.
Please could you give some help?
Thank you very much!

© 1996-2024