Skip navigation
Currently Being Moderated

if:function

Apr 17, 2012 8:28 AM

Tags: #spry #dreamweaver_cs5

I'm starting a new discussion because I ran out of points to award for all the great answers I'm getting!

 

Something is not quite right here:

 

<span spry:repeat="color" spry:setrow="color">

                            <label spry:if="function::standardColor"'=='{imageURLthumb}'">

                              <input type="image" name="rgColor" src="{color::imageURLthumb}" id="rgColor" onClick="newXPath('{Model}', '{color::imageURLthumb}', '{imgURLseat}', '{Canopy}', '{imgURLwheel}')" >

                            </label>

                            <label spry:if="function::standardColor"'!='{imageURLthumb}'">

                              <input type="image" name="rgColor" src="{color::imageURLthumb}" id="rgColor" onClick="newXPath('{Model}', '{color::imageURLthumb}', '{imgURLseat}', '{Canopy}', '{imgURLwheel}')">

                            </label>

                            </span>

 

 

<script>

function standardColor(rgn, doIt)

    {

     return doIt('{color::imageURLthumb}') == ("images/custom/thumb_White.png", "images/custom/thumb_Beige.png", "images/custom/thumb_Green.png", "images/custom/thumb_Blue.png");

    }

</script>

 

It is only pulling in the last image in the list.  But I'm getting two of them.  I think the syntax in the function is wrong but I'm not finding any examples that show otherwise.

 

Thanks!!!

Shel

 
Replies
  • Currently Being Moderated
    Apr 18, 2012 7:46 AM   in reply to CJLong

    Not ignoring you, just need to find the time.

     

    Gramps

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 26, 2012 4:49 PM   in reply to CJLong

    Sorry, still not ignoring, just running out of time.

     

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points