Re: Javascript in SM

2012-11-15 Thread Philip TAYLOR



Geoff Welsh wrote:


This was a bad example because of those bubbles, (which seem to work at
random),



// FUNCTION: UNB_Handle - controls Mouse Over / Out Events

. . .
sectionH1 = 
sectionParent.childNodes[h1Node].childNodes[anchorNode];
h1Content = sectionH1.innerHTML;
sectionH1.innerHTML = arrowIcon + h1Content;

SCRIPT5007: Unable to get value of the property 'innerHTML': object is 
null or undefined

UNB_Initialize.js, line 70 character 3

Philip Taylor
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Javascript in SM

2012-11-15 Thread Michael Gordon

Geoff Welsh wrote:

Rufus wrote:

NoOp wrote:

On 11/14/2012 04:23 PM, Geoff Welsh wrote:
...

http://www.colgate.com/app/IrishSpring/US/EN/Products/BarSoap.cvsp

all the "View Ingredients" links

(or is it just me?)
GW
SM 2.13.2 on OSX 10.6.8



Just you... :-)

At least partially. The page has some odd code. When you hover your
mouse pointer over 'View Ingredients' you'll get a pop-up bubble with
the ingredients. But only (for me anyway) once you move the pointer from
a horizontal postion (e.g., left to right / right to left) or vertical
from the bottom up. If I try to view using the pointer vertical top to
bottom, I do not get the ingredients popup.






I found I can only get the bubbles to display if I hover vertically from
below to the link - otherwise it hangs and/or won't display.  Moving
horizontally always hung/stalled/refused to display for me.

Same setup as the OP.



Thanks guys!

This was a bad example because of those bubbles, (which seem to work at
random), but the info (Taylor) of the missing onclick attribute is the
answer to the question I didn't know how to ask correctly, since I don't
know JS at all.  I see the same behavior at Amazon and eBay quite a lot
too.

Sad still in 2012, that the biggest sites have the worst code.
GW


Maybe that is because the Corporate sites out source their work to India.

MG

--
Armadillo Web Development
www.armadilloweb.com

Cell: 903.244.3644

Opening your Door to Opportunity
and inviting the world to walk through.

Character is doing the right thing...
Even when no one is watching...

___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Javascript in SM

2012-11-14 Thread Geoff Welsh

Rufus wrote:

NoOp wrote:

On 11/14/2012 04:23 PM, Geoff Welsh wrote:
...

http://www.colgate.com/app/IrishSpring/US/EN/Products/BarSoap.cvsp

all the "View Ingredients" links

(or is it just me?)
GW
SM 2.13.2 on OSX 10.6.8



Just you... :-)

At least partially. The page has some odd code. When you hover your
mouse pointer over 'View Ingredients' you'll get a pop-up bubble with
the ingredients. But only (for me anyway) once you move the pointer from
a horizontal postion (e.g., left to right / right to left) or vertical
from the bottom up. If I try to view using the pointer vertical top to
bottom, I do not get the ingredients popup.






I found I can only get the bubbles to display if I hover vertically from
below to the link - otherwise it hangs and/or won't display.  Moving
horizontally always hung/stalled/refused to display for me.

Same setup as the OP.



Thanks guys!

This was a bad example because of those bubbles, (which seem to work at 
random), but the info (Taylor) of the missing onclick attribute is the 
answer to the question I didn't know how to ask correctly, since I don't 
know JS at all.  I see the same behavior at Amazon and eBay quite a lot too.


Sad still in 2012, that the biggest sites have the worst code.
GW
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Javascript in SM

2012-11-14 Thread Rufus

NoOp wrote:

On 11/14/2012 04:23 PM, Geoff Welsh wrote:
...

http://www.colgate.com/app/IrishSpring/US/EN/Products/BarSoap.cvsp

all the "View Ingredients" links

(or is it just me?)
GW
SM 2.13.2 on OSX 10.6.8



Just you... :-)

At least partially. The page has some odd code. When you hover your
mouse pointer over 'View Ingredients' you'll get a pop-up bubble with
the ingredients. But only (for me anyway) once you move the pointer from
a horizontal postion (e.g., left to right / right to left) or vertical
from the bottom up. If I try to view using the pointer vertical top to
bottom, I do not get the ingredients popup.






I found I can only get the bubbles to display if I hover vertically from 
below to the link - otherwise it hangs and/or won't display.  Moving 
horizontally always hung/stalled/refused to display for me.


Same setup as the OP.

--
 - Rufus
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Javascript in SM

2012-11-14 Thread Philip TAYLOR



Geoff Welsh wrote:


Often times, when a link on a page doesn't work, I notice (by looking
in the status bar) it's not HTML  it's "javascript:void()"

So, some designer is using Javascript for no good reason, I
understand that...


Sometimes they are using JavaScript for a very good reason.  Just
because the href has a value of "javascript: void ()" does not mean
that the link is dysfunctional; it may well be that there is also
an "onclick" attribute and it is that which performs the actual
transfer to another page.  For example :

link
text

The href could not be hard-coded because the value of "NextPage ()"
is known only at run-time.

Such code works perfectly in Seamonkey (as in any other standards-
compliant browser with JavaScript enabled); I develop and test
/all/ of my work in Seamonkey, which I could not possibly do
if Seamonkey could not handle such links.

In the case you cite, there is no explicit "onclick" or similar :

View Ingredients

but it is still possible that the designer/programmer had intended
to add one via DOM-walking -- in general, if a page is going to
/require/ JavaScript, then it is better to use minimal HTML markup
and add the required functionality using a DOM-walking technique
to add additional attributes to the element in the DOM : such
additional attributes will never be visible via "View source".

The page you cite is also dysfunctional in IE9, which reports
errors; Seamonkey's error console reports several tens of
errors in the CSS, and the W3C HTML validator reports 38
HTML errors.  It is hardly surprising, therefore, that it
does not work as Colgate would wish in Seamonkey.

Philip Taylor
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: Javascript in SM

2012-11-14 Thread NoOp
On 11/14/2012 04:23 PM, Geoff Welsh wrote:
...
> http://www.colgate.com/app/IrishSpring/US/EN/Products/BarSoap.cvsp
> 
> all the "View Ingredients" links
> 
> (or is it just me?)
> GW
> SM 2.13.2 on OSX 10.6.8
> 

Just you... :-)

At least partially. The page has some odd code. When you hover your
mouse pointer over 'View Ingredients' you'll get a pop-up bubble with
the ingredients. But only (for me anyway) once you move the pointer from
a horizontal postion (e.g., left to right / right to left) or vertical
from the bottom up. If I try to view using the pointer vertical top to
bottom, I do not get the ingredients popup.




___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Javascript in SM

2012-11-14 Thread Geoff Welsh

long time user here

Often times, when a link on a page doesn't work, I notice (by looking in 
the status bar) it's not HTML  it's "javascript:void()"


So, some designer is using Javascript for no good reason, I understand 
thatbut anyone have good comments here as to


WHY are they doing that?  and
WHY doesn't SM/Gecko recognize that type of link after all these years 
of designers doing that?


(it seems to happen a lot).

simple e.g.

http://www.colgate.com/app/IrishSpring/US/EN/Products/BarSoap.cvsp

all the "View Ingredients" links

(or is it just me?)
GW
SM 2.13.2 on OSX 10.6.8
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey