Using Shadowbox in a detailregion

I read some threads here and examined some source code and
got Shadowbox working on images in a region. Basically, the region
reads in the dataset, which is a list of images. The spry:repeat
creates a <span> for each imafe and link tag. The
detailregion is a hidden div. I set an observer to that hidden
detailregion which loads the Shadowbox when the detailregion
changes.
Here is the page that shows that working:
http://new.eliteportablerestrooms.itlogic.org
Now here is my problem. I want to do something similar,
except this time the images are in a detailregion instead of a
region. In the dataset, I have a list of products. In the product
record, I have 10 image fields available. I read the product list
into a Spry table, then when I click the record in the table, I set
an accordian with the associated data. One panel in the accordian
is a detailregion that shows the 10 image fields. I gave that panel
an id="productGallery". Then I set up and observer to watch the
detailregion productGallery. But, this doesn't seem to work like it
does in the page linked above.
I was thinking that whenever I clicked on a record in the
Spry table, it would update the detailregions and the observer
would load Shadowbox. Here is the link to the page that's not
working:
http://new.eliteportablerestorooms.itlogic.org/products.htm
I'm using Dreamweaver CS3 and Spry 1.6.1

Thanks, but unfortunately that example is using 2 regions
that are linked in the dataset. Not a region and a detailregion. I
have another constraint that limits me. I'm using HTML datasets
instead of XML. I do this so I can create a table with a repeating
region. This gives clients the opportunity to purchase Contribute
and maitain their own data in those tables. Most of them aren't
familiar with XML, but tabels aren't so foreign. Besides, they get
that nice little add/subtract/reorder tool for repeating regions.
Anyway, my point is I'm trying to keep the dataset to one
table so I added 10 image fields. Each of those fields holds the
image of a product. The images are displayed as a grid of
thumbnails in the accordion panel. The accordion is filled with
that and other data from the dataregion that is linked to the
region which displays the list of products.
So, it's those 10 thumbnails in the dataregion that I'm
trying to attach to Shadowbox. Normally, you would create a region
and then a spry:repeat would read the images from the dataset to
create the thumbnail grid. In that scenerio I have it working fine.
It's when you click a product from the list in the region and then
it updates the thumbnails in the detailregion, is where I'm having
problems.
I hope that made some sence.

Similar Messages

  • Using Checkboxes in spry:detailregion

    I like the visual effect and ease of use that checkboxes in a
    multiple select box provide. Example code for what I mean is below
    (this css is for Firefox by the way, it renders uglier in IE but I
    use another css for that anyway):

    Hi,
    can you please just paste the code you give us without
    escaping? It is very hard to follow the code you give us.
    If you have a link, also is very helpful.
    Thanks,
    Diana

  • Spry and Shadowbox,  Spry and Thickbox  ARGGG!!!

    i have tried and tried to read post and look all over the net
    for an answer and i cant seem to get it to work.
    Can someone help with what im doing wrong to get one of these
    boxes to work in my spry region.
    Here are the pages
    http://portersrestoration.dyndns.org/portersonline/private/ssdetail.php?SubID=42
    - uses the thickbox - i get it too fire which is a step further
    than before but it wont load the div, it just stays on the loading
    gif. Also the box shows up where ever you click on the page when it
    should only fire on the > button.
    http://portersrestoration.dyndns.org/portersonline/private/ssdetail2.php?SubID=42
    - uses Shadowbox - i cant even to get it to fire in the spry
    region.
    Any help would be great thanks in advance....going on two
    days of searching

    oops sorry I hit the wrong key. I'll start over:
    1) Define dataset. I'm using an HTML dataset instead of XML.
    You'll see see both definitions, but the XML one is commented out.
    2) Define an observer. You can copy and past mine to yours if
    your using Shadowbox. You will see "events_dummyregion" is the ID
    the observer is looking for to watch that tag.
    Spry.Data.Region.addObserver("events_dummyregion", {
    onPostUpdate: function() { Shadowbox.init({ skipSetup: true });
    Shadowbox.setup(); }});
    3) Then I define my region called eventsGallery:
    <div id="eventGallery" spry:region="eventsGallery"
    class="SpryHiddenRegion">
    <div spry:state="loading"><img
    src="images/loading.gif" alt="Loading..." /><br
    />Loading...</div>
    <div spry:state="error">Failed to load Events
    Gallery!</div>
    <div spry:state="ready">
    <span spry:repeat="eventsGallery">
    <a href="../images/{eventsGallery::Picture_Filename}"
    rel="shadowbox[events_gallery];options={slideshowDelay: 6}"
    title="{eventsGallery::Title}">{eventsGallery::Thumbnail}</a>
    </span>
    </div>
    </div>
    That included al the state definitions. You can ignore those
    and just look at the SPAN tag.
    4) Finally I define the DIV tag that the observer watches.
    The observer is watching this tag because the ID is
    "evens_dummyregion". Also, in my CSS, I have a rule for the ID
    #event_dummyregion with visibility:hidden. That way it's invisible.
    When you click a thunmbnail in the events gallery, it updates
    that invisible dummyregion. The observer sees that region get
    updates and runs the code written in the observer. That code
    initializes Shadowbox, which then reads the REL="shadowbox" in the
    A tag of the parent region and then Shadowbox works it's magic.
    <div id="events_dummyregion"
    spry:detailregion="eventsGallery"></div>
    If you want to see the other scenerio, view the source at:
    http://new.eliteportablerestrooms.itlogic.org/products.htm
    That one has a product list. When the product is selected,
    the data in a 2 panel accordion is updated. One panel is for
    product images. The images are displayed as a grid of thumnails and
    then when a thumbnail is selected, Shadowbox does it's thing. If
    you need an explaination on that one, just ask.

  • Shadowbox problem in Default iWeb Photos Page

    Hi Guys,
    Ive been using shadowbox to create a pop up menu when the user clicks on the login button of my website.
    http://www.sotonpcp.org then click the Login button at the top.
    To do this I have:
    1. Created a link to the desired page with iWeb
    2. Published site to a folder
    3. Used search and replace to add the shadow box code just before the </head> command
    4. Used search and replace to add the shadow box reference to all links containing the Login reference
    I have referenced the root directory for the shadowbox file reference so that the menu will work on all levels of the directory. (e.g. Within iWeb blog articles)
    However, the problem I am having is that when i load my iWeb photo gallery, none of the albums are displayed. The shadowbox works fine, but renders my gallery page useless.
    If I delete the shadowbox folder from my root directory then it works again. Re-upload it and it breaks again.
    Any ideas on why this might be, and if so how do I fix it?
    Best Regards,
    Mike

    I was thinking the same thing. I guess if it's working on your iPad and my iMac it's got something to do with with the iPhone 4. Although, I'm not ruling out the idea of iWeb not being iOS 4 friendly. You'd think Apple would optimize their iWeb sites for mobile devices, because this happens whether it's on WiFi or 3G. Any other suggestions are greatly appreciated.

  • Shadowbox or Flowplayer?

    I have a site with multiple videos on one page; I'd like to have each video pop out in its own player when clicked, rather than just embed them on the page in a small size (they'll probably be hosted on Vimeo). In the past I've used Shadowbox on a site I built in Dreamweaver; has anyone successfully embedded that code in a Muse site? I see Flowplayer is another possibility (using the 'Insert HTML' command) but how do I configure these properly? These scripts need to be called in the <head> so it seems odd to just embed them in a page without proper access to the <head> section.
    TIA,
    JVK

    Hello,
    In order to insert the script in the Head section, you can access the head section by Right clicking on page>Page properties>MetaData and insert the script in HTML for <Head> Section.
    You can also use the Composition Lighbox widget to achieve the functionality you are looking for.
    Insert the Embed code inside the Target containers of the widget.
    Hope this helps.
    Regards,
    Sachin

  • No content with multiple datasets in detailregion

    I have a detailregion, in which I don't just want to display
    data, but want to enable data maintenance via a form. There are
    some dynamic select fields, so their datasets are declared together
    with the main dataset when the detail region is set up. T
    The code used to declare the detailregion is
    <div spry:detailregion="routerlist_xml edit_country_xml
    edit_region_xml">
    The detailregion that should be under the list display is
    well - not showing.
    When I take the datasets for the select fields away so the
    line looks like
    <div spry:detailregion="routerlist_xml">
    the detailregion displays as expected.
    (Of course the browser will complain about the missing
    datasets, but that is not the point here).
    Is it not possible to have multiple datasets in a
    detailregion? If not, what is a workaraound to get a dynamic select
    into a detailed field? If yes, is there anything wrong in my code?
    Or is there a bug in the Spry framework?
    Any pointers are welcome.
    Thanks

    Trial and error solved the problem.
    When there is an error XML the dataset for the dynamic select
    field is based on, then the whole region in to which the dataset
    was linked will not be shown.
    The 'error' in my case, it appears, were non-US keyboard
    characters (from a german keyboard). The underlying database mysql
    is set to UTF8-unicode, and the xml-export function has
    $xmlExportObj->setDBEncoding("UTF-8");
    $xmlExportObj->setXMLEncoding("UTF-8");
    in its code.
    Once those characters were removed, it all worked fine.
    To make things even more confusing was the fact that the page
    worked fine in Firefox when the detailed region just would not show
    in IE7 due to the special characters.
    A bug or a compatibality issue for the Adobe crew to check
    out ?
    Comments welcome...

  • DW CS4: How to play a Flash Movie in a NEW window after clicking a link or a button on a page?

    Hi, using Adobe Dreamweaver CS4, I would like to have a link or a button on a webpage that when clicked will play a Flash Movie in a new window.
    Using the 'Insert Panel' > Media: FLV I managed to insert the .flv file on the page, but the movie plays 'in line' instead of in a new window. So far I can't find any 'Properties' or settings to change this behaviour. E.g. like Target _blank for opening e.g. a .pdf in a new Window.
    > Please help.
    Thank you!

    Try using one of the popular javascript methods for this. I use shadowbox and you can find examples, info and a download here: http://www.shadowbox-js.com

  • Need Help With Image Gallery

    Hey all, I need a simple image gallery to load when you click a button.  I've tried shadowbox but have had absolutely zero luck. I'm not sure how to load it from a flash file and I know there is work that has to be done outside of flash like in the root folder. All I need is  for a simple image gallery, nothing fancy, to open when I hit a button. If anyone could explain how to use shadowbox in lamens terms or knows how to easily script a gallery that would be amazing.

    What script version is your target? AS2 or AS3

  • Help to unload function

    I have a video background wherefrom I load another swf through a build in pop up. I have a button in the loaded swf from where I need the popup to unload and go back to the video background. Im not very experienced in flash and haven't build this myself so im a little lost. underneath is first the code which is in my video background and then the code in my loaded swf. hope someone can help. The highlighted bits is the ones where i have attempted to have the loaded swf to unload
    Video Background:
    import VideoBg;
    var videos:Array=new Array('videos/bird_short.f4v','videos/kanin.f4v');
    var num:uint=1;
    var vid:VideoBg=new VideoBg(videos[index]);
    var index:int = videos[Math.floor(Math.random()*videos.length)];
    addChild(vid);
    setChildIndex(vid,0);
    videobtn.buttonMode = true;
    pictures.visible=true; 
    videobtn.addEventListener(MouseEvent.CLICK,toggleVideoF);
    function toggleVideoF(e:MouseEvent):void{
    index=(index+1)%videos.length;
    vid.playF=videos[index];
    videobtn.gotoAndStop(index+1);
    stage.scaleMode=StageScaleMode.NO_SCALE;
    stage.align=StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, position);
    stage.addEventListener(MouseEvent.CLICK, startIgen);
    position(null);
    function position(Event=null):void {
    var SH=stage.stageHeight;
    var SW=stage.stageWidth;
    MinKnap.addEventListener(MouseEvent.CLICK, MinFunktion);
    function MinFunktion(e:Event):void {
    e.stopImmediatePropagation();
    vid.ns.pause();
    MinKnap.visible=false;
    videobtn.visible=false;
    popUp('start2.swf','swf',null,900,700,0);
    pictures.addEventListener(MouseEvent.CLICK, picturesFunktion);
    function picturesFunktion(e:Event):void {
    e.stopImmediatePropagation();
    vid.ns.pause();
    MinKnap.visible=false;
    videobtn.visible=false;
    pictures.visible=false;
    popUp('gallery_rabbit_picture.swf','swf',null,900,700,0);
    function startIgen(Event):void {
    MinKnap.visible=true;
    videobtn.visible=true;
    pictures.visible=true;
    vid.ns.resume();
    function popUp(con,typ,tit=null,wid=550,hei=400,alp=0.7):void {
    ExternalInterface.call("Shadowbox.open",{content: con, player: typ, title: tit, width: wid, height: hei, options: {overlayOpacity:alp}});
    function unloadFunction_rabit_gallery(event:Event):void {
        popUp.unload();
         MinKnap.visible=true;
         videobtn.visible=true;
         pictures.visible=true;
         vid.ns.resume();
    popUp.addEventListener("UnloadMe", unloadFunction_rabit_gallery);
    Loaded swf:
    back03_btn.addEventListener(MouseEvent.CLICK,back_rabit)
    function back_rabit(event:MouseEvent):void
        //MovieClip(parent.parent).gotoAndStop("frontpage2")
        parent.dispatchEvent(new Event("UnloadMe", true));

    i don't use shadowbox but it looks like you're using javascript to open that popup so you'll need to use javascript to close it.   take a chance and try:
    back03_btn.addEventListener(MouseEvent.CLICK,back_rabit)
    function back_rabit(event:MouseEvent):void
    ExternalInterface.call("Shadowbox.close");

  • I Need to know how to do this!

    I am needing to know how to do this. Is there a plugin for dreamweaver to do this, and what is this called
    At the top click on "SCHEDULE A TOUR" or "REQUEST BROCHURE" The window it opens is what I am needing to know
    http://www.thesolana.com/

    That site appears to be using Shadowbox
    http://www.shadowbox-js.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/

  • Lightbox images open in new page

    Instead of opening on same page with opacity effects, it takes over the whole page & i have to click back to go back to the site.
    Hope i clearly stated the issue & someone can help..
    Thanks!!

    try to use shadowbox http://www.shadowbox-js.com/
    it´s easier.
    Leonardo Hermoso
    bovespa

  • Want a word press plugin feature in my html page

    Here is a WordPress plug in that gives the
    functionality I would like in my own html page.
    http://wordpress.org/plugins/shadowbox-js/
    They dont answer their support questions.
    Is such an incorporation simple or doable?
    Do I have to be smart?
    Thanks
    Steve

    That plugin uses Shadowbox
    http://www.shadowbox-js.com/
    Links to full instructions for non-Wordpress use are on that page as far as I can see.

  • Link to movie on new window

    Hi there. I'm trying to make a button within a flash that
    links to a movie file and I've got that down, no problem. What I
    need to know is how to make it so when the movie comes up in a new
    window, the window is the size of the movie (not full screen).
    Thanks in advance. I appreciate it.

    Try using one of the popular javascript methods for this. I use shadowbox and you can find examples, info and a download here: http://www.shadowbox-js.com

  • Using Multiple Spry datasets? - regarding Regions: DetailContainer/DetailRegion

    Hi Spry experts:
    I've been battling a good battle: Spry datasets and mobile app development. I'm making headway, but as is true in life, there are problems.  I've professor googled for several days related to the current issue without success. I'm throwing in the towel and asking for help.
    I have a jquery mobile project I am developing in dreamweaver cs 5.5. I created a Spry HTML dataset to populate 3 lists on separate pages. Each list page is populated by a single html file that contains 3 tables with different ids.
    Each table has 3 rows (name, image, desc). Each list is populated using the "name" field from each table. The lists part is all working just fine.
    However, when a list item is selected (clicked), it is supposed to take the user to another page (details). There are three details pages--one for each list. These pages are for the item details. Each details page uses the same basic code. Only one page works. If I switch the location of the detail pages in DW, the page that is closest to the list pages is the one that works. I know that I am doing something that is pretty plain to someone who knows Spry, but I'm lost as to what to do next. I've tried multiple fixes and read many Spry documents. A HUGE thanks in advance to anyone who knows the answer. If you need more information, please let me know. 
    The expected behavior is that whatever list item is clicked the item should jump to the details page and load the data.
    Here is the code for the details pages:
    <!--*****************************************************************************-->
    <!--Description page for items from list 1-->
    <!--*****************************************************************************-->
    <div data-role="page" id="details_list1"
    data-add-back-btn="true" data-theme="c">
    <div data-role="header">
      <h1>Details List 1</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList1">{dsList1::name}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList1"
    class="DetailContainer">{dsList1::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList1" class="DetailContainer">
    {dsList1::desc}</span></span></p>
    <span class="DetailContainer">
    <span spry:detailregion="dsList1"
    class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>
    <!--*****************************************************************************-->
    <!--Description page for List 2-->
    <!--*****************************************************************************-->
    <div data-role="page" id="description_list2" data-add-back-btn="true" data-theme="e">
    <div data-role="header">
      <h1>List 2 Details</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList2">
    {dsList2::sign}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList2" class="DetailContainer">
    {dsList2::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList2" class="DetailContainer">
    {dsList2::desc}</span></span></p>
    <span class="DetailContainer"><span spry:detailregion="dsList2" class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>
    <!--*****************************************************************************-->
    <!--Description page for List 3-->
    <!--*****************************************************************************-->
    <div data-role="page" id="description_list3" data-add-back-btn="true" data-theme="e">
    <div data-role="header">
      <h1>List 3 Details</h1>
    </div>
    <div data-role="content">
    <h2><span class="DetailContainer">
    <span spry:detailregion="dsList3">
    {dsList3::sign}</span></span></h2>
    <p class="DetailColumn" align="center">
    <span class="DetailContainer">
    <span spry:detailregion="dsList3" class="DetailContainer">
    {dsList3::image}</span></span></p>
    <p class="DetailColumn"><span class="DetailContainer">
    <span spry:detailregion="dsList3" class="DetailContainer">
    {dsList3::desc}</span></span></p>
    <span class="DetailContainer"><span spry:detailregion="dsList3" class="DetailContainer"><br />
    </span></span><br>
    <br>
    </div>

    I've been battling a good battle: Spry datasets and mobile app development.
    Is this an offline app?
    If not, then please post a link to your site.
    Gramps

  • How use Spry detailregion inside script ?

    Hi everybody, someone can help me how can i do that work ? I am trying to send information to Flickr API to create image galleries with information from my database...
    <div id="content2" spry:detailregion="ds1">  
        <script src="badge.js" type="text/javascript"></script>
        <script src="http://api.flickr.com/services/feeds/photos_public.gne?id=23366962@HU5&tags={ds1::flickr}&format=json" type="text/javascript"></script>
    </div>
    Thank YOU !!!!

    OK... nobody yet...
    I am trying something different now using PHP, but still not getting what i want:
    <?php $recentPhotos = $gallery->findRecentPhotos(30,?> {ds1::url}<?php ); ?>
    Someone can help me in that ?
    Thanks !!!

Maybe you are looking for

  • Problem with Dates in ADF Calendar (Possibly Oracle 9i related?)

    Hi All, I have an entity and up-datable view object based on the following table CREATE TABLE IM_CALENDAR ID VARCHAR2(32 BYTE), START_TIME DATE, END_TIME DATE, PROVIDER_ID VARCHAR2(32 BYTE), TITLE VARCHAR2(256 BYTE), RECURRING VARCHAR2(32 BYTE), REMI

  • I can't get the WiFi turned on, the slide button isn't working

    I'm panicked, it's the holidays & my kids have their Christmas play at Church tonight & I can not turn my WiFi on my cell...the button won't slide to "ON"...It's GREY.... Help?

  • Can't  uninstall itunes. missing folder containing itunes64.msi

    I'm having a problem trying to uninstall and reinstall itunes. All of the components were successfully removed except for 'iTunes'. after trying uninstall I keep getting a message : the path cannot be found verify you have access or try to find the i

  • Designer 9.0 and Readyer Version 7.0

    Hello, I recently craeted fillable forms using Adobe Acrobat Professional 7.0. I then learned that forms created using 7.0 cannot be saved. I was now looking into upgrading to Adobe Acrobat Professional 9.0 to crate forms that can be filled out and s

  • Apex Pl/SQL debugging

    Hi , I have added dbms_output. put line in my PL/SQL blocks for debugging . When apex application is running how can I see these debug messages. I can see the apex debugging messages when debug is on. But I cannot see the custom messages I have added