Is it possible to move the div detailing errors?

34 views
Skip to first unread message

Inbal Sinai

unread,
May 9, 2013, 1:27:05 PM5/9/13
to pl...@googlegroups.com
The div displaying errors (class: plovr-error-report) is added right at the top of the page. I would like to change that. Is that at all possible? Can you add a configuration option so that it's added at the bottom instead (right before </body>)?

Andre Tannus

unread,
May 9, 2013, 1:37:39 PM5/9/13
to pl...@googlegroups.com
Add some CSS to your page like this:

.plovr-error-report {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 100px;
}


On Thu, May 9, 2013 at 2:27 PM, Inbal Sinai <quix...@gmail.com> wrote:
The div displaying errors (class: plovr-error-report) is added right at the top of the page. I would like to change that. Is that at all possible? Can you add a configuration option so that it's added at the bottom instead (right before </body>)?

--
 
---
You received this message because you are subscribed to the Google Groups "plovr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plovr+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
André Tannús | Epungo | +55 11 2389-4360 

Inbal Sinai

unread,
May 19, 2013, 4:50:01 AM5/19/13
to pl...@googlegroups.com
Thanks but I wasn't referring to the perceived position but rather to the actual one - I have code which is dependant on the location of elements on the page within the DOM, i.e. their x-path. So if for instance an element is located in the first div in the body without plovr running, I would like that to remain the case with plovr... unfortunately at the moment the div is automatically added as the first div, changing the x-path of many of the elements on the page.

Bryan Appleby

unread,
Dec 5, 2013, 3:02:14 PM12/5/13
to pl...@googlegroups.com
Hi Inbal,

I don't know if this is still relevant. Just in case:

This line is in your plovr output:
document.body.insertBefore(div, document.body.firstChild);
 
You should change it to:
document.body.insertBefore(div, null); 

That will insert the div at the end of the body.

You could do this by hand or using Fiddler (I believe your Fiddler addon would be handy for this).

If you want a more general solution, you can make the change in the plovr source and recompile the .jar . The code you need to change is in the file:
plovr\src\org\plovr\plovr.js

Give me call if you need a hand.

Bryan 
Reply all
Reply to author
Forward
0 new messages