Show hide within a repeat region

I am trying to apply a show - hide a div within a repeat region.

The problem is that only the first record of the repeat region seams to work properly, on all other theres no such think as hide. Why?

Here is the link:
http://www.Cantinho.org/admin/Cantinho/find_search_result.php

Hope someone can help me here.


Thank you


In the doors pop music: "The End."

We will make a summary of it:

OBJECTIVE OF THIS POST 'WHOLESALE ':
Make a show/hide button details within a repeat region, so when the user clicks on this button the details of this specific record inside the repeat region appear and disappear. (alternating).

WHAT DID NOT WORK?

1)
PROBLEM:
The effect (in the menu effects of dreamweaver), despite the fact that we click on toggle option, it switches at all.

SOLUTION:
It is a known bug in the Spry effects.js file. We need to update the .js file so the .js can switch.
Download here: http://www.cristic.ro/samples/SpryEffects.js
Thank you sailor.

2)
PROBLEM:
The effect only occurs on the first record, nothing happens on the other!
SOLUTION:
Joris sugestion:
Apply a php counter.

PROBLEM 3):
The initial state of the 'details' div is the SHOW, but we need them to HIDE. (to view the details, only when user whats to see).
SOLUTION HAS FAILED:
Apply a CSS like this:

Why? (don't know, maybe because we cannot apply a name dynamic div inside a CSS or maybe because I don't know how to do)

A SOLUTION THAT WORKS:
Suggested by Joris again:
Apply to the special div eatch that you want to hide (since we have a repeat region it will be only)
and apply to this div style = "" view: no ' property. "

Thank you very much!!! JORIS! REALLY!
Thank you for your time, your patience and your lessons. :)

Tags: Dreamweaver

Similar Questions

  • fadeIn DIV jQuery (or reversal) within the repeat region

    Hey all. I just started using the repeat regions and am stuck creating a substitution effect. I have a database of products/images and am showing images of an inch in the repeat region by using < img src = "images/thumbs / <?" PHP echo $row_Recordset1 ['productId'];? ' > .png ' and everything works fine. What users flipping the thumb, I want a DIV containing a border orange to fade using jQuery so I can't record a second image with a border for each thumbnail. Normally with static images I would say something like... $("#thumbWrap").hover (function () {$("#border").fadeIn etc, but I have no idea how to implement this kind the DIV border fades independently for each inch in the repeat region.}) Can anyone suggest the best way to achieve this? Thank you guys

    The jQuery code you have posted here is based on ID selectors, but an ID can be used only once on a page. Use classes instead. Something like this might work:

    $('.thumbWrap').hover(function() {
        $(this).parent('div').fadeIn();
    });
    
  • image of exchange within the repeat region

    I am trying to configure a swap image behavior of in a dataset of the repeat region using php/mysql model. Someone at - it help him? See you soon.

    Thank you Rob, who did it. Code below.


    {? >}
    &productID=" onmouseover="MM_swapImage('productImage','','images/',1)" onmouseout="MM_swapImgRestore()">

  • Show/hide region when the drop-down list is changed

    Hello

    I need show/hide a region when dropdow (selection list) is changed.

    I used dynamic action:

    Event : change
    Selection Type : Item(s)
    Item(s):P50_my_list
    condition : JS expression
    $v('P50_my_list') == 1
    
    True Action :
    Action : Execute JS Code
    Code : $('#region_name').show();
    
    // OR use Action ==> Show
    
    

    False Action :
    Action : Execute JS Code
    Code : $('#region_name').hide();
    
    // OR use Action ==> hide
    

    But the region has still shown!

    Also, I used a JS function (in the dynamic action of the place) but I met the same result.


    function showHideRegion(pValue)
    {     var show_or_hide = $x(pValue).value;
        if (show_or_hide == 1)
          {$('#ALTERNATIVEN_LIST').hide();}
        else
          {$('#ALTERNATIVEN_LIST').show();}
    }
    
    
    

    Hello

    I solved the problem with the js function:

    function showHideRegion (pThis, pValue)

    {var show_or_hide = $x (pValue) .value;}

    If (show_or_hide == 1)

    {

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.display = 'none ';

    } else {}

    var element = $x_UpTill (pThis, 'DIV');

    Element.style.Display = "block" ;}

    }

  • Problems with the layout themed to show/hide the region 25

    Hi all, Ive hit another question that I hope someone can help with...

    APEX 4.2.4 on XE... Theme 25.

    I've reproduced this login as apex.oracle.com [email protected] password newpass 291 3 application page.    (admin/admin is also implemented as a UN/pw)

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    Thank you very much indeed

    Richard Legge wrote:

    I have a skin region see the this Im using as a region of select query. There are a number of boxes, and a couple of display only fields that have values returned in it.

    I I set out them in a row, and after 3 items, I start a new line with the other 3 articles... that is

    X X X

    X X X

    Except that with the region set to show/hide and the model of the value without tab, no sidebar I get.

    X X

    X

    X X

    X

    If I change the standard region it works OK, and if I change models, it seems ok.  Ive tried all the combinations of columns, etc, but nothing helps...  Im trying to figure out if Im missing something, or I've hit a bug any... (almost certainly the old...) ...

    The difference between the models of the region is that the Standard region has defined Points of view and the show/hide does not work. This is the mysterious properties that Oracle has not yet bothered to document. Their omission of this model is indeed likely to be a bug.

    Create a copy of the region show/hide template and add a point of view for the body of the region (content):

    Name: Body of the region

    Substitution of template: BODY

    Grid Support: Checked

    The maximum fixed grid columns: - 1


    Use the new model to show/hide for the region of select query.

  • develop/tab Show / Hide regions

    Try to do a dynamic button that could expand all show and hide regions on the page once click. and tabs them when you click New.

    I was wondering if anyone knows how to do this... ?

    Published by: PandaOracle on 8 June 2012 10:49

    Just use javascript to toggle below code (all show/hide all)

    $('.t1HideandShowRegionLink').children('img').click();
    
  • Hide/show dynamic Action on the region, not hiding title area

    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:
    Region Header
    <div id=XYZ>
    
    Region Footer
    </div>
     
    In the DA dom object is now XYZ

    Thanks in advance
    PaulP

    PaulP says:
    I use APEX 4.0.1 with topic 13.
    I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?

    To identify the area to the DA, I use the following method:

    Region Header
    
    Region Footer

    Lose the header/footer code, it does not act as a container for the whole region. Use a static region ID as selector of DA.

  • Show/hide regions

    I've been struggling with this one for awhile and it drives me crazy. Any help is greatly appreciated. What I'm trying to build a simple search with a single parameter page and a results page. The two pages work as they're supposed to another only when the user is not a record in my database, it will appear a message saying there is not one record found.

    I read and read and I no this is the region to show/hide if it is empty. I highlighted the text I want the user to be able to see and try the show if recordset is empty. It does not, it is even not displayed it to be dynamic. Someone please help! Please, I beg you!


    I use Dreamweaver CS3, ASP and SQL Server

    > Good suggestions! I'll check out them. Do you think if I change the menu
    > It
    > will be ok? What I mean is if it works correctly, or should I leave
    > zero?

    The menu that you have will work, except when it isn't. That's why I said that I
    do not think that it is suitable for use on a site.

    > In fact I don't want you or not I wasn't a sense because of your picture I have
    > should
    > start. I think that your making fun of me, at least, I hope you are.

    Yes - I was joking.

    > don't have enough time now.

    Where do you find the time to do more?

    > I'll learn a little every day I hope that people like you to help me.
    > Thank you
    > new! :~)

    Good luck!

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "neebie" wrote in message
    News:g57sl0$89s$1@forums. Macromedia.com...
    > Good suggestions! I'll check out them. Do you think if I change the menu
    > It
    > will be ok? What I mean is if it works correctly, or should I leave
    > zero?
    >
    > In fact I don't want you or not I wasn't a sense because of your picture I have
    > should
    > start. I think that your making fun of me, at least, I hope you are.
    >
    > Also you were right about the code again once I have re-read
    > carefully my
    > update isn't very good lately, I have a lot on the spirit of ole and your also
    > right
    > when you said I need to learn some kind of server code, but my problem is
    > I
    > don't have enough time now.
    >
    > I'll learn a little every day I hope that people like you to help me.
    > Thank you
    > new! :~)
    >
    >
    >

  • Problem of changing the data within the rows in a repeating region

    I can't edit the data in a row, I install in a repeat region.

    I tried to delete the "editable" div and move all around, but without results.

    It shows and reproduces very well. But, the data cannot be changed.

    Here's the code.

    Hello Randy,

    This is expected behavior - you must bring the editable td elements:



    02/01/09
     
     
     
     
     
     
     
     

    Let me know if you have any questions on this subject.

    Best regards
    Corey

  • Show "hide / show region" after calculations

    Thank you in advance,

    I have a number of parts of the report "hide / show" on my page, and two reports are the research areas incorporated with them. What I'm hoping to do, is show a specific skin and region after calculations when it is clicked on the specific button for this area of research. I created a button with more appearing as its URL:

    JavaScript:doSubmit('GO'),hideShow('region3','shIMG3','/i/HTMLDB/Builder/rollup_plus_dgray.gif','/i/HTMLDB/Builder/rollup_minus_dgray.gif ');

    When the button is clicked, the page begins to update, then the region of h + s displays, but once the page finishes refreshing, the region closes upward. I wondered a better way to reload a page, then call the function hideShow? Thank you.

    Robert

    Published by: tread on April 28, 2009 08:16

    Hey

    Have you looked here?

    [http://www.oracle.com/technology/products/database/application_express/packaged_apps/packaged_apps.html#STICKY]

    See you soon

    Ben

  • Is there a keyboard short/shortcut to show/hide bookmarks bar?

    I would like to have in options > bookmark unchecked and a shortcut key, or key shortcut to show or hide the bar bookmarks.
    Checking takes room, and the score addons mouse autohide sometimes annoying when your going to type in the URL bar and not use the bookmarks.

    Y at - it a keyboard shortcut for this.
    Thank you in advance.

    Is there a keyboard short/shortcut to show/hide bookmarks bar?

    There is no shortcut keyboard corresponding to the bookmarks bar.

    'Alt' displays the menu bar
    ' Ctrl + / ' activates / deactivates the add-on bar
    "Ctrl + K" shows the search bar because it's his entry area.
    "Ctrl + L" shows the address bar because it's his entry area.

    But there are alternatives, and you can configure the zombie fashion with the extension 'hide automatically", then that is the only toolbar, hidden or not hidden, even if I don't do it.

    You can use F11 to toggle mode full-screen that hides the toolbars and the title bar.

    On Windows, you can use AutoHide - http://www.krickelkrackel.de/autohide
    which provides a window mode full ('zombie mode') with 'SHIFT + F11"similar to full screen, but within the limits of the window that allows you to display only the title bar, with the options I use with it always display bars tabs and addons in full screen or full window mode.

    In full-screen or full window, you can move the cursor to the top and see toolbars, use F10 or Alt to see the menu bar, use Ctrl + K to see the search bar, use Ctrl + L to see the address bar. To show the Favorites bar, you will need to show all toggle F10 or F11 to toggle toolbar.

    My bookmarks toolbar takes up very little space less vertical space that shows this before and after photo, see Articles 61 to 66 on the style in the following:

    You can make Firefox 6.0 look to Firefox 3.6. *, see numbered items 1-10 of the next topic difficulty Firefox 4.0 UI toolbar, problems (make Firefox 4.0 to 6.0, resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.

    It is much more beyond these first 10 steps in the list, if you want to make Firefox more functional.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • Captivate 9, sensitive slides on a Mac and a PC publish the slides, timed objects (show/hid) do not shown in the final html5.

    I have some 9 Captivate, sensitive slides on a Mac and a PC.

    When I published the slides, timed objects (show/hide) not shown in the final html5.

    Some slides contain objects such as some graphics (png), the arrows and text boxes that have a period of delay or show that for a given time.

    They work within Captivate when I executed the chronology, but do not yet show in the published code. I tried several different browsers.

    Any idea why these objects do not appear?

    Thank you, I have yet seen that I didn't just look.  Once, he toured. Jim

  • Show/hide HTML area with click of a button

    Hello

    is it possible to show or hide an HTML region if o want to use a button to hide or show the region?

    Can anyone explain it to me?

    Thx for all

    René

    Hi René,.

    You should be able to create a new button on your page, and you can define the Action of this button to "defined by the dynamic Action.

    Then when you are in page editing mode, you can create a "dynamic Action" declaratively without writing javascript.

    Follow the steps, something like:

    Action: click

    Selection type: button

    Real Action: (or hide)

    Assigned items: region

    Did you give the dynamic action a go?

    Amanda.

  • How to do vertical behaviors repeat region Server?

    I've done many "server behavior, repeat region" vertical list without any installation view, now, I'm a new, horizontal shows that makes no sense. Anyone know why and how to solve this 'bad behavior '?

    You have all the linesin the code of the table - this is why everything is horizontal:

  • repeating region of php email function doesn't work do not

    I have a form which should be sent by electronic mail and like products attached to it. However, I have a repeat region to list all products, but when I send the e-mail Island shows that the first item on the list.


    below is the form set up

    emailer

    E-mail information new tenant

            $to = ' [email protected] ';// . ',' . "$row_rsOrder ['email']";

    $to = $row_rsOrder ['email'];

    $subject = "order details";

    $message ="

    < html >

    < head >

    < title > Dear ".» $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "Please see the details of your order below < /title >

    < / head >

    < body >

    " < img src =-" http://www.website.com/images/logoBLPP.jpg \" alt=\"" />

    Your order of B < h2 >. $row_rsOrder ["OrderID"]. "< / h2 >

    < table width = "800" border = "0" cellspacing = "0" cellpadding = "0" >

    < tr > < td > < p > thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us < /p >

    < br / >

    < /a > < /p >

    < tr > < td > < table > < /tr > < / table >

    < table width = '980' border = "1" cellspacing = "0" cellpadding = "10" >

    < tr valign = "top" >

    < td bgcolor = "#E9E9E9" class = "header1" > Customer Name < table >

    < class td 'text' = > "." $row_rsOrder ["FirstName"]. $row_rsOrder ["LastName"]. "< table >

    < td bgcolor = "#E9E9E9" class = "header1" > Order ID < table >

    < td bgcolor = "#E9E9E9" class = "text" > "." $row_rsOrder ["OrderID"]. "< table >

    < td bgcolor = "#E9E9E9" class = "header1" > status command < table >

    < class td 'text' = > "." $row_rsOrder ["TransactResult"]. "< table >

    < /tr >

    < tr valign = "top" >

    < td bgcolor = "#E9E9E9" class = "header1" > Email < table >

    < class td 'text' = > "." $row_rsOrder ['email']. "< table >

    < td bgcolor = "#E9E9E9" class = "header1" > < table >

    < class td = "text" > < table >

    < td bgcolor = "#E9E9E9" > < span class = "header1" > </span > < table > Order Date

    < class td 'text' = > '.makeDateTime ($row_rsOrder ["OrderDate"], '%#d %B %Y', true). "< table >

    < /tr >

    < tr valign = "top" >

    < td bgcolor = "#E9E9E9" class = "header1" > shipping address < table >

    < class td = "text" > < p > "." $row_rsOrder ['address']. "< /p >

    < p > "." $row_rsOrder ['city']. "< /p >

    < p > "." $row_rsOrder ['postal code']. "< /p >

    < p > "." $row_rsOrder ['country']. "< /p >

    < p > < /p > < table >

    < td > < table >

    < td > < table >

    "< td colspan ="2"align ="right"valign ="bottom"> < span class ="head"> ORDER TOTAL: DoFormatCurrency ($row_rsOrder ['Total'], 2, ','.', ' £', ""). "". "< br / >"

    "</span > < span class ="text"> shipment: DoFormatCurrency (['shipping'], 2 $row_rsOrder, ','.', ' £', ""). "". "</span > < span class ="head"> < br / >"

    </span > < table >

    < /tr >

    < tr valign = "top" >

    < td bgcolor = "#E9E9E9" class = "header1" > Product ID < table >

    < td bgcolor = "#E9E9E9" class = "header1" > < table > Product Description

    < td bgcolor = "#E9E9E9" colspan = "2" class = "header1" > size < table >

    < td bgcolor = "#E9E9E9" > < span class = "header1" > quantity </span > < table >

    < td bgcolor = "#E9E9E9" align = "right" > < span class = "header1" > price </span > < table >

    < /tr >

          <? php do { ?>

    < tr valign = "top" >

    < class td 'text' = > "." $row_rsOrder ['ProductID']. "< table >

    < class td 'text' = > "." $row_rsOrder ['product']. «, ». $row_rsOrder ["productGroupGUID"]. "< table >

    < td colspan = "2" class = "text" > "." $row_rsOrder ["UnitSize"]. "< table >

    < td > < span class = "text" > "." $row_rsOrder ['quantity']. "</span > < table >

    < td align = 'right' class = "text" > ". DoFormatCurrency ($row_rsOrder ["UnitPrice'"], 2, ','.', ' £', ""). "." "< table >

    < /tr >

          <? php } while ($row_rsOrder = mysql_fetch_assoc($rsOrder)); ?>

    < tr valign = "top" >

    < class td = "text" > < table >

    < class td = "text" > < table >

    < td colspan = "2" class = "text" > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < /table >

    < / body >

    < / html >

    ";

    Content-type always defined when sending HTML email

    $headers = "MIME-Version: 1.0 '. « \r\n » ;

    $headers. = "content-type: text / html;" Charset = UTF-8 ". « \r\n » ;

    $headers. = "from: company name < " [email protected] > '. "\r\n";

    $send = mail ($ $subject, $message, $headers);

    Yes, all THE information in the database was recovered and sent to the email. Only 3 products for test purposes.

    I just tested it down to the do-while loop. After that html table code is absent.

    You have to bare in mind, this is a crude test. The updated database in place the query is not as complex as yours is, so maybe it's why his work, but certainly break the 'message' is the way to go. I can try to get another table products tomorrow if I have time to test.

    Database to html code and column names are the same as you have. the recordeset is "rsOrders" instead of "Mina" that you used.

    <>

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION< 6)="">

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    @mysql_select_db ($database_conDonations, $conDonations);

    $query_rsOrders = "SELECT * FROM orders";

    $rsOrders = mysql_query ($query_rsOrders, $conDonations) or die (mysql_error ());

    $row_rsOrders = mysql_fetch_assoc ($rsOrders);

    $totalRows_rsOrders = mysql_num_rows ($rsOrders);

    emailer

    E-mail information new tenant

    $to = ' [email protected]'; / /. ',' . "$row_rsOrder ['email'];

    $to = $row_rsOrder ['email'];

    $subject = "order details";

    $message ="

    Dear ".» $row_rsOrders ["FirstName"]. "see your order below details

    ' http://www.website.com/images/logoBLPP.jpg-' alt =------"------" / >

    Your order of B. $row_rsOrders ["OrderID"]. »

    Thank you for shopping below are you details of the order you placed recently. If you have any questions please contact us


    Name of the customer «. $row_rsOrders ["FirstName"]. » Command ID «. $row_rsOrders ["OrderID"]. » Status of orders «. $row_rsOrders ["TransactResult"]. »
    E-mail «. $row_rsOrders ['email']. » Order date «. $row_rsOrders ["OrderDate"]. »
    Shipping address

    «. $row_rsOrders ['address']. »

    «. $row_rsOrders ['city']. »

    «. $row_rsOrders ['postal code']. »

    «. $row_rsOrders ['country']. »

    ORDER TOTAL: "." $row_rsOrders ['total']. »

    Shipping: "." $row_rsOrders ["expedition"]. »

    Product ID

    Product description

    Size

    Quantity

    Price

    ";

    ?>

    "?>

    «. $row_rsOrders ['product']. »

    «. $row_rsOrders ["UnitSize"]. »

    «. $row_rsOrders ['quantity']. »

    «. $row_rsOrders ['UnitPrice']. »

    ";

    ?>

    "?>

    Content-type always defined when sending HTML email

    $headers = "MIME-Version: 1.0 '. « \r\n » ;

    $headers. = "content-type: text / html;" Charset = UTF-8 ". « \r\n » ;

    $headers. = "from: company name [email protected]> '."\r\n";"

    $send = mail ($ $subject, $message, $headers);

    mysql_free_result ($rsOrders);

    ?>

Maybe you are looking for