Newbie alert spry conditions question

I am trying to use an XML dataset to draw data for my
application pages. I have some XML fields, (in this case {helpurl}
and {moreinfo} ) which may or may not have a value assigned to them
in each record.
My question is simple, but I can't find the answer... where I
originally would write it this way in CF, what is the equivalent in
CS3/Spry?
<cfif (#helpurl# is not "")>
<a href="#helpurl#">HELP</a>
</cfif>
<cfif (#moreinfo# is not "")>
<a href="#moreinfo#">MORE INFORMATION</a>
Thanks so much!!

You need to use Spry:if like below
<p> {Description} <a href="{Link}" target="_blank"
spry:if="'{Link}' != ''">MORE..</a></p>
Regards
Phil

Similar Messages

  • Newbie alert - opening swf

    I just downloaded the Flash demo, the purchased copy with
    books and the other books I ordered have not arrived. But I cannot
    wait to try this stuff. So NEWBIE ALERT
    I have an swf file from our web devloper that I want to look
    at, take apart and see how it works. When I open it in the flash 8
    all I can see is the end product. How can I see what went into
    this? Do I need other files he might have?
    Sorry for this silly question but you know how it is when you
    are starting a new project....

    Thanks! My designer is sending me the correct
    files.

  • RE: possible glitch with conditional questions

    I've been designing a form with mulitple conditional questions. On testing, a 'glitch' seems to be occuring. If i     a) check and answer to a question which leads to a secondary conditional question, and then b) check a response in that conditional question, and then c) change the response to the original question, the response to the conditional second question remains. i think this may be due to the fact that once you check an answer in a single choice question, you cannot "unanswer" or uncheck the whole question, that is you cant "remove" the check all together.
    Any workarounds?

    I'm not quite sure I understand. Can you create a simple form illustrating the issue and send it to me. Please enumerate the exact steps that cause the issue.
    Thanks for the clarification.
    Randy

  • A Few Newbie 10.8 Server Questions...

    Hi All,
    A few quick newbie 10.8 Server questions:
    1) Airport Extreme - I currently have an Airport Extreme attached to one of my workstations which is serving as my main router with a dedicated IP. I'm just in testing mode with my new server and wondering if I need to do anything to the Airport's configuration to make it work with the Server? Does the Server need to administer the functions of the AirportExtreme? Or is it ok to leave it attached to the workstation? Or does it not make any difference?
    2) Automount Shared Folder/Drive - I would like my users (who are mostly using MacBookPros with they take home and bring back to work) to be able to Automount our shared data drive when they come in to work. I read the help section regarding AutoMount, but it a) referred to using ServerAdmin, which I understand has been eliminated from 10.8 (dont know why they are still referring to it in the help!) and b) it talks about AutoMounting Home Folders, but not shared Drives/Folders.
    3) Firewall - I have a static IP and want my users to be able to connect using VPN. I am buying a SSL for the domain. Wondering if the combination of the built in firewall, plus the SSL, plus the built in VPN is secure enough, or should I be investing in a solution such as the SonicWall TZ100.
    Thank you !!!!!

    1) Airport Extreme - I currently have an Airport Extreme attached to one of my workstations which is serving as my main router with a dedicated IP. I'm just in testing mode with my new server and wondering if I need to do anything to the Airport's configuration to make it work with the Server? Does the Server need to administer the functions of theAirportExtreme? Or is it ok to leave it attached to the workstation? Or does it not make any difference?
    The Server app is not required to manage your airport.
    The server app can automatically open ports for you, so it makes life easier for a home-server-administrator.
    Continue managing your Airport or whatever NAT router you prefer any way you choose.
    2) Automount Shared Folder/Drive - I would like my users (who are mostly using MacBookPros with they take home and bring back to work) to be able to Automount our shared data drive when they come in to work. I read the help section regarding AutoMount, but it a) referred to using ServerAdmin, which I understand has been eliminated from 10.8 (dont know why they are still referring to it in the help!) and b) it talks about AutoMounting Home Folders, but not shared Drives/Folders.
    You can drag a mounted sharepoint to the right-side of a user's dock.
    It will then remember the sharepoint, and its 1-click to open it when needed,
    This is my preference with laptops.
    You can also add the sharepoint to your user's login items (on their workstations, System Prefs, UsersGroups/, User, Login Items - I don't like to do this with laptops because it causes a login delay when they aren't in the locaiton of the sharepoint.
    Either method is simple.
    I even use Safari bookmarks to get people to a server. Go to the addressbar and type:   afp://[email protected]   (with your real IP) then bookmark it. You can also drag that that URL to the desktop to have a location file which will ALSO take you to the server.
    So Lots of ways...  Depends on users/environment.
    3) Firewall - I have a static IP and want my users to be able to connect using VPN. I am buying a SSL for the domain. Wondering if the combination of the built in firewall, plus the SSL, plus the built in VPN is secure enough, or should I be investing in a solution such as the SonicWall TZ100.
    If you aren't going to have anything except for VPN open to the public, then you won't need SSL.
    VPN, but nature, is already encrypted and does not use SSL.
    If you will run Mail, Web, Calendar, Contacts, etc and don't want to requires users to VPN, then you should use SSL.
    TIP: Fromt the start, use a fqdn for your server. Don't use a .private or something fictitious.
    If you own mydomain.com, then setup myserver.mydomain.com and make it your server's hostoname from the get-go.
    Later, you'll be glad you used a proper FQDN
    Jeff

  • Newbie Alert Question

    HI,
    I am trying to display an Alert before a midlet exits and I have bound it to the Exit Command, i.e. in the commandAction I create an Alert alert and call display.setCurrent(alert) (Alert.FOREVER, AlertType.CONFIRMATION) before calling destroyApp(false) and notifyDestroyed(). Problem is, the Alert does not work as expected. Help.
    Thanks.

    Same problem as me. I can't get it.
    Actually, I'm still trying to get past the piss-poor tools Sun provides... Forte won't run for more than 1/2 hour before dying, and the KToolbar isn't much better. I create a new project following the documentation, put the source code where it is, but it can't execute the midlet. Checking the files, I see it doesn't create a .JAR.
    Sorry to have deviated from your question, just needed to vent.
    Are you having problems with the tools? If I could only get them to run reliably, I could focus on learning the J2ME coding!

  • (newbie alert) - simple question?

    My Dell is four years old and dying. I am considering an iMac G5. One of the main things I would want to be able to do with it, right out of the box, is as follows. I asked someone at the Apple store if this was easy to do, and his response seemed very complicated. Would a new iMac G5 using just the pre-loaded iLife stuff be able to the following:
    I have burned many old home family movies from VHS to DVD using a DVD recorder hooked up to the VCR. The DVD recorder is a cheap model, so it doesn't allow me to edit much at all; I more or less get just a straight transfer of whatever is on the VHS tape, over to the DVD.
    I'd like to be able to pop in one of those DVDs I've generated from those VHS tapes, and then be able to really aggressively work with that "footage" to create montage clips into a new "movie", so maybe out of 60 minutes of raw footage of a family picnic from 1985, I want to be able generate a watchable 5-minute DVD clip that just shows the interesting stuff. I'd like to be able to lay music from iTunes over top of this, add titles and credits and whatnot, and then burn to DVD to share with family members, or upload to a web location (.Mac?) for family members to access and view.
    It would be nice if I could also incorporate digital still photos from my digital camera, and/or short MPEG movies my "still" camera can take (each just 15 seconds long).
    Is this all within the easy grasp of the iLife suite?
    Thanks!

    Thanks.
    Last night, I took a close look at the inputs and outputs on my little JVC mini-DV video camera, which is about four years old. It's pretty clear it has no analog-in ports, so I don't think I can use it as the go-between unit from the VHS for a transfer of the VHS content onto the iMac. Reason being, the only "in" port on the mini-DV camera is a little "DV in /out" port, and I certainly don't believe the VCR has any type of corresponding "DV" output line. So, as for getting the old home movies from the VHS tapes into the iMac for editing and DVD buring, I believe -- based on the responses I've received in this forum -- it does boil down to using something like the Canopus ADVC-100 to allow me to make that transfer.
    The related question for the overall project then becomes, am I confident I'll be able to get content into mu iMac from my other main source: a small library of home movies on mini-DV cassette tapes. The JVC mini-DV camcorder has an S-video out port (plus a "headphone" audio out jack that splits to RCA audio lines), so where can I run that to get it into the iMac? Would the Canopus ADVC-100 take that in? The only other "out" line on the camcorder is that "DV in/out" line I mentioned above. Nothing anywhere says anything about firewire... is that "DV" line a standard thing? Can the iMac take it in directly? Could it run through the Canopus unit?
    Thanks a million.

  • Spry Conditional Validation of Txt Boxes When Using Show/Hide

    Hi everyone.. just a quick question (if their is such a thing) if that is ok...
    I have been working on this single issue for 3 days.. it is driving me mad and hoped someone may be able to point me in the right direction...
    I have a form and it has a radio button with 3 options (about relationship status):
    Married
    Defacto
    Single
    If they select married a text box appears with Enter spouses first name;
    If they select defacto a text box appears with Enter partners first name..
    If single no text box appears..
    User then clicks on next to go to next page..
    All good.. except.. I am using DW CS4 and using spry to validate both txt boxes (spouses first name and partner first name).. problem is only one will be displayed depending on the option selected – Married or defacto.. spry tries to validate both even the hidden one and therefore will not allow the user to go to next page.. as at least one not completed..
    I have spent almost 3 days trying to write a php/java if statement to get spry to only validate text box 1 or 2 if radio button says married, defacto or single etc..
    I would really really really apperciate your input about how I should do this as it is driving me nuts!!!
    Anyway thanks and really hope to hear from someone..
    Cheers from Downunder
    UPDATE:
    Been playing and got this to work:
    <script type="text/javascript">
    function decision(){
    if(document.martial_status.martial_status[0].checked) {
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:blur});
    //-->
    sprytextfield1.reset();
    } else if(document.martial_status.martial_status[1].checked) {
    } else if(document.martial_status.martial_status[2].checked) {
    window.alert("test3");
    } else {
    window.alert("Pick something!!");
    // -->
    </script>
    BUT (and always a but).. if person goes back and selects say single rather then married after already clicking married the spry error msg is already in place for married.. and person cannot go to next page.. The joys.. tried martial_statur.reset and destroy and does clear the error message but still does not allow user to go to next page..
    Any thoughts? Thanks in advance..

    You can destory the validation:
    sprytextfield1.destroy();
    and it should validate.

  • Spry Tab question

    I've got the use of the spry tab figured out, but what I'd like to know is if I can change the 'look' of the tabs.  Rather than just have them be plain ol' squares, I'd like to change the style of them (more than just the color).  Is it possible to change the shapes?  Or to specify a .jpg to use as the tab?
    Thanks!

    I appreciate all the feedback, but I have a few more questions...
    I want to do something like the example I've provided, but have two questions in that regard.
    The 1st - those tabs overlap.  Is their an easy way to accomplish that, as a newbie?  I don't know much, still learning.  Obviously it would be easier to create tabs that don't overlap and avoid this issue altogether, but I really like the look.
    My 2nd question is the drop shadow.  I can create the drop shadow in Photoshop, but I'm wondering if there's an easier way to do it in Dreamweaver.  Just apply the Spry Tab Menu and tell it to put a drop shadow behind it.  Is there something that easy, or do I need to create the drop shadow in Photoshop and use div tags to basically put it 'around' the spry tab menu?  Does that even make sense?  I know what I mean in my head, but might not be explaining it properly...

  • Newbie Alert: Problem with saving downloads to a network drive

    I'm a new Mac user so, I apologize for the newbie question.
    I've have a NAS on my home network. I can see it and access it just fine. I have Firefox set to ask me where I want something downloaded. I don't get the option of putting, say a PDF in a folder on my network storage device.
    I can put it anywhere on the iMac's hard drive or even a USB/Firewire drive but not a network location. In Windows, you'd map a drive and be off to the races.
    How do I do this on a Mac?
    Thank you in advance,
    Rick

    AFAIK, not doable for NAS HDs. Since you're new to Macs, you're going to have erase windoze stuff from you lexicon, check these out:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    MacFixIt Tutorials, and
    MacTips Learning Centre.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides, and
    A guide for switching to a Mac.

  • Spry: Conditionally Fields

    Hi,
    I am using DW CS3 to create spry fields.
    I have a situation in which I want one field to become
    required based upon the value of another field. In my page I added
    the following:
    var chkOtherValid = function(value, options){
    var sel = document.getElementById("Chk");
    var Chk_value = sel.options[sel.selectedIndex].value;
    if ((Chk_value == 'OTH') && (value == '')) {
    return false;
    return true;
    var chkOtherValid = new
    Spry.Widget.ValidationTextField("spryChkOther", "custom",
    {isRequired:false});
    Within my form I have the following:
    <span id="spryChkOther">
    <input type="text" name="ChkOth" size="23" maxlength="15"
    onblur="this.value=this.value.toUpperCase();" />
    <span class="textfieldRequiredMsg">A value is
    required.</
    span></span> </td>
    </tr>
    My problem is that I am no getting the expected result.
    Can someone please help me.
    Thank You.
    Regards,
    Al

    >>
    if ((Chk_value == 'OTH') && (value == '')) {
    >>
    I´m sure this fails because you´re using an
    && (means AND) comparison here, though the selected value
    can only match one of both conditions. Reckon you´ll rather
    have to use OR instead -- means:
    if ((Chk_value == 'OTH') || (value == '')) {

  • Workflow condition question

    Whenever a new opportunity is being added, If the ExternalSystemId field is blank then go ahead and fire off the workflow action. If it's NOT blank then do not fire off the workflow
    In the workflow condition, I have this
    len(Field_Value('<ExternalSystemId>')) = 0 OR len(Field_Value('<ExternalSystemId>')) IS NULL
    but it still fires off the workflow even though the external system id field has something in it.
    Do you have any idea?
    Thanks

    If I understand your question, you would need to write your default expression in the field definition (read the Default value and post default behavior). There are no workflow triggers for create (new Opportunity).

  • MapViewer - A team of newbies and definitely basic questions...

    Dear All,
    We are a team of programmers who are very new to MapViewer. We are an experienced team of GIS programmers, however, we find difficulty in applying known functions to MapViewer. It's a great application, but a lot of unknowns.
    We have very basic questions, as well as advanced ones. I would like to summarize them as follows:
    1. How can I let the map to be zoomed into a specific feature?
    2. How can I execute a query to find a specific feature?
    3. How can I execute network analysis query to find the shortest path or paths between two or more nodes?
    4. How can I find out the nearest node to the location when user clicks on an arbitrary location on the map?
    5. How can I execute generic queries, without (this is important) need to send/receive XML queries?
    6. The bottomline is: we just want to use ready made functions to make it as easy as possible.
    Anyhelp is greatly appreciated. We are stuck with the basics of MapViewer (Oracle Maps).
    Please help us find the light :)
    Best regards.
    Desperate MapViewer Team!

    Here are some quick answers, hopefully they are not too late.
    1. You will construct a theme (mostly a dynamic one) that contains the specific feature, then call the theme's setBoundingTheme(true). Typically what we see people do is: a) create a dynamic theme with a query that selects a set of features; b) create a FOI layer based on the theme (MVThemeBasedFOI); c) call the setBoundingTheme(true) on the FOI layer. The end result, is that MapViewer will process your query and return the FOI data to the Oracle Maps JavaScript client, which will zoom the map to include the set of features in the FOI layer. Check out Oracle Maps tutorial #35 for an example.
    2. This is partly answered above. Basically you will construct a theme with a dynamic query string. You may want to check out tutorial #37 which finds out and displays the buffers around a set of points; the buffers are constructed via a SQL query at run time.
    3. This is not really a MapViewer question; rather, you may need to consult the Oracle Spatial routing engine XML API; the gist is you send the XML route request to the routing server, which returns a set of coordinates for your directions, which you can construct (MapViewer) FOI objects out of and display them on the map.
    4. I'm not sure our routing engine or network data model API has such a function ready for use; what you can do is if you can formulate the SQL query string (with the current location represented as a binding variable), then you can create a theme out of this query condition, and simply supply the location at run time to get the set of nodes.
    5. Can you please elaborate on what do you mean by generic queries? A simple usage scenario will help.
    6. We understand; there are quite a lot of things that can be made easier out of the box and we are working towards that. in the mean time, just ask questions if you have them; and always check out the Oracle maps tutorials first (actually reading the MapViewer primer article should be the absolute first step :) ).
    thanks
    LJ

  • 'Share Name ID' Terms and Conditions Questions

    Sorry for the double post - I had originally, by habit, posted this in the Droid Razr forum, but realize now it would be better here.
    I would rather have my Verizon number display my name than the generic "Wireless Caller" and the instructions for how toConfigure Share Name ID tell you how to do that.   But my question has to do with the Terms and Conditions on that page which read:
    Note the Terms & Conditions: Your use of Name ID Services is subject to the following terms and conditions. By submitting a name for display and disclosure to others you are affirmatively asking Verizon Wireless to give your name and wireless phone number to a publicly available directory for use and distribution and you agree and consent to disclosure and use of this information by third parties.
    Can anyone tell me exactly what that means?  Specifically, I have three questions:
    Does it mean you are now in a public "white pages" type directory?
    Does it mean your phone number will be shared with telemarketers?
    And lastly, if you have chosen to keep your Customer Proprietary Network Information (CPNI) private and opted out, will using Share Name ID override that selection?
    In another forum there's a lot of discussion about this and I'd like to be able to add some informed information as opposed to wild speculation.
    So if anyone - especially a Verizon employee - can shed some light on what those Terms & Conditions mean (or don't mean), I'd appreciate it.
    Thanks.

    I just got an answer to this from a very nice Verizon employee named Ryan.  For anyone else who is interested, he said:
    The Share Name ID service allows your name to show a specific or customized name when calling another person. The directory the terms and conditions are referring to are databases that landline companies use to provide Caller ID service. Landlines and cell phones process Caller ID in different ways. When you call a cell phone, whatever that phone has your number saved is how it shows on the display. Landline phones do not typically have a locally stored address book, so they rely upon these databases to give a name to display. The directory that is being referenced are these databases, used solely for Caller ID. They are not publicly accessible and searchable like a White Pages.
    Opting in to Share Name ID will not override the CPNI opt out, they are two separate entities, and Verizon Wireless will not give your information to telemarketers. The only thing that will change with using Share Name ID is that your name(or whatever you choose) will show up whenever you call somebody instead of a generic "Wireless Caller" statement. Your privacy is still very much respected, and no alterations will be made.

  • Spry Repeat Question

    Hello,
    In DW I can use Repeat Region and assign how many records it will display in the repeat and then have navigation to move forwards or backwards.
    Is there a way to do that with a Spry Region/Repeat ?
    Thanks in advance of any help.
    Regards
    Ray

    Hi,
    I looked over you code and I noticed that you have the image
    src added on the left side.
    You have this <img
    src="galleries/{dsGalleries::@base}{dsGallery::thumbnail/@base}{@thumbpath}"
    alt="{@thumbpath}" name="tn{ds_RowID}" width="89" height="15"
    id="tn{ds_RowID}" style="left: -77px; right: 0px;" />
    You don't need to have the image added on the left side,
    because you want there only the title (Adobe, SF Symphony...)
    So you should replace the img with a div for example:
    <div style="width:89px; height:15px;left: -77px; right:
    0px;" id="tn{ds_RowID}" >{@thumbpath}</div>
    The reason why you have an empty space after Adobe item is
    that on you xml you have an empty alt attribute.
    To display only the thumbpaths that are not empty you can add
    an spry:if condition.
    So the above div becomes:
    <div style="width:89px; height:15px;left: -77px; right:
    0px;" id="tn{ds_RowID}" spry:if="{@thumbpath}" != ""
    >{@thumbpath}</div>
    This says if thumbpath is not empty display it.
    I aslo load you page in IE and I noticed that the left menu
    is not displayed.
    Diana

  • Spry Tabs question

    I have a page that uses the Spry tabs. It's set to use the
    first tab (default).
    I have another page wherein I'd like to put a link tot his
    page but
    have the link display the SECOND tab.
    Is this possible? How is it done?

    I'm a newbie to Dreamweaver CS 5.5 (so please go easy)
    You are out of luck, you copped me.
    <script type="text/javascript"> var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false, defaultPanel: -1 }); </script>
    That's correct, that will vary the content area depending on the contents and will start with all panels closed.
    My code currently looks like this:
    <script src="../SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    And this is where I stop being nice. Your code entails a lot more than these two lines. Your code will look a lot more like
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    </script>
    </body>
    </html>
    The line that you are looking for is called a constructor. The function of a constructor is to create an instance of the widget, without which a widget would not exist. Another function of the constructor is to override the default JavaScript using overriding settings. Hence, if you change the 4th last line (hopefully highlighted bold red) to
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1 });
    or similar, you should be fine.
    Gramps

Maybe you are looking for