Not displaying is not a field of image if image not selected not

I have a web application that has an image field that may or may not have the selected photo. I try to hide the DIV element that includes the picture if the photo is not present.

I found a jquery code that is supposed to achieve this for me, but can't make it work.

My DIV in the layout of the detailed web app is

< div class = "phto" >

{tag_photo}

< / div >

At the end of the layout, I have the following code

< script type = "text/javascript" >

<! [CDATA]

If ($('.phto').is (": void")) {}

$('.phto').hide ();

}

[]] >

< /script >

However my DIV remain visible - see the example of element app with no picture to http://panelfab.com.au/product-profile/product-1 where you can see that the description is still indented of the DIV to hold the photo. I don't want basically, I want the DIV to act even as display: no condition.

I actually use the correct code or is it just that I forgot something?

Ah... what I can guess, maybe the vacuum selector does not work because there is white space between tags (so it's not technically empty.)

try to replace what you have in the document.ready with this function:

if ( $.trim( $('.phto').val() ) == '' ){
     $('.phto').hide();
}

Also, I always get a javascript error for

document.getElementById("loginP") is null
document.getElementById("loginP").style.display='none';

Also, for some strange reason, I get an error of illegality with one of your style sheets.

Tags: Business Catalyst

Similar Questions

  • How to display the serial No. field not to mention that the search results displayed

    How to display the serial No. field not to mention that the search results displayed

    Hello

    You missed to add the varstatus property in your table

    Try with this code:


    lines = ' #{bindings. " SahajDetailVO1.rangeSize}.
    emptyText = "#{bindings." SahajDetailVO1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." SahajDetailVO1.rangeSize}.
    rowBandingInterval = "0" id = "t1" styleClass = "AFStretchWidth."
    varStatus = 'vs' >



  • "The cover image you selected does not fit this folio." - but should be.

    I get the error message.

    "An error occurred during the loading of an image. The cover image you selected does not fit this folio. There must be no more to 1024px in height and width 768px. »

    Jpg files horizontal and vertical I'm trying to download for coverage are exactly the 1024 x 768 and vice versa. I have tred exporting to different presets and resoluitions and Folio Builder still will not accept them.

    I know I ran this problem before and I have searched for it in this forum thinking it would have been displayed in all but impossible to find aynthing - sorry if I'm double posting.

    I think I realized my problem... I got 96 DPI selected, when it should have been 72. stupid.

  • Message text to display in the carousel when no image extracted from the database

    I'm creating a carousel using pictures from a database table. All the fields in the table contains no images. Currently, it displays a cross mark on the image.

    For areas that I want to display text can be 'No Image'. To do this, I put the property 'EmptyText' of the Carousel component. But the text does not appear. Also, I do not wish the crossroads brand to display instead, I want only the text "No Image" look upwards.

    JDeveloper version - 11.1.1.7.0

    Fig-cross brand displayed for image empty

    1.jpg

    Fig-EmptyText property set for the carousel component

    2.jpg

    3.jpg

    If I understand correctly, emptyText shows as if the entire dataset is empty, not a picture (if any rows in the resultset). It's same with af:table. Maybe I'm wrong, however.

    You can use an 'empty' image: for example to put an image of 'empty' (tailored to your needs, is perhaps 'no image' text or an icon etc.) in your project resources folder. Then, in your application, replace "null" for path to this image and it will be dispalyed instead of the generic "missing image" icon in the browser (Yes the red X is icon generic browser for missing images).

  • Can a dynamic action of type 'alert' display a value of field without javascript?

    Hello

    can a dynamic action of type 'alert' display a value of field without javascript ( alert ( $x (P '200_OP').value)); ?

    What should I write in the 'text' section to display in the alert, the value of P200_OP for example?

    Gianpaolo cordially

    Hi gianpagi,

    gianpagi wrote:

    I know that with "run JavaScript Code" works. My question is about action as 'alert '.

    Dynamic action "Alert" is expected to this only the string to display in the alert. May not be able to access the current value set in a page element.

    Therefore, "Run the Code JavaScript" only works in this case where your can integrate the current values of the DOM html elements

    If you notice that da 'Alert' request 'Text' and 'Execute JavaScript Code' DA 'Code' request to be executed.

    Kind regards

    Kiran

  • Display of the conditional field of Apex Oracle

    Hello

    I created two Wizard page in Oracle Apex.

    I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

    Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

    On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

    SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

    I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

    Thank you

    Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

    It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

    Howard

  • How can I stop getting aclk (GIF, 1 x 1 pixel image) when selecting certain pages

    How can I stop getting aclk (GIF, 1 x 1 pixel image) when selecting certain pages

    This has happened

    Don't know how many times

    is opening a few pages

    Some firewalls like Kaspersky can block content and send a GIF 1 x 1 instead.
    Kaspersky":" Protection > firewall > Filtration System: disable the banner "Ad Blocker"

    See Configuration of Kaspersky Internet Security and that configure the firewall so that Firefox can access the Internet

  • Windows7 Desktop only shows black color whenever any substantive theme or Image are selected in the customization

    in my Windows7 Desktop only shows black color whenever any substantive theme or Image are selected in the customization. Plese geve me a solution

    Hi Odette.

    Thanks for posting your query on Microsoft Community forum.

    Question has started happening recently? If YES, did you of significant changes to the computer before this problem?

    The question could arise for various reasons, including corrupted cards, damaged TranscodedWallpaper.jpg file, Remove background images is selected in the Control Panel, etc. To diagnose and troubleshoot these causes of the problem, I suggest you try the steps outlined in the following link and check if the problem persists.

    Impossible to change the background image in Windows 7

    In addition, please refer to the steps provided by Shawn "Cmdr" Keene [MVP] replied on January 6, 2011 in the following thread link: "".

    I am unable to change the background of color United in my windows 7 ultimate

    Additional information:

    Why can't I change my desktop background?

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • Mac OS 10.6.8 - Photoshop CS5.1 after years of perfect use, suddenly I'm unable to select a layer by clicking on the image and select it in the layers palette.  Solve this problem for me and I'll buy you a new car.  With our thanks, David Heidelberge

    Mac OS 10.6.8 - Photoshop CS5.1

    After years of perfect use, suddenly I can't select a layer by clicking on the image and select it in the layers palette.

    Solve this problem for me and I'll buy you a new car.

    With our thanks, David Heidelberger

    Hi David

    Have you checked your settings to automatic selection in the upper left of the workspace?

  • Need to fill out the field of text based on the selection after pressing an event in the OPS

    Dear all,

    I have a requirement as below

    I have a table of tip having a LOV field and I have a button to add a line so that I can add a row more lov field and after I am pressing a button to insert the LOV data into a table, my requirement is in the top of the page that I have text field, I have to fill the selected values of LOV in below format in this area.

    EX:

    Table of the advance:

    Row1:ABC

    Row2: DEF

    In the text field, I need ABC-> DEF in this format after pressing a button, and that the value should insert into the table in this form, please help me on this

    Thnaks

    Hello

    Advanced table: (SEE: SampleAdvnacedVO)

    RowNo ColLovValue

    1 ABC

    DEF 2

    Create an OAMessageTextInputBean (Id - ValueItm) and

    Set Property Render ${oa. RenderVO1.Render} with initial value as a BOOLEAN. FAKE.

    Button: Send

    Create a partial fire Action by clicking on the "submit" button

    Code central:

    Of the PFR:

    {if ("submitClick". Equals (PageContext.GetParameter (EVENT_PARAM)))}

    am.invokeMethod ("executeRenderVO");

    OAViewObject vo = am.findViewObject("SampleAdvnacedVO1");

    Line = vo.getAllRowsInRange ();

    String value = null;

    SampleAdvnacedVORowImpl voRow = null;

    for (int i = 0; i)< row.length;="">

    {

    voRow = rank (SampleAdvnacedVORowImpl) [i];

    value = value + "-->" + voRow.getColLovValue ();

    }

    System.out.println ("values-" + value);

    OAMessageTextInputBean valueItmBean = (OAMessageTextInputBean) webBean.findChildRecursive("ValueItm");

    valueItmBean.setValue (value);

    }

    GOT the Code

    public void executeRenderVO() {}

    OAViewObject vo = getRenderVO1();

    vo.executeQuery ();

    vo.insertRow (vo.createRow ());

    Line OARow = (OARow) vo.first ();

    row.setAttribute ("to make", Boolean.TRUE);

    }

  • Edited in Photoshop does not correctly display in Lightroom after recording the images

    Hello

    I recvently EU cloud Adobe and upgraded from Lightroom 3 or 4.  Since the upgrade I had problems with Lightroom not correctly display images edited in Photoshop.  Instead of the photoshop image, it creates a new jpeg image and appears in the library.  the PSD is not loaded into the library.

    I take a jpeg image of my library and shoosing the change based on Photoshop.  By selecting Edit a copy, I'm tried with the original and edit a copy with lightroom adjustments as well as with the same results.

    In Photoshop, I duplicate the base layer, the image upscaling, running some filters, addition of volunteering adjustment layers.

    I save the image in Photoshop format in the original folder where the original jpeg was in the Lightroom library.  I record with maximize compatibility on.

    When I return to Lightroom, the catalog displays the two files, the original jpeg and a copy identical to it, NOT the new file in photoshop with alterations.  If I go in the folder images occupy in the Finder using the Finder command show two images link to the same original jpeg format.  The modified file to photoshop is there in the folder but does not appear in Lightroom unless I drag and drop it.

    I've disabled all the filters and ensured that the sort is sort by name.  The image does not automatically appears in Lightroom after mounting.  Any suggestions?

    Thanks for any help!

    PS. I'm not looking for the subject, and there are discussions since 2007 and lightroom 2 but their solution was to start from scratch basically and I have a carefully labeled, starred and labeled catalog of more than 30 000 images and really don't want to do that

    Images that are edited in Photoshop will be displayed automatically in Lr only when the image file saved in Photoshop is identical to open LR.

    You say you open a jpg of Lr, then edit in PS-among other things-adding a few layers. Layers are not supported in JPG format, so you must either save it as a psd or a copy in jpg.

    In both cases, is not the same image as the one opened in Lr file, so it will have to be imported into Lr appears. If flatten you your image after editing in PS and then do a to your JPG - not a - it will be displayed in Lr.

    PS: the only exception is when you open a raw image from Lr into PS and you save it to PS in the format of file specified in Lr for external mounting. The saved file is automatically displayed in LR.

    Post edited by: web-Weaver; PS added

  • When I open Photoshop CS6, the image does not appear in Photoshop. The image IS open, i.e. the name of the file is displayed on a tab and the image layers appear in the layer panel. What is going on?

    Photoshop and Bridge is open as usual. But when I open an image, the image does not show in the area of the image. The image filename is show in a tab and the spectacle of layers in the Panel layer. What is happening and how to fix this.

    I solved the problem. It was somehow connected to my using Microsoft

    photos of theme. I put Windows to use the basic theme and the problem

    went. Thanks for the suggestions.

    HA!

  • Internet Adobe forms do not display the data in fields

    This form, linked to our database online, allowing to operate correctly when opening. Now, all fields are empty. The fields are visible by selecting the new option 'open with different Viewer' - but that downloads the form - which is not a step we want that the end user to have to do. Still once, several years of data in this form has been able to be viewed online - now he must open, then download it to view the fields filled. Why is this? What steps can we take our part to restore the end previous result to met data visible WITHOUT downloading the form fields?Untitled-1.jpg

    You must configure the browser to open PDF using Acrobat or Reader. You can see the top right button that will allow you to do. Firfox now has a built-in PDF reader, and it is not very good.

  • Display data in a field is not there after a saveAs

    I'm filling in a field in a couple of drop-down list boxes and I want to include this information when the user clicks on the Save as button.  I can't get the information to stay after him save as is over.  I have attached my form.

    Ok

    The outputText object has the following in the docReady event that resets the field actually worthless ("'") when the form is reopened.

    outputText.rawValue = "";
    

    Comment that line out and it should work.

    Good luck

    Niall

  • Photoshop images are not displayed hardware - tiled and lines distort image.

    Just downloaded CS4 design standard. Photoshop images are tiled-look like a test pattern. Is this a problem installation or a compatibility issue?

    Updated for CS3 which had no problem.

    As long as you have downloaded the latest drivers from the Web of ATI site and installed them, then you have installed the driver properly. If you used another method, then your driver is probably still out of date or simply broken.

    If you have installed the latest driver, then, as Chris has said, there is probably a bug in the driver and you'll want to disable OpenGL drawing. See the "Troubleshooting" section GPU and features of OpenGL and Limitations in Photoshop CS4 for more information.

Maybe you are looking for

  • I need to create a second library for locations other than itunes music files?

    Mac book air with library itnes. Should high resolution I create a second library of music to not get data via itunes without loss to music downloads?

  • My 5s recently started running HOT

    In the last two weeks, my 5s has started to run really HOT when using Safari and photo editing, HELP!

  • Almost dead Satellite P10

    When I turn on the laptop the power light lights up and the hard disk light flashes then nothing, the screen is blank, it is as if the laptop is not even read the bios. It's already happened and the motherboard was replaced, exaggerated, I think. Las

  • is identical to any VNC speed of Back to My Mac?

    First question, is the CCMM a VNC? Is equivalent to the speed of Back to My Mac all VNC, or would a VNC applications faster and better? CCMM is more secure than applications on the App Store? Thank you j

  • 32-bit to 64-bit upgrade RAM problems

    I recently went from 32 bit to 64 bit of Windows 7 Pro following the 'unofficial' resettlement Wiki (the second time around) to the letter.  Here what's happening: bought two sticks of 4 GB of DDR3 1600 MHz RAM 1.5 volt.  It is fully recognized in BI