Trouble with Paths using Gallery

I have a very large site with lots of images. I can put my
images, thumbnails and photo.xml in the galleries folder of the
demo and it works just fine. I use the recommended file structure.
I can add as many galleries as I like and they all work.
If I copy that exact galleries folder containing both the
demo galleries and my galleries to my site, only some work. There
seems to be no logical reason for it. One of demo galleries and
some of mine fail. I've changed the index.html to show the location
of the four javacript files in the site's main script folder. I've
changed the XML dataset paths to show the location of the galleries
folder like this:
<script type="text/javascript">
var dsGalleries = new
Spry.Data.XMLDataSet("images/vac_lam/galleries/galleries.xml",
"galleries/gallery");
var dsGallery = new
Spry.Data.XMLDataSet("images/vac_lam/galleries/{dsGalleries::@base}{dsGalleries::@file}",
"gallery");
var dsPhotos = new
Spry.Data.XMLDataSet("images/vac_lam/galleries/{dsGalleries::@base}{dsGalleries::@file}",
"gallery/photos/photo");
</script>
The non-working galleries fail to show the thumbnail image or
main image and don't advance to the next image when Play is active.
The main image size changes and some description data I've added
which means the photo.xml is being seen. Copy this non-working
folder main into the demo galleries folder and it works fine.
Am I allowed to move the .js files and extend the folder
paths?

I got the galleries to work after much trial and error.
The thumbnail image path is hard-coded in the index.html at
line 40 as well as lines 12, 13, 14.
The main image path is hard-coded in the gallery.js at line
198.
I don't want a separate gallery.js for each set of galleries.
I'll declare a path variable just before the XMLDataSet's are
declared in each of the index pages. One declaration - everybody is
happy.
I still don't understand why some galleries worked and some
didn't.

Similar Messages

  • I have had trouble with scrollbars using netbeans 5.5.1

    I have had trouble getting a vertical and horizontal scrollbar working in my GUI. I am new to programming but I have books but I find them difficult to follow because they follow the old netbeans GUI models that requires all of the code to be written for example the scrollbar has to be created and then the parameters have to be set. However with the 5.5.1 the scrollbar has already been created and the parameters of the maximum the minimum and the event have already been set.
    Therefore when you follow the books they explain the whole process rather than the last part which is all that is needed. I have selected the scrollbar and then pressed the right mouse button to get the menu up where I selected Events and then Adjustments, which then displayed the following script,
    " private void jScrollBar1AdjustmentValueChanged(java.awt.event.AdjustmentEvent evt) {
    // TODO add your handling code here:"
    I know that I have to delete the //TODO add your handling code here and then insert the event handling code. I have tried to put in a lot of different event handler codes to try to get it to work but I have had no luck. Can anybody help. I have asked a few people but they have had trouble with it too.

    Please can somebody provide me with a scirpt example.
    I would really appreciate it.This was not made in Netbeans but it shows you how to use scrollpanes with a viewportview and listeners.
    import java.awt.Dimension;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.WindowConstants;
    public class SwingExample {
         public static void main(String[] args) {
              JFrame frame = new JFrame("Test");
              //Create scrollpane
              JScrollPane scrollpane = new JScrollPane();
              //Create textpane to embed in Scrollpane
              JTextPane textPane = new JTextPane();
              //Add listener to textpane to listen for a KeyEvent
              textPane.addKeyListener(new KeyListener() {
                   //unimplemented methods, not reuqired for example
                   public void keyPressed(KeyEvent arg0) {}
                   public void keyReleased(KeyEvent arg0) {}
                   //Implemented method - prints current key typed.
                   public void keyTyped(KeyEvent arg0) {
                        char myChar = arg0.getKeyChar();
                        System.out.println("You Typed: "+myChar);
              //Add textpane to scrollpane
              scrollpane.setViewportView(textPane);
              //add scrollpane to frame
              frame.add(scrollpane);
              frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              frame.setVisible(true);
              frame.setSize(new Dimension(400,400));
    }

  • I'm having trouble with activation using over drive  fore books

    II'm having trouble with activation I've tried too many time wit no luck

    Reader doesn't need activation. I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • Troubles with timeout using java.nio.channels and non-blocking sockets

    Hello.
    I have a server application that employs java.nio.channels with non-blocking sockets.
    The server waits for connections. The client should connect and be first in sending data.
    Timeouts are significant! If client exceeds the allowed time to send data, the server should break the connection.
    The huge trouble I've discovered that I cannot control the timeout when client connects but remains silent.
    My code looks as follows:
    <pre>
    Selector oSel;
    SocketChannel oSockChan;
    Socket oSock;
    SelectionKey oSelKey;
    Iterator<SelectionKey> oItSelKeys;
    int iCurrState, iMask, iCount;
    iCurrState = INT_SERVER_WORKING;
    iMask = SelectionKey.OP_ACCEPT | SelectionKey.OP_CONNECT | SelectionKey.OP_READ | SelectionKey.OP_WRITE;
    while ( iCurrState == INT_SERVER_WORKING )
    try
    *// retrieving next action*
    iCount = oSel.select();
    if ( iCount > 0 )
    oItSelKeys = oSel.selectedKeys().iterator();
    while ( oItSelKeys.hasNext() )
    oSelKey = oItSelKeys.next();
    oItSelKeys.remove();
    if ( oSelKey.isValid() )
    switch ( oSelKey.readyOps() & iMask ) {
    case SelectionKey.OP_ACCEPT :
    oSockChan = oSSockChan.accept();
    oSockChan.configureBlocking(false);
    oSock = oSockChan.socket();
    oSock.setKeepAlive(true);
    oSockChan.register(oSel,SelectionKey.OP_READ,new MyPacket(oSock.getInetAddress(),oSock.getPort()));
    break;
    case SelectionKey.OP_READ :
    oSelKey.interestOps(0);
    ((MyPacket) oSelKey.attachment()).inRequest(); *// preparing request*
    this.getReader().add(oSelKey); *// sending key to reading thread*
    break;
    case SelectionKey.OP_WRITE :
    oSelKey.interestOps(0);
    ((MyRequest) oSelKey.attachment()).inResponse(); *// preparing response*
    this.getWriter().add(oSelKey); *// sending key to writing thread*
    break;
    case SelectionKey.OP_CONNECT :
    default :
    *// nothing to do*
    catch ( IOException oExcept )
    *// do some actions*
    </pre>
    Timeouts are easily controlled by reading and writing threads (see OP_READ and OP_WRITE ).
    But when a client just connects without consequent data send, the state of this connection remains as OP_ACCEPT. The connection remains open for arbitrarily large time and I cannot control it!
    Please help with idea how can I terminate such connections!

    How can I process the keys that weren't selected at the bottom of the loop? Should I use the method keys() ?Yes. Form a new set from keys() and removeAll(selectedKeys()). Do that before you process selectedKeys().
    And the second moment: as I understood a single key may contain several operations simultaneously? Thus I should use several if's (but not if/else 'cause it's the equivalent of switch ... case ).If there is anything unclear about 'your switch statement is invalid. You need an if/else chain' I fail to see what it is. Try reading it again. And if several ifs were really the equivalent of "switch ... case", there wouldn't be a problem in the first place. They're not, and there is.

  • Trouble with people using my e-mail link on my contact page

    Some people using my e-mail link on my contact page aren't able to reach my e-mail account. I use statcounter so I can see that they have exited through the e-mail link, but then I never get the e-mail. I use g-mail and anytime I test the link it seems to work.
    Anyone else have trouble like this?
    Is there a more reliable way to have email access using iWeb?
    Here's the contact page: http://web.me.com/phelpssculpture/Site/Contactpage_DavidPhelps.html
    If anyone is willing to take the time, please respond to this post in this forum and try to send me an e-mail from my contact page. I'd like to find out if this is a widespread problem. If so I need to find a better way for people to reach my e-mail.
    Thanks, David

    Just sent you an email from that link.
    Happy Holidays

  • Troubles with PATH/CLASSPATH

    I have been trying to set up my PATH/CLASSPATH variables on my WINDOWS XP computer for quite some time but cant quite get it right. In the PATH variable, if I put the entry for the java SDK first, I can use java commands via cmd.exe but I cant use windows commands (such as ping). If I put the default entries at the begining then the java entry at the end, I can use windows commands, but not the java ones. Why does it only register the first entry on the list?
    The CLASSPATH variable works fine.

    Possibly you are including a space " " in the expression?
    They aren't allowed. Here's my path statement (on 98SE):
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.2_01\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    Copy and paste your statement here if you still have problems.

  • Trouble with OWA using CAC

    I use Safari to access my email on OWA. Using a CAC Smart Card, I'm able to get into my email where I see the emails in my in box. The problem is when I click on an email to read it, the browser just hangs up. I'm assuming that there's a problem with my Keychain not allowing me to move around my email. Does anyone have any ideas?

    Try using other browser like firefox or opera. Seems more like browser issue.

  • Trouble with output using AI

    Hello,
    We have problem when printing out files using AI from CS6 on a HP 4700 dn with PCL 5.1 as a driver. The black backround is not printing out uniformly. If we convert the .ai file to
    a .jpeg and printout the image the backround is correct. Any suggestions on why this is happening? See below for a sample .jpeg picture that printed out correctly. On the original .ai file you have a smaller lighter inner black backround color surrounding the object. This happens on several different files we have tried. We also occasionally get thin black line throughout the image. Not like banding but some lines vertical or diaganol. Any suggestions appreciated. I wish I could attach the AI file but it is too big to upload.
    Thanx

    The Document contains artwork that requires flattening. <- This means that there is transparency in the file, It's fine.
    The Document contains RGB images <- Also fine as long as your printer can handle it
    The Document Raster Effects resolution is 72 ppi or less <- Depending on your final intent for the file this MIGHT be ok. If you are designing for web then you're golden, if you're designing for print you should change your Document Raster Effects settings
    Go to 300 ppi. This might change the appearence of your effect, if it does, play with your effect settings until it is back where you want it.
    As far as your original issue, have you set the effect to "multiply"?
    Double click on Drop Shadow

  • Trouble with Search using MSSQLFT and Like

    I am using SPServices to run a search on a scope I have defined. When the page first loads, I run a query that retrieves all the items from the search scope using
    var queryExtra = '';
    var q = "SELECT Title,Path,Description,Write,Rank,Size,SiteTitle FROM SCOPE() WHERE ";
    q += queryExtra + " (\"SCOPE\"='LC Engagement Sites') ORDER BY Rank";
    var queryText = makeQuery(q);
    $().SPServices({
    operation: "Query",
    queryXml: queryText,
    completefunc: function(xData, Status) {
    The function makeQuery turns the sql into the required xml.  When run, this works.
    I also have a textbox that allows the user to show only ones where the title contains some text.  I have tried using like and contains to restrict the search but both return no results.
    var queryExtra = getAll || title == "" ? "" : " Title like '%" + title + "%' AND ";
    var queryExtra = getAll || title == "" ? "" : " CONTAINS(title,'" + title + "') and ";
    The query ends up looking like this
    SELECT Title,Path,Description,Write,Rank,Size,SiteTitle FROM SCOPE() WHERE  CONTAINS(title,'taiwan') and  ("SCOPE"='LC Engagement Sites') ORDER BY Rank
    or 
    SELECT Title,Path,Description,Write,Rank,Size,SiteTitle FROM SCOPE() WHERE  title LIKE '%taiwan%' and  ("SCOPE"='LC Engagement Sites') ORDER BY Rank
    and the query packet looks like this
    <QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'>
    <Query>
    <Context>
    <QueryText language='en-US' type='MSSQLFT'><!
    [CDATA[SELECT Title, Path, Description, Write, Rank, Size, SiteTitle
    FROM SCOPE()
    WHERE CONTAINS(title,'taiwan') and
    ("SCOPE"='LC Engagement Sites') ORDER BY Rank
    ]]>
    </QueryText>
    </Context>
    <IncludeSpecialTermResults>
    true
    </IncludeSpecialTermResults>
    <Range>
    <Count>1000</Count>
    </Range>
    </Query>
    </QueryPacket>
    Is there something I'm doing wrong? I've seen many examples that show that this is possible but so far no luck.

    Hi,
    The following code for your reference:
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta name="WebPartPageExpansion" content="full" />
    <script language="javascript" src="jquery-1.8.2.min.js"></script>
    <script language="javascript" src="jquery.SPServices-0.7.2.min.js"></script>
    <script language="javascript">
    (function () {
    function querySearchService(scopeName, keywordToSearch, maxItemCount) {
    keywordToSearch = keywordToSearch.trim().replace(/\s+/g, "+");
    var queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' Revision='1000'>"
    queryText += "<Query>"
    queryText += "<Range><StartAt>1</StartAt><Count>" + maxItemCount + "</Count></Range>"
    queryText += "<Context>"
    queryText += "<QueryText language='en-US' type='MSSQLFT'>"
    queryText += "SELECT Title,Path,Description,Write,Rank,Size,SiteTitle FROM scope() WHERE CONTAINS ('" + keywordToSearch + "') AND \"scope\"='" + scopeName + "' AND ISDOCUMENT=true ORDER BY Rank DESC"
    queryText += "</QueryText>"
    queryText += "</Context>"
    queryText += "</Query>"
    queryText += "<EnableStemming>True</EnableStemming>"
    queryText += "<TrimDuplicates>True</TrimDuplicates>"
    queryText += "</QueryPacket>";
    //alert(queryText);
    $().SPServices({
    operation: "Query",
    queryXml: queryText,
    completefunc: function (xData, Status) {
    $(xData.responseXML).find("QueryResult").each(function () {
    var array = new Array();
    alert($(this).text());
    var result = $.parseXML($(this).text());
    var matches = result.find("Document");
    if (matches.length == 0) {
    alert("Nothing Found!");
    return;
    $("#dynamic-search-results").empty();
    matches.each(function () {
    url = $("Properties>Property:nth-child(2)>Value", $(this)).text();
    title = $("Properties>Property:nth-child(1)>Value", $(this)).text();
    $("#resultDiv").append($("<p></p>").append($("<a></a>").prop("href", url).text(title)));
    $(document).ready(function () {
    querySearchService("LC Engagement Sites", "SharePoint", 10);
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled 2</title>
    </head>
    <body>
    <div id="resultDiv"></div>
    </body>
    </html>
    More information is here:
    http://jeffywang.blogspot.com/2014/01/utilizing-spservices-to-call-sharepoint.html
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • Trouble with Youtube using WRT54GL

    I'm not sure if this is a problem with the router, but I'm wondering if anyone can help with this situation. I'm using a WRT54GL with stock firmware and occasionally some videos on Youtube won't load. Although, they'll load at other times. My ISP is Optimum Online and I'm using a wired connection.

    Try using other browser like firefox or opera. Seems more like browser issue.

  • I have a mac and using firefox as my browser . Yahoo does not load properly. Not having trouble with yahoo using safari.

    WHen I try to open yahoo with firefox it loads extra slow and some of the functions are not available.

    So I just got back from vacation and uninstalled firefox. Reinstalled it and I still have the same problem. The odd thing is now it doesn't work in Google Chrome either. So I'm sure it is a Mac problem now. Probably has nothing to do with FireFox and everything to do with being dumb enough to buy a 4000 $ paperweight called mac. What a hunk of junk.
    Thanks for your help.
    I loved that book to.

  • TS3276 Trouble with Mail using Lion

    I just converted to Lion and am not receiving any emails, although connection doctor shows all accounts to be green.  What am I doing wrong?

    From the Mail menu bar, select
              Window ▹ Connection Doctor
    In the window that opens, uncheck the box marked
              Log Connection Activity

  • Trouble with video on Skype using lion os

    I am having trouble with video using skype. I can only use the facetime video and can't expand the screen. I have tried removing and reinstalling skype

    use these commands when your are in a video session. (under video) in facetime

  • Having trouble with downloads on hotspot

    Having trouble with downloads using Verison hotspot as internet access. download starts but freezes about halfway through and is extreemly slow.

    See this thread: [[/en-US/questions/894442]] OWA 2010/Firefox 8 and ASHX Attachments

  • I have a problem with someone using my information on facebook. I would like to see a code i can use or password from firefox. Can I do this?

    I would like firefox to be more secure. I have trouble with someone using my facebook account. Is there a way that you can do that, or I will have to go to facebook for this?

    Remove current password and Set a strong password,[1, 2 ]Go to Facebook application Link and remove permission of all unknown untrusted application,[3 ]activate security notification via Account Settings then try
    ask Facebook help center forum for more security tips[4]
    * 1- http://www.facebook.com/help/?faq=213395615347144
    * 2- http://www.facebook.com/help/?page=227159377299846
    * 3- http://www.facebook.com/help/?page=121359044613137
    * 4- http://www.facebook.com/help/community

Maybe you are looking for

  • Aging report

    hi I am developing a aging report for which I am getting fields from the tables EKPO and EKKO based on s_gjahr  FOR bsid-gjahr  OBLIGATORY.    "Document Fiscal year p_date   TYPE vbak-aedat OBLIGATORY,    "A/P Open items p_bukrs  TYPE t001-bukrs OBLI

  • Trigger problem -- can't insert the same data into audit table

    Sir/Madam, I'm trying to use insert trigger with a 'long raw' datatype data for my audit purpose. Each time, the data of original table can be inserted correctly. While the trigger for audit table in which it contains almost the same data as original

  • Link-local multicasting

    I'm trying to do multicast imaging in an environment without practical access to a DHCP server. I have a 48-port switch which I'm assured is configured as a "flat" switch. If I connect two or more computers to this switch (without connecting the swit

  • Adding straight line/outlines

    the answer is probably stairing straight at me, but for the life of me, I cannot seem to figure this simple task out. I am designng a rack card and wish to create a stright line border on the edges of the card. How do I add these straight lines / bor

  • Finding users and departments name

    I am using the following query to find all users there department and there responsibilities SELECT distinct employee_number, full_name,u.user_name, d.name ORGANIZATION_NAME, fr.responsibility_name, u.START_date, u.end_date FROM apps.per_people_f a,