Spry conditionals Break in Safari

I have two conditionals;
spry:choose="spry:choose"
spry:when ="'{@contactName}' != '' &&
'{@contactEmail}'!= '' "
spry:when ="'...
spry:when ="'...
AND spry:if ="'{spec}' != '' "...
They work great in Firefox and,Yes, even Internet Explorer .
But in Safari Version 2.0.4 (419.3) they return "undifined".
Any Ideas on what is causing this?

quote:
Originally posted by:
kinblas
Hi rshay001,
I checked the link you gave us, but I'm not exactly sure what
I'm supposed to be looking at. Where is the problem? You have
multiple tabs/buttons to click on in that page.
--== Kin ==--
Oops, sorry, it's
http://smorelab.com/hoca/nov12pkg/roster.html
The problem is in the accordion box, top portion. When you
click on any player in the table on the left, the accordion box
shows details about a player. Not all players filled out all the
fields, so some fields like "PSN-ID" are blank, and are shown as
"undefined" in the accordion.
To avoid that, I used spry:choose & spry:when to only
display data fields that have value. But in Safari, when you click
on the players, you'll see "PSN-ID: undefined" for most of them.
Here's a portion of the XML file:
- <clan name="Hawks of California" tag="HOCA">
- <membership>
<player display-order="D0" registration-date="10/14/2007"
username="AMSrawtalent" birth-date="07/22" ZIP-code="94611"
PSN-ID="?" XBL-gamertag="?" rank="?" role="Official Member"
war-cry="Just play!" />
Here's the code for the accordion:
<div id="Accordion1" class="Accordion">
<div class="AccordionPanel">
<div class="AccordionPanelTab">Personal
Info</div>
<div class="AccordionPanelContent">
<div spry:detailregion="player"
class="SpryHiddenRegion">
<div spry:choose="spry:choose">
<div spry:when="'{@PSN-ID}'=='?'"></div> <!--
no display if no data, ="?" -->
<div spry:default="spry:default"><p>PSN ID:
{@PSN-ID}</p></div>
</div>
<p>Registration Date: {@registration-date}</p>
<p>Birth Date: {@birth-date}</p>
<div spry:choose="spry:choose">
<div spry:when="'{@XBL-gamertag}'=='?'"></div>
<!-- No display if no data, = "?" -->
<div spry:default="spry:default"><p>XBL
Gamertag: {@XBL-gamertag}</p></div>
</div>
<div spry:choose="spry:choose">
<div spry:when="'@war-cry}'=='?'"></div> <!--
No display if no data, = "?" -->
<div spry:default="spry:default"><p>Warcry:
{@war-cry}</p></div>
</div>
</div>
</div>
</div>

Similar Messages

  • Spry displaying in Firefox & Safari, but not in IE

    Ok, so I was trying to replicate one of the demos: http://labs.adobe.com/technologies/spry/demos/rssreader/index.html
    Except that we're running on a LAMP platform which meant I had to rerwite the ColdFusion into PHP. I'm hoping the PHP isn't the issue, seeing as this wouldn't be the forum for correcting that problem.
    Here's the page I'm working on: http://www.darton.edu/ol-or/new.php
    It works just fine in Firefox & Safari, but when I get to IE, I get the "Failed to load feed items!" error.
    I can read the feeds in IE, but for some reason it won't display them.
    The core of the feeds.php I wrote:
    $xmlstr = trim(file_get_contents('LiveFeeds.xml'));
    $mydoc = new SimpleXMLElement($xmlstr);
    foreach($mydoc->feed as $feed)
      if($feed['id'] == $id)
       $url = $feed['url'];
       $curl_handle=curl_init();
       curl_setopt($curl_handle, CURLOPT_URL, $url);
       curl_setopt($curl_handle, CURLOPT_HTTPGET, TRUE);
       curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array ("Content-type: text/xml; charset=utf-8"));
       /*$buffer = */ return curl_exec($curl_handle);
       curl_close($curl_handle);
       //return $buffer;
    Firefox and Safari aren't having a problem at all, everything is processing correctly. I thought, after reading some in the forum that the Headers were the issue, but as far as I can tell, the cURL HTTP Header feature is working as it's supposed to.
    I feel like I'm beating my head against a brick wall at this point.
    I just need guidence at this point, at least a shove in the right direction would be helpful.
    Many thanks in advance.

    The XML file seems to be in order.
    I do notice that IE has a problem with SpryData.js which points to interference from other JS. For a start, place xpath.js after SpryData.js.
    If this does not solve the problem, try placing both of the above files before any other JS files.
    Gramps

  • Multi swf tiles break in safari 3.0 XP

    I have a right side bar with 5 swf tiles going down
    vertically.
    When I test my page in all other browser it renders perfect.
    When I test in safari 3.0 beta xp the swfs break up and go into one
    another when scolling down the page.
    This bug is killing me are there any fixes for this?

    It's because Safari has support for Colour Management.
    Firefox and IE assume sRGB colour profile.
    Safari checks images for colour profile information and displays them accordingly.
    chaos pilot

  • Spry menu vanishes in Safari

    Hi
    I have just started developming my first site with s Spry Horizontal Menu.
    Although the site's not finished I have put what I have done up on the server on the clients secondary domain. He called me to say the nav had gone a bit strange when he looked at it on his new laptop. I decided that although it looks fine on my m/c with IE and Firefox, I downloaded Safari to check it's OK with that and hey presto the nav has vanished without a trace!!!
    Any one any ideas as to why. the url is http://www.fw-lighting.co.uk/home.html
    Does Safari not support Spry?
    Thanx
    Ralph

    Cevema wrote:
    Does Safari not support Spry?
    Fortunately it does, in fact when the original Spry files are used, ALL browsers support Spry.
    Unfortunately your page misbehaves in < IE8  as well as Safari
    That is why I would like to suggest that you
    replace YOUR version of SpryHorizontalMenuBar.css with the original
    modify
    #navbar {
        background-color: #3a3289;
        height: 30px;
        width: 1000px;
    to
    #navbar in your stylesheet  to {
        margin-left: 560px;
        3. add the following style rules to your page making sure that these are loaded after SpryHorizontalMenuBar.css.
    ul.MenuBarHorizontal a {
        background-color: #3A3289;
        color: #FFF;
    ul.MenuBarHorizontal li {
        width: auto;
    ul.MenuBarHorizontal ul {
        width: auto;
    ul.MenuBarHorizontal ul li {
        display: block;
        float: none;
        width: auto;
        white-space: nowrap;
        border-bottom: solid 1px #EEE;
    ul.MenuBarHorizontal a.MenuBarItemSubmenu {
        padding: 0.5em 2em 0.5em 0.75em;
    At a later stage you can create a file called myStyles.css, place the above style rules in there and bind the new stylesheet to your page.
    I hope this helps.
    Ben

  • Spry panels breaking in Explorer

    In Explorer only, getting a "object expected" char 1 error message for
    this line
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    This is the page:
    http://thefamilyphonebook.com/schools-pre-kindergarten.php
    works fine in other browsers...any insight, most appreciated...
    This page, http://thefamilyphonebook.com/test.php is ok in explorer...
    But when I add in the spry panels to that page, it breaks again in Explorer...
    http://thefamilyphonebook.com/schools-pre-kindergartenTEST.php
    Any assistance, most appreciated.
    Thanks,

    Change
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    to
    <script src="http://labs.adobe.com/technologies/spry/widgets/tabbedpanels/SpryTabbedPanels.js" type="text/javascript"></script>
    This means that your SpryTabbedPanels.js has been corrupted.
    To get the latest versions have a look  here

  • Alignment Issues with Spry Menu Bar in Safari

    www.laurentambard.com    
    I am new to CS5 and currently building a site for a friend.  Having issues with aligning then far right spry menu bar so that it is flush with the page.  It only shows a problem on Safari (as far as I know).  Also the second tab (About) is dropping down slightly when the drop down menu is selected and not sure how to fix it.

    If you place the menubar in a container with an ID of nav or similar and a background color of #EEE so that it blends in with the background colour of the menu items, the centralise the menubar and menu items as per http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml, it should go a long way to meeting your requirements.
    Gramps

  • Spry tab pannel with safari

    in our asp.net application we are using spry tabbed panel and
    rad(telerik) ajax manager.
    there are some images and on image click the respective
    datalist will be populated the data display is done by using
    partial post back.
    Its working fine in ie6,ie7 firefox But not working in safari
    3.1.1.
    the loading image keeps loading without any data display.
    Its real urgent so if anybody can please help me out.

    Exactly the same problem, but in Safari 3.04
    If anyone know...please help
    Tha

  • Horizontal Spry Menu Breaks in IE6

    I have created an horizontal spry menu using the spry widget
    in DreamWeaver CS3. I would like the width of each menu item to
    adjust to the text (width: auto;) and that works fine in current
    browsers (FireFox, IE7, Opera, Netscape) but in IE6 the menu items
    are displayed vertically instead of horizontally. As soon as I give
    them a width, it displays appropriately in IE6, but that changes
    the look. You can see the page in question at
    http://www.inachordwebdesign.com/ccc/test.html
    Is there any way to work around this problem with the older
    IE versions?
    Any help would be greatly appreciated! Please let me know if
    I need to upload any code. This is one of my first posts, so I'm
    not sure what all I need to post.
    Thanks!

    I have updated the Spry Assets as suggested, but still have
    the same results. Removing the float:left for the menu bar doesn't
    help with the item alignment in IE6 and actually introduces a
    problem in the current version of Firefox, so that isn't the
    problem either.
    Any other thoughts? The only thing that seems to force the
    menu bar to display horizontally in IE is to have fixed widths for
    the list items in the unordered list (ul.MenuBarHorizontal li). As
    soon as I change that from a defined width to auto, or remove the
    width designation altogether, it falls back to a vertical
    arrangement in IE6, though it works in all the more recent browsers
    just fine. We'd rally prefer to let the list items size
    automatically, but if there is no way around it, I'll have to try
    to replicate that effect by assigning a different width to each
    item. That will add a lot of extra code, unfortunately.
    Thanks.

  • Spry Vertical Menu Bar OK in Safari?

    I'm revising the menu and using Spry in order to make the
    menu friendlier to all generations of Safari. Has anyone had issues
    with the Spry menu bar in Safari?
    Thanks for any help.

    I am told by Safari users (no mention of which Safari
    release) that the site as it stands (using Xara rather than Spry)
    does not allow hover to work correctly. The submenus appear until
    the Safari user hovers over them, at which point they disappear. My
    mockup page menu seems to work fine with Safari for Windows Beta,
    but I just want to make sure that Mac users can get into the page.
    Thanks.

  • Without Safari for Windows, how will I be able to ensure my website works on the mac?

    I build website templates and modern web apps for a living and use HTML5 and CSS3 extensively.
    I've experienced that with those new technologies there are often minor differences and bugs between Safari and Chrome altough they both use the Webkit rendering egine.
    The version of the engine not being the same I often find akward behaviours which I also report to apple.
    Now, not having Safari 6 for windows, how am I supposed to develop websites for the mac? This is not just software that is OSX specific, we are talking about websites here. Many new websites might just break in safari.
    Please apple at least bring a dev tool to windows. A Window, an url bar, dev tools and the Safari rendering engine. No need to build something fancy
    Thanks for your suggestions and feedback.

    You can use this form for sending Apple feedback about Safari:
    http://www.apple.com/feedback/safari.html
    "Safari is one of the most standards-compliant browsers ever built. Thus, your best bet for ensuring your pages render properly in Safari — today’s version and beyond — is to follow web standards. For a great overview of web standards, check out Mozilla.org’s article Using Web Standards in Your Web Pages."
    https://developer.mozilla.org/en/Using_Web_Standards_in_your_Web_Pages

  • Spry Menu Bar Javascript Error - items[i].getElements..."a")[0] is undefined

    I have used a spry menu bar on several websites now, and It works very well.
    However, I get a javascript error everytime a page loads. Like I said the menu bar works, but i would like my page to run error free.
    The error is this  items[i].getElements..."a")[0] is undefined
    and it occurs in the following block of code from the spry js file.
    // safari doesn't support tabindex
        if (Spry.is.safari)
            this.enableKeyboardNavigation = false;
        if(this.element)
            this.currMenu = this.element;
            var items = this.element.getElementsByTagName('li');
            for(var i=0; i<items.length; i++)
                if (i > 0 && this.enableKeyboardNavigation)
                    items[i].getElementsByTagName('a')[0].tabIndex='-1';
                this.initialize(items[i], element);
                if(Spry.is.ie)
                    this.addClassName(items[i], this.isieClass);
                    items[i].style.position = "static";

    Hi,
    The problem could be in your HTML-code or even in your modified style sheet.
    So that we do not have to guess, please give us these code, preferably by supplying an online URL.
    Ben

  • IE 7 freezes on selecting new panel in Accordion

    Dar! Our rather complicated homepage at http://ebling.library.wisc.edu has developed a bug that affects IE 7 users only. Our Spry Accordion on the left of the page used to work fine but now freezes up the browser when you select any panel other than the default one.
    Only changes to the code recently involve an attempt to use this ContentFlow viewer to display our new book acquisitions. After repeatedly trying to get it to work in IE 6 we decided it wasn't worth the effort and put in some IE conditional code to only display it for IE7 or later. That seemed to work find but just got a report this morning (confirmed on my end) that the Spry Accordion breaks IE 7 now. Page loads fine but freezes on clicking the accordion to open a new panel.
    Any ideas? Conditional code + IE 7 + Spry? Or even just IE 7 + Spry? Any help appreciated. Works fine in Firefox, Safari and IE 8...

    Have tried to remove *or disable* your contentFlow script to see if that helps causes a error?

  • Error message when trying to open Adobe Pro XI

    I get an error message and Adobe Pro XI shuts down.  Here is the message:
    Process:               AdobeAcrobat [12338]
    Path:                  /Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app/Contents/MacOS/AdobeAcrobat
    Identifier:            com.adobe.Acrobat.Pro
    Version:               11.0.09 (11.0.09)
    Code Type:             X86 (Native)
    Parent Process:        ??? [1]
    Responsible:           AdobeAcrobat [12338]
    User ID:               501
    Date/Time:             2014-11-30 16:21:10.432 -0600
    OS Version:            Mac OS X 10.10.1 (14B25)
    Report Version:        11
    Anonymous UUID:        D46030FD-9451-ADF1-5FB0-489573752EFB

    You can directly delete the application from Applications folder, that is just trash /Applications/Adobe Reader.app. Also this may cause a break in Safari functionality to read PDF files using Adobe Reader plugin. To resolve this, go to /Library/Internet Plug-Ins/  and remove AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin

  • TypeError: document.getElementById("cf_debug") has no properties

    Anyone have any idea what this might mean?
    TypeError: document.getElementById("cf_debug") has no
    properties
    I was running attempting to use the Spry.Effect.AppearFade
    and that popped up.
    Thanks.

    Hmmmm. I transferred to the production box and all is
    working.
    Stupid question, because I didn't read all the documentation,
    however does requests such as
    http://test.p.org/myfile.cfm
    cause spry to break down? Does the test. or any prefix cause
    problems for spry?

  • HTML entity codes in XML do not display in IE browsers

    I have an XML file generated via PHP/MySQL that contains HTML entities like " &sup2; ". I'm using DW CS3 to create a Spry (1.6.1) dataset from the XML file and filling a Spry table.
    If I open the table page in any IE browser (6, 7 or 8) the table is filled and displays OK but these characters are just missing, however, I can open this same page with the same Spry dataset in Firefox, Safari, Opera, Chrome, etc. and all characters are displayed correctly, it's just IE that refuses to play.
    I've tried changing DTDs and UTF8 page encoding, nothing seems to make a difference.
    Any suggestions greatly appreciated  [ I can feel wrist slitting time approaching ... ] 

    Hi Phil, it works!
    Many thanks for your suggestions, they certainly helped solve the problem. I had previously tried wrapping in CDATA but I just got the entity codes displayed as text and sort of gave up looking there.  
    The solution is to use CDATA to wrap the relevant content AND to format the column type to "html" with set "ColumnType".
    I also found that Entity declarations can be removed from the XML, so I shouldn't have to worry about any entity codes I might encounter in source data.
    The site I'm working on will eventually be multilingual with supplied database content, so I can't control the source data and all site features must work equally well in all languages.
    I've updated the sample file with some Russian source data and set both character columns to "html", it works just fine! It shouldn't matter which method gets used to insert any special characters.
    http://www.tech-nique.co.uk/development/spry_data/spry-data-table.php
    many thanks for all responses, much appreciated!
    [ every day's a school day ~;o) ]

Maybe you are looking for

  • Report to show all activities (ended and not ended)

    Hi, I would like to do a report to show all activities (not ended and ended), but when I do the report from "Activity" the only information shown is no ended activities. Is possible to show all activities? How can I do it? Thank you and regards.

  • My client is receiving error messages

    I redesigned & updated my client's site with DW Version 9.0 Build 3481. My client is editing thw site with Contribute 2. 2 problems have arisen preventing him from editing the site" 1.) When he copies and pasted into a new page he receives the follow

  • How to do Translation of Lables in Internet Service

    Hi, I have created an internet services in SE80 and write the code which is showing some labels on the output screen. Now I have to do the translation in Spanish Language for the lables maintain in english. Please tell me where I have to do this tran

  • Is there a way to call a SQL Program from an Oracle Report?

    Morning friends. I had a question about Oracle Reports and them calling a SQL Program. Here is the problem at hand. I am hoping to not have to change the existing program a whole lot! Currently, here is what is happening. I have a .sh file which call

  • Apple Hardware Test on Macbook Pro Core 2 Duo (early 2007) with no DVD?

    Hi, My Mac is keep on freezing and I would really like to know what is wrong with it. (I did PRAM NVRAM reset 100 times... didnt help.) I can't find my OSX Tiger DVD which was included when i bought my Macbook Pro in January 2007. So I've been readin