ChavezArquitectos / curvycorners

Automatically exported from code.google.com/p/curvycorners
0 stars 0 forks source link

Re-invalidating Issue 36 ('No Object' Errors) #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The full error reads something like:

No object with ID#xxxxxxxxxxx exists yet.
Call curvycorners(settings, obj) when it is created.

I understand this can help you if you misspelled a id/class name.  However,
what about situations where the element legitimately doesn't appear on the
page at all by design?  Not all elements in a stylesheet appear on every
page, especially if the same stylesheet is shared by all pages in a site.

This behavior all but guarantees that all visitors to a site in a
non(mozilla/webkit) browser will see an error window pop up. It needs to be
changed so that it rounds corners only for objects that appear on a
specific page and doesn't complain when it can't find all objects that have
rounding applied in the stylesheet.

This is a wonderful script that makes my life a lot easier.  This option
makes it very hard to use in a useful way.  Please fix it!

Original issue reported on code.google.com by hairyi...@gmail.com on 25 Sep 2009 at 6:33

GoogleCodeExporter commented 8 years ago
I now see that this strange behavior is documented and that a way to suppress 
these
helpful errors is given.

But just because something is intended to be a certain way doesn't mean it's the
right way.  It makes no sense to have this option on by default since it 
returns an
error almost every time.  And requiring another script entry in the header to 
turn if
off contributes to page bloat.

Keep the option as a debugging option that can be optionally turned on if 
needed. 
Heck, people might even be able to figure out they misspelled something in the 
css
when it doesn't appear on the site at all or when it doesn't have curvy 
corners.  No
error message necessary!

Original comment by hairyi...@gmail.com on 25 Sep 2009 at 6:51

GoogleCodeExporter commented 8 years ago
I understand this reasoning and am sympathetic to it, but with reservations.

I must take issue with the allegation that "it returns an error almost every 
time". 
It won't return any error and it won't pop up an alert if you code your page as 
recommended in the documentation.

The issue is not just that an ID might be mistyped: it might be that you are 
trying 
to define rounded corners in a standard stylesheet for an element that occurs 
only 
in some of the pages that use that stylesheet. This shows that you have 
overlooked 
the documented fact that defining rounded corners in a standard stylesheet 
won't 
work at all in Opera.

If you code your rounded corners to work in all browsers, you won't need to add 
"page bloat" to suppress these messages. The presence of these annoying 
messages is 
intended to help you to code your pages to work in all browsers.

Original comment by c.1%smit...@gtempaccount.com on 27 Sep 2009 at 3:11

GoogleCodeExporter commented 8 years ago
I just ran into this error using IE8 and curvycorners 2.0.4, and I think it's 
unfortunate that any curvycorner DIV has to be in every page of a site, 
otherwise 
curvycorners spits out an error in IE only. In my case, a #sidebar DIV is used 
on most 
pages, but not all. This would seem to be a pretty normal scenario in web 
design. Where 
is the documentation mentioned in this thread that tells us how to code this 
correctly 
or work around it? Thanks.

Original comment by carola...@gmail.com on 27 Oct 2009 at 5:20

GoogleCodeExporter commented 8 years ago
Let me try to explain. CurvyCorners is a script that attempts to make it 
possible to 
show rounded corners in web pages that work in all browsers.

The documentation clearly explains how to suppress the warning messages. The 
documentation is to be found in the same place as the script.

Taking the example of the #sidebar DIV that is used on "most pages, but not 
all": 
where the DIV is not used (the minority of pages), one should not include a 
style 
for the DIV that isn't used. It's reasonable to assume that if a page includes 
a 
style for a DIV that isn't used, the author has carelessly mis-typed the ID of 
the 
DIV. For such a careless author, the warning message is extremely helpful. 
There is 
an easy workaround to the warning message: remove the useless style rule.

Ah, but (I hear some cry), my style is not in the page itself, it's in a 
separate, 
included style sheet. And I respond - please read and try to understand! - If 
you 
put rounded corner styles into a separate style sheet, they will not work in 
all 
browsers!

CurvyCorners is about helping you to get your corners working in *all* 
browsers. If 
you don't want this, and want your pages to go wrong in some browsers, then by 
all 
means read the documentation and learn how to suppress these warnings.

Original comment by c.1%smit...@gtempaccount.com on 28 Oct 2009 at 12:30

GoogleCodeExporter commented 8 years ago
So -- CurvyCorners attempts to show rounded corners in all browsers, but with 
this
javascript message it is not possible to use it in Internet Explorer. :-)

Maybe I don't understand your arguments. But I think that "unused" CSS 
selectors in
global stylesheets are very common. Webdesigners can't work without them.

CC is wonderful peace of software. But this "feature" was upleasant surprise 
for me.

Original comment by michalek...@gmail.com on 17 Dec 2009 at 5:30

GoogleCodeExporter commented 8 years ago
You are able to disable error messages by inserting:

<script type="text/javascript">
var curvyCornersVerbose = false;
</script> 

into the head of your document. It's in all the documentation of the CC download

Original comment by ManukaDe...@gmail.com on 1 Feb 2010 at 10:00

GoogleCodeExporter commented 8 years ago
im getting  the same thing in  dress up challenge   .   i need help to make it 
stop.
please email me at lbg1963@aol.com   with  a link i can down load it from.

Original comment by lisa.ger...@gmail.com on 10 Sep 2010 at 8:23

GoogleCodeExporter commented 8 years ago
@#7: please read comment 6. That gives you the answer.

Original comment by c...@realidcheck.com on 11 Sep 2010 at 1:39