What does {tag_image_value} from webapps return when field is empty? How to use javascript to remove div when condition is met.

Dear all,
As stated in the question, what does {tag_image_value} from webapps return when no image has been uploaded by users. I understand that there is an OnError function that can be called if there isn't any image. However it does not do so.
I am creating a program which will check to see if {tag_image_value} contains an image. If it does not, the error will call an external javascript to remove the div such that it removes any subsequent codes in the later parts of the codes. Below is part of the program:
I have tried to compare the value to NULL, 0, -1 and "" using if-else functions but they do not work. The slideshow wrapper is part of the code from the following theme: 2027 E Colfax Ave Denver
The theme will cycle through the pictures, my purpose is to remove the pictures if the images are not present.
   <!------------------------------------------------ Remove picture if not uploaded ------------------------------------------------>
<script language="JavaScript">
function noimg1() {
     $( "#shownpicture1" ).remove();
     return;
function noimg2() {
     $( "#shownpicture2" ).remove();
     return;
function noimg3() {
     $( "#shownpicture3" ).remove();
     return;
function noimg4() {
     $( "#shownpicture4" ).remove();
     return;
</script>
        <!------------------------------------------------ End of remove picture if not uploaded ------------------------------------------------>
<div class="slideshow-wrapper slider">
<div class="preloader"></div>
<ul data-orbit="data-orbit" data-options="bullets:false;animation:fade;">
    <div style="display: block;" id="shownpicture1">
    <li class="active" style="z-index: 4; margin-left: 0%; opacity: 1;"><img alt="{tag_name_nolink}" onerror="noimg1()" src="{tag_image 1_value}" /></li>
    </div>
    <div style="display: block;" id="shownpicture2">
    <li style="z-index: 2; margin-left: 100%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg2()" src="{tag_image 2_value}" /></li>
    </div>
    <div style="display: block;" id="shownpicture3">
    <li style="z-index: 2; margin-left: 0%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg3()" src="{tag_image 3_value}" /></li>
    </div>
    <div style="display: block;" id="shownpicture4">
    <li style="z-index: 2; margin-left: 0%; opacity: 1;" class="active"><img alt="{tag_name_nolink}" onerror="noimg4()" src="{tag_image 4_value}" /></li>
    </div>
</ul>
</div>
<!-- //.slideshow-wrapper -->

When I put in the code it doesnt work. I went into the page to check and it seems that the preloader changes some elements of the code :
<div class="slideshow-wrapper slider">
    <div class="preloader"></div>
    <div class="orbit-container">
        <ul class="orbit-slides-container" data-orbit="data-orbit" data-options="bullets:false;animation:fade;" style="height: 26px;">
            <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;">
                <img alt="{tag_name_nolink}" onerror="noimg1()" src="">
                </img>
            </li>
            <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;">
                <img alt="{tag_name_nolink}" onerror="noimg2()" src=""></img>
            </li>
            <li class="active" style="z-index: 4; margin-left: 0%; opacity: 1;">
                <img alt="{tag_name_nolink}" onerror="noimg3()" src=""></img>
            </li>
            <li class="active" style="z-index: 2; margin-left: 100%; opacity: 1;"></li>
        </ul>
        <a class="orbit-prev">
            <span></span>
        </a>
        <a class="orbit-next">
            <span></span>
        </a>
        <div class="orbit-timer paused">
            <span></span>
            <div class="orbit-progress" style="width: 0%;"></div>
        </div>
        <div class="orbit-slide-number">
            <span></span>
             of
            <span></span>
        </div>
    </div>
</div>
I tried putting this into the top of my template layout before the code starts:
<script>
$('.slideshow-wrapper slider .orbit-container ul li img').each(function(){
if( $(this).attr('src') == "" ){
$(this).parent.remove();
$('.slideshow-wrapper slider ul li img').each(function(){ 
  if( $(this).attr('src') === '' ){ 
  $(this).parent.remove(); 
$('.slideshow-wrapper slider ul li img').each(function(){ 
  if( $(this).attr('src') == '' ){ 
  $(this).parent.remove(); 
</script>
All 3 variants cannot work. Is there something wrong with the way I do the scripting?

Similar Messages

  • I just updated to ios5 but now can't sync because it's telling me my "other" section in the overview has grown to 10.2gig?!  What does that "other" section in the overview include and how can I reduce it to get my phone to sync??

    I just updated to ios5 but now can't sync because it's telling me my "other" section in the overview has grown to 10.2gig?!  What does that "other" section in the overview include and how can I reduce it to get my phone to sync??

    Thanks for the help.  The restore seems to have solved the problem.  I had a bit of a panic attack when things started going haywire and the Apple 'Support' told me to call back during business hours! 

  • What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    I get this message often when updating things. I have told Small Dog Computer where I buy my stuff, and they didn't have an answer. Thanks in advance.
    What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    Interesting ... thank you! Actually I had that external drive, Western Digital, a while back on my second last? or third last? laptop ... the external drive died with a slew of pictures I had carefully uploaded to it  :-(
    I won't worry about it anymore  :-)
    sorry you got only 5 points, can't figure how to give you 10 points.

  • I can't redeem my iTunes gift card, my phone is un activated, help desk has not helped. What does it mean my phone is un activated and how can I redeem my gift card for my 5c living I. The Caribbean

    I can't redeem my iTunes gift card, my phone is un activated, help desk has not helped. What does it mean my phone is un activated and how can I redeem my gift card for my 5c living I. The Caribbean

    (Typing all in capitals is considered shouting, makes posts difficult to read and may mean that people are less likely to reply.)
    There isn't a phone number for iTunes Support.
    If you've forgotten your answers to your security questions then you can get them reset : If you forgot the answers to your Apple ID security questions
    If you have a credit card on your account then its details have to complete - and asking for their details is also a way of checking that you have a valid billing address in that country. As long as you are buying content for yourself and not trying to gift content (you can't use your balance for gifting) then the purchase price (plus any applicable taxes) should be deducted from your balance. If it's not then you contact iTunes Support :  http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • What does this message mean:  this apple ID has not yet been used in the iTunes store"? I cant connect using my iphone. But it works in iTunes on my laptop.

    what does this message mean:  this apple ID has not yet been used in the iTunes store"? I cant connect using my iphone. But it works in iTunes on my laptop.

    FAQ apple id http://support.apple.com/kb/HT5622?viewlocale=en_US
    http://support.apple.com/kb/HT1311

  • When and Where and how to use Proxies

    hi
    New to Xi Can anyone explain When and Where and how to use Proxies
    Mohit

    Proxies: are interfaces which will get executed in the application system.They can be created only in the system from message interfaces using the proxy generation functions.
    The biggest advantage of the proxy is that it always by passes the Adapter Engine and will directly interact with the application system and Integration engine - so it will and should give us a better performance.
    The literal definition of a proxy is an object / process authorized to act for another; an agent or a substitute. In simpler terms, proxies in the XI context are objects used to encapsulate the creation (from a sender system) or parsing of XML (at a receiver system) as well as the communication with the relevant runtime components required to send or receive those messages. The Proxy Runtime controls these objects / processes, and can itself be controlled by the applications it communicates with.
    The Proxy currently has the following components available:
    1. ABAP Proxy – Communication using XI or Web Services
    2. Java Proxy– Communication using XI (J2EE)
    JAVA Proxies:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    ABAP Proxies:
    /people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    /people/sukumar.natarajan/blog/2007/01/07/how-to-raise-alerts-from-abap-proxy
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    ON SDN TV
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=abap%20proxy%20xi&cat=sdn_all&start=11#
    Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
    ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
    If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
    In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
    CLIENT PROXY:
    A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
    SERVER PROXY:
    You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.

  • How to use ADF variables in C:when test?

    I have a <af:iterator in my page fragment as follows
    <af:iterator id="i1" value="#{queryModel.currentDescriptor.conjunctionCriterion.criterionList}" var="criterion" varStatus="vs">
    Within this iterator, I want to make a decision absed on the index of the iterator. To do this test, I am using jstl as follows
    <c:when test="${vs.index == '0' or vs.index == '2' or vs.index == '4'}">
    This test is however always evaluating to false. I have tried cahnging my code using various combiantion as below ...
    <c:when test="#{vs.index == '0' or vs.index == '2' or vs.index == '4'}">
    <c:when test="${vs.index == 0 or vs.index == 2 or vs.index == 4}">
    <c:when test="${vs.index == '0' || vs.index == '2' || vs.index == '4'}">
    But nothign seems to be working fine.
    Can some one help me with what I am doing wrong?
    Thanks.

    How to use ADF variables in <C:when test?

  • HT1695 I know nothing about how to use my new ipod and when reading the little bit of information in the folder that came with it, all I can do is turn it on, but it just powers down after a few seconds.  How do I work this thing?

    I know nothing about how to use my new ipod and when reading the little information that came with it, all I can do is turn it on.  Then in a few seconds it goes black, never having brought up a screen to do anything!  Help!  What do I do to get this thing going?

    You might consider connecting it to the charger and charging up the battery overnight.
    Please Get the iPod Touch User Manual for iOS 5

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus.
    I can create java source in Oracle
    import java.util.*;
    import java.sql.*;
    import java.util.Date;
    public class TimeDate
         public static void main(String[] args)
    public String setDate(int i){
    GregorianCalendar calendar = new GregorianCalendar();
    calendar.setTime(new Date((long)i*1000));
    System.out.println("Dateline: "
    + calendar.get(Calendar.HOUR_OF_DAY) + ":"
    + calendar.get(Calendar.MINUTE) + ":"
    + calendar.get(Calendar.SECOND) + "-"
    + calendar.get(Calendar.YEAR) + "/"
    + (calendar.get(Calendar.MONTH) + 1) + "/"
    + calendar.get(Calendar.DATE));
    String n = calendar.get(Calendar.YEAR) + "/" + (calendar.get(Calendar.MONTH) + 1) + "/" + calendar.get(Calendar.DATE);
         System.out.print(n);
         return n;
    I have table name TEST
    ID DATE_IN
    1 942685200
    2 952448400
    When I write jsp I use method setDate in class TimeDate
    The result is
    ID DATE_IN
    1 1999/11/16
    2 2003/7/25
    Thanks you very much.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    I have just purchased a new iPad from apple and I don't know how to use it. is there somewhere that I can learn the basics

    Out of a silly curiosity, in what way did Ralph's reply solve your problem? (not that Ralph doesn't deserve recognition, mind you.)

  • I've just brought myself a new MacBook Pro from a friend I have no idea how to use them I YouTube how to reset a MacBook Pro I done everything all we'll In till you reinstall then it say "this disk is locked"??? Can anyone help me please

    I've just brought myself a new MacBook Pro from a friend I have no idea how to use them I YouTube how to reset a MacBook Pro I done everything all we'll In till you reinstall then it say "this disk is locked"??? Can anyone help me please

    I done everything all we'll In till you reinstall
    Please detail ALL you have done so far in the way of troubleshooting?   Need this info to avoid the been there done that scenarios.
    Care to share which OS you are using?
    Which MBP model do you have? 

  • What does this error message mean? "An unexpected error occurred (error code -6584). It arises when I open my Time Capsule icon.

    I had a problem when downloading iTunes 11.1 and had to clear my disc and rebuild it from Time Capsule.  Thats when I learned that Time Capsule stopped backing up back in January.  So now I keep looking to see if Time Capsule is backing up but whenever I open the Time Capsule icon i get this error message.  What does it mean and how can I fix the problem?

    The backup is corrupted in some way.. you need to verify it.
    The error is common enough but there seems to be a range of solutions.
    Read the thread here.. https://discussions.apple.com/thread/3123920?tstart=0
    Look particularly for the posts by Pondini.
    And check his troubleshooting for methods of doing things like verify.
    http://pondini.org/TM/Troubleshooting.html
    A5

  • What does the message "Another program has control of HP imaging device mean"?  I get this when I am trying to scan.

    What does the message "another program ha control of HP imaging mean when I am trying to scan something. How do i correct it?

    You may need to ask HP. I had the same issue with a networked (via ethernet) home HP multi-function. Sometimes the only way to get it to scan was to completely disconnect it from the network and connect it to only one Mac with a USB cable. Even that did not alwatys work.
    Eventually, Apple started pushing out HP printer updates via Software Update. One of those finally made that error message to go away.
    So run Software Update and see it there are new drivers that Apple made avaialble.

  • What does "Locations for this vendor not defined" - mean and how do I eliminate it

    A local restaurant sent me an e-mail with the statement " To receive your special birthday gift click here." When I do I get white screen with the sentence - "Locations for this vendor not defined". What does this mean and how do I eliminate or continue since I now can only go back to the e-mail. Using Firefox with AT&T Yahoo & Windows XP me

    Hello.
    Does this happen on other browsers (Internet Explorer, for example) or is it specific to Firefox?

  • Preferance pane window keeps popping open when entering search or data into any fields. I'm also using 1Password and it happens when trying to enter a password

    I'm running on Mac OS X 10.7.4, Firefox 14.0.1. This issue didn't exist until this most recent Firefox update. Basically, a preference pane opens every time data is being entered into a field. It doesn't seem to be the same preference pane that you see when you open the preferences through the normal Firefox access ie. Firefox > Preferences. All of the choices listed in this particular preference pane are specific to Firefox though. I have a screen capture that I could include if wanted. When using 1Password the pane appears, when entering a search in the search bar near the address bar the pane pops up, when entering data into any field as I am now filling in this detail report the pane also pops up. It's quite annoying. Any advice? I'm going to systematically attempt to quit any add-ons and see if that makes a difference. I ave already tried doing a reinstall to no avail.

    I think a screen shot would be helpful. There is a box below the compose area of a reply to upload files.

Maybe you are looking for

  • [svn] 3045: Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls'

    Revision: 3045 Author: [email protected] Date: 2008-08-29 10:59:25 -0700 (Fri, 29 Aug 2008) Log Message: Fix FB-13900: Expression Evaluator: 'is' and 'as' expressions return 'Target player does not support function calls' Ticket Links: http://bugs.ad

  • About FCE and memory

    i have a powermac G5 1.8 GHz with a dual processor. i recently bought more memory for it (2 GB) because i do a lot of video work in FC. This is the first time using final cut since ive added more memory to my machine and i am trying to render a very

  • Flash capacity and hidden files

    I am about to order a new Mac Pro and am trying to work out whether to get 512 or 1TB flash storage I have an 2007 MP, 4 drives in it but looking at the main drive and its content I cannot account for all of the used space. The main (boot disk) shows

  • G4 MX 460 help needed

    I recently picked up one of these now I can't get it to work. My system AMD Athlon 950, 512 megs of SD RAM 133mhz previous card Voodoo Banshee 16mg When I install the card and turn on my computer there are no obvious errors. Once it has gone through

  • Qty requested

    Hello All, I need to develope a shipping Performance report for which i need to know some of these fields. Cross company Purchase Order. Delivery date (requested by the company who is placing the purchase order). Qty requested. Value of the Qty reque