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();
});

Tags: Dreamweaver

Similar Questions

  • 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()">

  • getElementById() JavaScript does not work with the repeat regions

    I have tries an onmouseover and onmouseout to exchange all divs that recur in a repeating region of php and javascript doesn't seem to work for the first rehearsal of div. Is it because the repeat region creates a lot of identical divs and javascript code is confused?

    The following is a very simple version of my code setup which explains my problem:

    I create a forum where the individual comments are included in their own div ("commentDisplay"). To do this, I created a div and create a repeating region around it so that php will debit all the comments of each of them to give a copy of this div.

    for example:

    <? PHP {? >}

    < div class = "commentDisplay" >

    <? PHP echo $row_whateverRS ['whatever'];? >

    < / div >

    <? } while...? >

    Now, I wanted to create a simple javascript when the user moved their mouse on the station he would hide this div and display another div that holds the same content, but still had a background of different color and, most important, gave the user a chance to respond to the post (similar to the youtube comments section). So I created the following:

    < script... >

    function hideDiv (id) {}

    document.getElementById (id).style.display = 'none '; }

    function revealDiv (id) {}

    document.getElementById (id).style.display = 'block '; }

    < /script >

    and then I created this another div ("commentSwap"), which held the same information, but with a different background and an opportunity to respond (and with display: no) and insert the javascript code:

    <? PHP {? >}

    < div class = 'commentDisplay' onmouseover = "hideDiv ('commentDisplay'); revealDiv ('commentSwap')"onmouseout ="revealDiv ('commentDisplay'); hideDiv ('commentSwap') ">"

    <? PHP echo $row_whateverRS {'some']:?} >

    < / div >

    < div class = "commentSwap" >

    ... same-except the ability to answer

    < / div >

    <? PHP} while...? >

    the problem is that the code seems to work for the first rehearsal of the div and not the rest. In addition, when I move my mouse over the other div it causes the first div share.

    Why is this? Is it because all the Extensible divs (through the repeating region) all have the same name and confuse the javascript?

    Thank you

    YWSW

    YWSW wrote:

    So what do you suggest what to do instead (to produce the same see the div / hide div div result in a repeat region?)

    As shown by the fact that you can not have more than one ID on a page, my suggestion is to create the unique id in your loop. Database table has a primary key with the numeric IDs. As a result, the loop by adding the unique ID of the recordset object to the id of the div that is played repeatedly. Observe the provided code.

    ... same-except the ability to answer

  • 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. :)

  • Adding images to the repeat region

    Hey guys, I recently started using the features of dreamweaver PHP with MySQL and I have my display of table data in a repeat region. I downloaded images to the database, but if I drag 'image' of the Recordset into the repeat region I just get a lot of binary. I read I should maybe use image URL rather than the traction of the database of images, but I don't understand how to get the images in sequence. How do I know what order to display if they are not in the recordset in PHP?  I wonder if I missed some feature of DW, as I suppose it is quite a common thing to want images in a repeat region. Any advice would be great. Thank you

    > I read maybe I should use the URL of the image

    > rather than pulling images from the database

    Fix. Storage of binary files in the database leads to performance problems.

    > but I do not understand how to get the images in sequence. How would

    > PHP know what order to display if they are not in the Recordset?

    The images are stored in the file system. The path to the image is stored in the database. The fields in the recordset with the path of the image - in order to generate the html code that displays the image in the Recordset loop.

  • Force a line break in the repeat region

    I have a table that displays data from a query in PHP that I made using a single set of records and the repeat region behavior.  I would really like to be able to break the table (add an empty line) every time that a certain field changes the values.  My code (or the code given to me by DW) is as follows.

    <? PHP {? >}

    < tr bgcolor = "#809E7C" class = "reg_dataview_data" >

    < td > < table >

    < td > <? PHP echo $row_rs_Sum09 ["ChildFirst'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['child age'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ["ChildSex'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['Session'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['Status'];? > < table >

    < td > <? PHP echo $row_rs_Sum09 ['quarter'];? > < table >

    < /tr >

    <? PHP} while ($row_rs_Sum09 = mysql_fetch_assoc ($rs_Sum09));? >

    I would like for the table to break to the change in the value of Session.

    Advice would be greatly appreciated.

    Steve

    Yes, sorry about that. Simple mistake. I forgot to reset the value each time that the loop runs:

                                                                                                   
    

    By the way, attaching images is very hit and Miss in this forum. It is best to use the camera icon at the top of the message field to integrate the image directly into your message.

  • Number of records in the repeat region

    I have a page with a repeat region, which displays the records in Table1. Table1 is related to the Table2 (one to several, MS Access). I want to do is show the number of records in Table2 that are associated with a given row from Table1 shown in the repeat region.

    Think of how many responses listed next to each message in this forum, because that's basically what I do. As it is now, I get the correct number of records for the first line of Table1 shown in the repeat region, but this number is indicated in each line. In other words, if the first record displayed from Table1 has 3 matching records in table 2, 3 number in each row in the repeat region.

    I appreciate all the help that I'm a complete novice.

    Maybe it is not very effective, but I bet you it will do what you want:


    SELECT *.
    FROM table1
    ORDER BY name DESC


    SELECT *.
    FROM table2
    Where tid = #table1.id #.


    #table1.name #.
    #table1.client #.
    #table1.products #.
    $# numberformat (table1.income, '999,999.99') #.
    #table1.frequency #.
    #table2. RecordCount #.

  • Repeat regions inside the repeat regions

    I don't know how to do this.  Dreamweaver has said that we can not put server inside server behaviors behaviors.   But it seems like a pretty standard thing, someone might want to do.  For example:

    Suppose you want to create a menu online.  And say... you have two tables:

    Elements of array

    • item_id
    • Nom_element
    • item_description
    • item_price

    Ingredients of the table

    • ing_id
    • ing_name
    • item_id

    So, on your page, you want to display a repeat of each menu item region in the database.  In addition, within each menu item, you want to have a repeat region of each ingredient that has the same id of the element.

    Who is?  So, it can look like:

    Fishy lips
    Wonderful lips for all you lovers of the shady lip!  Get 'em today!

    Ingredients

    Fishy lips

    Seasoning ladle

    Herbs fish

    Fishy spices

    Luckity Hoppity
    Legs of amazing rabbit that bring good luck!

    Ingredients

    Rabbit legs

    Spices of rabbit

    Language of cow

    Sorry, I'm not a php programmer, but I can explain the concept.

    First of all, your idea to recover the two recordsets and then display the corresponding data in the inner loop should work. But it looks like you get the wrong records.  If I understand, you obtain a list of healthcare providers and then education for each display. Fix? If so, then the caregiver is the outer loop, and education is the inner loop, yet your inner loop made progress helping RS:mysql_fetch_assoc($getCaregiver)

    You could try just those switching.

    However, it is more common first retrieve the recordset of the outer loop. Then, when you browse, you need to run an internal recordset for each iteration of the outside. Your SQL for the internal RS has a filter so that it contains only the matching records.

  • Panel by tabs within the dynamic region

    Hello world

    I have 3 dynamic region, each region has a panel with tabs by pressing the page the first book of the region very well when to navigate between tabs (af:showDetailItem), the second region it does ' t work when navigate between tabs is like opening frozen just first tab (af:showDetailItem) and the same with the third region?

    any help?

    I use JDev 11.1.1.3.0

    Hello

    the managed bean that keeps the dynamic region TaskFlowId is within the scope of default backup bean. Change the scope of the viewScope bean and also change all EL references to the bean accordingly (on the page and the binding of workflow in the PageDef file)

    Frank

  • How can I use the Session variable in the repeat region

    I have a session variable assigned to the #(numérotation automatique dans access db) of the posts ID. The variable is set to the recordset object that is displayed first (sort by message ID descending). I would like to find a way to make the variable to assign to all records, if the variable is passed to the delete page. If I use a URL parameter to send the message ID, then someone could change the number in a browser and delete messages not intended for the user.
    If you want to see the example in action goto link at the bottom of the message. Save it and reply links are URL parameters response uses the variable MM_Username to enter the name of the sender for a URL parameter is OK, but click on save and then change the value of msdID in the browser for a different number and you can record and display another message not intended for your login id. The link delete uses a session variable that I posted in the Recordset as the auto access number msdID and the good msdID # do not are they assigned.
    What to hide the URL parameters, it would be simple, but how can I do?
    Thank you
    MikeL7
    PAGE WITH SESSION VARIALBE to DELETE PAGE (save and the response are URL parameters)
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW2.asp
    USER name: admin PASSWORD: 1234

    links from other pages of my site will bring to:
    http://www.gohbcc.com/callcenter/EmployeeMessagesVIEW.asp it's the settings of all THE URL enter 2 after VIEW to use session variables

    Your message forced me to find a way to make it work, I put the code to create the variable just before the repeating table in the region and went on to form buttons that post the variable and labeled buttons and it works perfectly. Thank you

  • PHP mail - equivalent of the repeat region in the body?

    My client wants a summary of the products registered in the body of an email. My mail script works great, but I don't know how to add the summary of products (what I call a 'repeat region").

    Thanks in advance for your advice and comments

    Hi David,

    Thanks for the help and apologies for not being precise.

    My recordset looks like:

    cust_id product_name order_date
    PRODUCTA 100 23/12/08
    100 PRODUCTB 23/11/07
    100 PRODUCTC 22/09/07

    For example, a client may have 1 or 100 items, so you can see why I want to create the equivalent of a region that is repeated in the body of the message.

    It is more useful to you?

  • What's wrong with the dynamic region within the static region

    Hi all

    I use Jdeveloper 12 c

    I do app with a jsf page (man.jsf) contains the static region (xxx.jsff)

    the static region contains a dynamic region and I define the scope in the tent (adfc-config) (backingbean extended, scope of the request, see scope)

    the result is main.jsf is empty

    hand. JSF > > xxx.jsff (static region) > > bb.jsff (dynamic region)

    http://127.0.0.1:7101/face/hand? _afrLoop =

    What is the solution for this problem.

    Hello

    Actually the managed bean used by the static region should be extended to at least view. The managed bean should be defined in the configuration of the workflow of the static region.

    Frank

  • Problems with the repeatable region in table

    Hello!

    I am using a table to display data from a MySQL database. I have two lines put in place. The first is a header row and the second contains the bindings for the info from database. When I select < tr > on the second line and add the reproducible region, it always includes the whole picture, so seen live, the header appears before every single line of text. If I try to select each block and add the reproducible region, it shoots just information horizontally rather than vertically. Any ideas on that?

    Thank you!

    You had to do a little research on Google for this one! I don't know why he always chose the entire table, no matter what I choose, but at least here is a way to manually code around it.

    Here's what the code was originally:

        
      
    1 2 3 4

    Here's what I had to take it:

      
    1 2 3 4
  • Customize the Table of the repeat region

    Hello

    I have listed the elements of data in dynamic and sorted table using a function in the region of repetition by date.

    How can I change the background color of cells table by date?

    I have listed data and I want to use another color for each day.


    How can I do this?

    Thank you.

    original-faaedfb340ab9ae54d7cc10ee79cd4e5.png

    Unfortunately, you do not use CSS to style the table. There is no matter for this example, all you need to do is place the example CSS in the head section of the document. Then, we need to place a class for the line and it should work.

    class ="c">

  • A repeating region: display the entries of dubble only once

    I want to do a Recordset where all the 'cities' are shown only once, it should not be like

    The Hague

    The Hague

    The Hague

    Rotterdam

    Rotterdam

    Amsterdam

    But:

    The Hague

    Rotterdam

    Amsterdam

    This is the recordset object:

    SELECT c_city FROM canteen

    It's the repeat region:

    <? PHP {? > <? php echo $row_allCities ["c_city'];? > <? php} while ($row_allCities = mysql_fetch_assoc ($allCities));? >

    Thankx for any help!

    Add a SEPARATE statement to your application.

    SELECT DISTINCT c_city canteen

    --
    Lawrence * Adobe Community Expert *.
    www.Cartweaver.com
    All Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

Maybe you are looking for

  • Streaming movies

    IT seems that the movies on my iPad application broadcasts only effectively movies when connected to a wifi network of 5g.  However, I can stream movies through Vudu connected on any wifi network.  Is there a problem? Is there a fix in the works?  Di

  • Order of installations of Satellite P20

    People have said on this forum that there may be a correct order to install drivers after a reconstruction, can someone tell me where I can find this list? See you soon

  • Is there a drawing or a 3D of the NI CVS-1456 model?

    NOR has many dimensional plans and 3D models available through the knowledge base, but he is not one for the NI CVS-1456. Where can I find one?

  • Windows Vista (32 bit) stops responding after installing the program...

    Hello. Recently, my Dell XPS M1530 (Windows Vista 32-bit) has been extinguished during the execution of the system updates (we had a power outage during the night and I didn't) and would only start in safe mode. I moved all my documents on a portable

  • Objects Force10 and IP SLA monitoring

    Hello Can Force10 ip sla? Im trying to have a c150 detect a link down and change the default route to another. I found what I'm looking for, but its for a cisco :( cs_setInnerHtml ('video_5293c394 - 45 b 3-491f-88fd-864c17d00896', ");