Display image if the data field is not empty

I try to mask an image, depending on whether or not a certain area (the link behind this image) is empty.
While I'm not a guru-script I can only imagine that it has something to do with the fact that I have mix javascript and VBscript in a page?

I used something like this before and it worked, but it doesn't seem to work in this case? :
< % dim strStory
strStory = rsProduct ("fld_prodStory")
If strStory <>"" then
% >
HERE IS THE PART TO HIDE
< %
End if
% >

The image I want to hide if the database field is empty:
< a href = "< % = (rsWatch.Fields.Item("fld_wStory")." "(% De la valeur) > ' Mm_swapimgrestore" onMouseOver = "MM_swapImage (' here '", ' Images/ico_docs_o.jpg', 1) "> < img src =" Images/ico_docs_u.jpg"alt ="Uitleg"name ="Uitleg"width ="26"height ="26"border ="0"> < /a >"

Thanks in advance for the help

jrolf

Try changing your line:

If strStory <> "" then

Also, check if the strStory is not Null.

Brendan

--
______________________________________________
Rate your experiences with your manufacturers UK and Ireland to
http://www.ratethebuilder.co.UK
=========================================

"jrolf" wrote in message
News:e3nfa6$DT8$1@forums. Macromedia.com...
> I'm trying to hide an image, depending on if a certain field (the link
behind
(> This image) is empty or not.
> While I am not a guru-script I can only imagine that he has something to
do
> with the fact that I have mix javascript and VBscript in a page?
>
> I used something like this before and it worked, but it does not seem
work
> in this case? :
> < %="" strstory="" dim=""> < br=""> > strStory = rsProduct ("fld_prodStory") < br=""> > strStory if <> "" then < br=""> > %>
> HERE IS THE PART TO HIDE
> < %="">< br=""> > End if < br=""> > %>
>
> The image I want to hide if the database field is empty:
>">
' > Mm_swapimgrestore.
> onMouseOver = "MM_swapImage (' here '", ' Images/ico_docs_o.jpg', 1) ">"<>
> src = "Images/ico_docs_u.jpg" alt = "Uitleg" name = "Uitleg' width = '26'
height = "26".
> border = "0" >
>
> Thank you in advance for help
>

Tags: Dreamweaver

Similar Questions

  • How to display image in the data from the blob column item

    Hello
    This is pavan, I try to upload images in the tables and display.
    I was able to download the data in the table using this http://www.apexninjas.com/blog/2011/09/uploading-and-displaying-images-in-apex/
    but I'm unable to display in the report or item and also I have mentioned these http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_util.htm#AEAPI129 post but I din't get how to put an element valid POINT with the type of FILE that contains the type of source of column DB application page name.
    and also, I raised the thread https://community.oracle.com/message/9616066that also in response that he has changed the type of data that we need I don't have.
    can someone help me on this please
    Kind regards
    Pavan

    creating manual p3_image point of page that is display in form of image display and check point p3_image for more information how image

    in your application.

    Leave.

  • Displaying the time in the Date fields only when it is available

    Is it possible to display the component "hour" of a field of date only when the component "hour" is available? I know that the default behavior of not showing the component "hour" of the date fields can be changed by setting the date format NLS in the preferences to include the time as well. However, what causes the fields without component to appear with zeros. (For example: If nls date format is DD-MON-RRRR HH24:MI:SS, a date with no field component "time" will appear as * 1 January 2008 00:00:00 *). It is a configurable option in Quest SQL Navigator, with 3 options available, that says "(afficher l'heure dans les champs date: a) (never, (b) when available or c) always, who miss me dearly in SQL Developer."

    Thanks in advance for your suggestions,
    KLS.

    No, but you can vote on the feature to http://htmldb.oracle.com/pls/otn/f?p=42626:39:4403831115154402:NO:P39_ID:16221 request to add weight to implementations in a future version.

    Kind regards
    K.

  • Images in the media browser does not appear in chronological order...

    We went just to Adobe Premiere Pro. The images in the media browser does not appear in chronological order. In the media browser window, there is a drop-down list labelled 'name', but nothing else. How can we get the images to display in chronological order?

    Short answer: no

    Its digital or alphabetical.

    Once in the project window, you can sort by date.

  • Help with a script for the date field

    Is this possible when the display of a date field is not also: date {EEEE, MMMM D, YYYY}

    then

    Message: "Please select a date from the calendar to the date.

    and focus on the date field

    Thank you

    I thought the event output, if you change the this.rawValue to xfa.event.change, you can try to use the calculate... event, which would mean that they get the message earlier.

    Anyway they will always be able to cut-and - paste a date if it is in the correct format.

    Bruce

  • How to replace a "null" in the date field to zero

    Hi guys,.

    I'm a lil stuck with this problem.
    I have a requirement where I need to replace a null value in the date field to zero.
    For example,.

    Cancel_date Cancel_date
    20120301 20120301
    20120908 20120908
    value null-> > > > > 0


    Thank you
    Anita

    Hi, Anita,.

    0 is not a DATE, so you cannot view it in a DATE column.
    There is no '0' display problem in a VARCHAR2 column, so use TO_CHAR to display dates, even if the default format, it's exactly what you want.

    SELECT     NVL ( TO_CHAR (date_column, 'YYYYMMDD')
             , '0'             -- or '       0', if you want it right-justified
             )          AS date_string
    FROM     table_x
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Calendar on the left of the Date field

    By default, the calendar is displayed to the right of the DateField.

    I can get it on the left without rewriting of parts of the DateField component?

    As far as I know is not possible; Only if you rewrite the date field in the date selector (left) + label (right) - If you need to rewrite the code

  • Date field will not update

    Apex using pre-packaged "Group calendar" app I work on page 10. I updated the form to include a custom date field and added all the code to the EBA_ca_api package

    My problem is that my custom date field will not retain the value on the edition of an event. I have other custom fields that are not date fields (field numbers and text) that update without any problem...

    How can I update my date fields?

    Update:

    I am sure that the issue is somewhere in the package, the values are not updated for some reason any.

    The pre-existing app code uses this statement

    If to_char()c1.event_date_time,' DD-MON-RRRR HH:MIam ') ! = TO_CHAR ()p_event_date_time ' DD-MON-RRRR HH:MIam '( ) then

    Update EBA_ca_events

    set event_date_time = p_event_date_time

              where event_id = p_event_id ;

          end if ;


    and it works for this field when updating. I tried to use this code on my custom date field and it didn't work, so now I'm looking for something like this

    if TO_CHAR (nvl(c1.event_due_date,'0')) ! = TO_CHAR (nvl(p_event_due_date,'0')) then

    Update EBA_ca_events

    set event_due_date = p_event_due_date

               where event_id = p_event_id ;

    end if ;  -Copy the following code causes an error when you try to apply changes (not a month valid)


    Because the following code works and updates to my date no fields


    If nvl(c1.event_not1,'0')! = nvl(p_event_not1,'0') then

    Update EBA_ca_events

    Set event_not1 = p_event_not1

    where event_id = p_event_id;

    end if;

    Does the code work if I'm on the right track? -At the end of the day what I'm trying to do, it is to be able to add a date field for the application of group calendar pre-packaged on the creation form and event on page 10, and then later change this event and updated it to the database.


    Richie V wrote:

    No I did not, but do you know how to fix the error happen and allow the new field custom_date to be edited and saved in the database?

    Thereafter. The missing pieces of the puzzle were the type of the values concerned was TIMESTAMP WITH LOCAL TIMEZONE, and that type conversion had already been made in the process of page APEX. Therefore, the required code in the package:

    -- custom date code
    
    if nvl(to_char(c1.custom_date,'DD-MON-RRRR HH:MIam') , 'X')!= nvl(to_char(p_custom_date,'DD-MON-RRRR HH:MIam'), 'X')
    then
        update EBA_ca_events
        set custom_date = p_custom_date
        where event_id = p_event_id;
    end if;
    
  • Change the dates overlap do not overlap

    Oracle 11.2

    Entry:

    WITH
        Data(G1, G2, S, E)
    AS
        (
         SELECT 'A', 'A', DATE '2014-01-01', DATE '2014-12-31' FROM Dual UNION ALL
         SELECT 'B', 'A', DATE '2014-01-01', DATE '2015-01-01' FROM Dual UNION ALL
         SELECT 'B', 'B', DATE '2015-01-01', DATE '2015-12-31' FROM Dual UNION ALL
         SELECT 'C', 'A', DATE '2015-01-01', DATE '2016-06-30' FROM Dual UNION ALL
         SELECT 'C', 'B', DATE '2016-02-29', DATE '2016-12-31' FROM Dual UNION ALL
         SELECT 'C', 'C', DATE '2016-07-01', DATE '2017-12-31' FROM Dual
        )
    
    
    
    
    

    Desired output:

    G1 G2 S E
    AA1 JANUARY 1431 DECEMBER 14
    BA1 JANUARY 14JANUARY 1, 15
    BB2 JANUARY 1531 DECEMBER 15
    CAJANUARY 1, 1530 JUNE 16
    CB1 JULY 1631 DECEMBER 16
    CC1 JANUARY 1731 DECEMBER 17

    The first two fields are groups. The third is the start date must be after the end date of any previous record in the same groups. She is not after it, should move a day after her. The fourth column is the end date and never changes.

    In this example, B & B amended by one day because B / ended the same day, he began.  C/B moved a few months after changed in a year, in order to be after C/C c/a and C/C.

    I see related questions in the forum and I am trying to understand them (it takes a little click) Although it seems a bit different in that the date must change, not be deleted.

    WITH

    Data (G1, G2, S, E)

    AS

    (

    SELECT 'A', 'A', DATE ' 2014-01-01', DATE ' 2014-12-31' FROM dual UNION ALL

    SELECT 'B', 'A', DATE ' 2014-01-01', DATE '' 2015-01-01 FROM dual UNION ALL

    SELECT 'B', 'B', DATE "2015-01-01', DATE ' 2015-12-31' FROM dual UNION ALL"

    SELECT 'C', 'A', DATE "2015-01-01', DATE '' 2016-06-30 FROM dual UNION ALL"

    SELECT 'C', 'B', DATE "2016-02-29', DATE ' 2016-12-31' FROM dual UNION ALL"

    SELECT 'C', 'C', DATE "2016-07-01', DATE ' 2017-12-31' FROM Dual"

    )

    Select g1,

    G2,

    largest (lag (e + 1,1,s) over (partition by order g1 g2, s)) s.

    e

    from the data

    /

    G G S E
    - - --------- ---------
    AT A JANUARY 1, 14 DECEMBER 31, 14
    B A 1 JANUARY 14 JANUARY 1, 15
    B B JANUARY 2, 15 DECEMBER 31, 15
    C A 1 JANUARY 15 JUNE 30, 16
    C B 1 JULY 16 31 DECEMBER 16
    C C 1 JANUARY 17 31 DECEMBER 17

    6 selected lines.

    SQL >

    SY.

  • How can I automatically populate the date field after only one "digitally signs" a .pdf form? Help, please! Thank you!

    How can I automatically populate the date field after only one "digitally signs" a .pdf form? Here's a sample:

    _ Digital Signature___ (signs), Date (Auto-remplit)

    Under field properties of the signature on the signature tab, you can use a custom script, like this:

    this.getField("Date").value = util.printd ("mm/dd/yyyy", new Date());

    You know, however, that a digital signature always displays the date and time, it has been applied?

  • Problems while extracting the hours of the Date field

    Hi guys,.

    We hope that you do well.

    I am facing some problems during extraction of the hours of the date field. Here is an example of my orders table:-

    Select * from orders;

    Arrival time of Order_NO product name
    1 computer Office November 20, 10 10:10
    2 November 21, 10 17:26:34 portable
    3 22 January 11 printer 08:10

    Earlier, it is stated that the daily number of orders take place in the roll of the order, I used to write a query

    arrival_time > = trunc ((sysdate-1), 'DD')
    and arrival_time < trunc ((sysdate), 'DD')

    The above query gives me yesterday how many orders have been been held.

    Now I have the new requirement to report on every 4 hours the number of orders will be held. For example if the current time is 08:00 IST then the query must extraction from 04:00 until 08:00 how many orders took place. The report will take place at 12:00 IST which will give me an order took place from 08:00 until 12:00.

    The report will be run every 4 hours per day and generate report of orders taken place for the past 4 hours. I have a programmer who will run this query every hour, but how to understand to get the order at the request of details who arrived for the past 4 hours. I'm not able to do this using trunc.

    Can you please help me how to make this happen. I checked "Extract" also, but I am not convinced.

    Help, please.

    Thanks in advance
    Aalami

    try something like

    with testdata as (
      select sysdate - level/24 t from dual
      connect by level <11
    )
    
    select
      to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') s
    , to_char(t, 'DD-MM-YYYY HH24:MI:SS') t from testdata
    where
    t >= trunc(sysdate, 'HH') - numtodsinterval(4, 'HOUR')
    
    S     T
    19-06-2012 16:08:21     19-06-2012 15:08:21
    19-06-2012 16:08:21     19-06-2012 14:08:21
    19-06-2012 16:08:21     19-06-2012 13:08:21
    19-06-2012 16:08:21     19-06-2012 12:08:21
    

    trunc (, 'HH') truncates the minutes and the seconds of the date.
    Extract the hour only works on timestamps
    concerning

    Published by: chris227 on 19.06.2012 14:13

  • Isolate the Images in the Parent folder, but not in the subfolder

    Sometimes I have imported images in LR, or moved suburbs autour and seem to have some of the images in the parent folder, but not the subfolder. Is there a way to isolate the photos not associated with related a subfolder (but in the parent), so I can move to the appropriate subfolder. I know that I can right click on the picture and find Exployer, but it does not find that are not associated with a sub. I have a relatively complicated system of organization subfolder, with 10 k + photos. Any help would be appreciated. Thanks, Phil

    Sorry, I should have said that you must uncheck it. Then you get a style Explorer display more.

    John

  • How do I run a script only if the field is not empty

    How do I run a script only if the field is not empty

    Well well, thanks to you, I had a full date on separate days, the months and the years in different areas. But now, I have a problem, as PDF has several fields calculated with script if you enter the date calculated by all other areas, which have separated and undefinied gives me does not want to put this to not always use this field. I tried to put one conditional if else but I sale. Esto, this is what I'm wearing

    var datesol = event.value;//declaramos the variable

    If (datesol = "") {}

    this.getField('yearsol').value = "";

    this.getField('monthsol').value = "";

    this.getField('daysol').value = ""}

    else {}

    var array_datesol = datesol.split("/"); / / separamos esa con date the split funcio

    this.getField('yearsol').value = array_datesol [2];

    this.getField('monthsol').value = array_datesol [1];

    this.getField('daysol').value = array_datesol [0];

    With what they do not separate them now.

    Help please

    As mentioned, you cannot use

    If (datesol = "")

    because that sets the value of datesol to «» (you will need to double for the comparison operator =)

    If you want to run code only if it is NOT empty, while it takes:

    If (datesol <> "")

  • given the date and time not set when computer starts. also have a problem with typing

    by turning on my computer, sometimes it lights up at all, and then I try several times so that it lights up. When switching on the main screen, it says error due to the date and time not set and puts my computer starts in safe mode. When I am that I then have to set the date and time again. Why this keep happening?

    on my second question that I have is when I type an email or anything, my writing will just jump on another line and start typing in the middle of other sentences. Why is it jump around like that?

    You may have a failed in your motherboard CMOS battery.

    It's a battery power supply NET, size piece that keeps your system settings when your computer is off.

    They cost about $5 to replace.

    http://www.computerhope.com/issues/ch000239.htm

    How to replace the CMOS battery in the above link info.

    See you soon.

    Mick Murphy - Microsoft partner

  • Image of the attribute: file is not found in the list of the packaged files:

    When Build in Webworks already, I still have the following 2 lines in the config.xml file, but it said ' image of the attribute: file is not found in the list of the packaged files.


     

    My full config.xml:


    "xmlns ="http://www.w3.org/ns/widgets "
    xmlns:CDV ="http://cordova.apache.org/ns/1.0" > "
      CarlogPro
      Service and gas logs
      http://Cordova.IO "> XpertLulu"
     
     
     
     
      subdomains of http://xpertlulu.com"="true"/ >
     
     

    Need help!

    Nevermind, I've upgraded v2.0.0.54 to v2.0.0.71 Webworks and it worked.

Maybe you are looking for