Trying to get simple slide show to work.

Can anyone tell me why this simple slide show isn't working on the left side of my page? The black and white image should be changing and showing two other images every 2.5 seconds.
http://friendsoflafayette.org/andreas01_orig/index.html
Thanks,
John

Assuming you're following these steps
http://www.javascriptkit.com/howto/show2.shtml
You seem to have omitted the name attribute in the <img> tag described in Step 3.
I'm still not sure if that fixes it but see how you go.

Similar Messages

  • Trying to get simple UDP Server to work

    Hello
    I am trying to get a simple UDP Server to work. I have written the Server and a Client and upto a point the program works. I can make a request from the client and the Server sees this and sends its own response. The problem is the client doesn't seem to receive this response. The error I get is 'java.net.SocketTimeoutException: Receive timed out'.
    Below is the code for the Server;
            while (true) {
                try {
                    for (i = 0; i < sendBuffer.length; i++)
                        sendBuffer[i] = 0;
                    for (i = 0; i < receiveBuffer.length; i++)
                        receiveBuffer[i] = 0;
                    serverSocket.receive(receivePacket);
                    telemetryRequest = new String(receivePacket.getData(), 0, receivePacket.getLength());
                    jTextFieldServerStatus.setText(telemetryRequest);
                    receivePacket.setLength(receiveBuffer.length);
                    sendTelemetry = new String("airspeed=" + Math.round(Float.valueOf((airspeed))));
                    sendBuffer = sendTelemetry.getBytes("ASCII");
                    sendPacket = new DatagramPacket(sendBuffer, sendBuffer.length, clientIPAddress, clientPort);
                    sendPacket.setData(sendBuffer, 0, sendBuffer.length);
                    serverSocket.send(sendPacket);
                } catch (IOException e) {
                    jTextFieldServerStatus.setText("Error on server socket");
                    return;
            }I have tested the Client against another UDP Server and this works, so I believe it is something in my Server code causing the problem.
    If anyone has a solution to this problem I would really appreicate their help.
    Regards
    Gary

    Cross post:
    http://forum.java.sun.com/thread.jspa?threadID=792481&messageID=4503960#4503960

  • Can't get photo gallery slide show to work

    Hello,
    If anyone could help, I'd appreciate it. This is for a
    non-profit I work for. After getting the gallery to work, I can't
    get the slide show to work.
    from my gallery.html:
    <title>Photo Gallery</title>
    <link href="../css/screen.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="includes/xpath.js"></script>
    <script type="text/javascript"
    src="includes/SpryData.js"></script>
    <script type="text/javascript"
    src="includes/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGallery = new Spry.Data.XMLDataSet ("photos.xml",
    "gallery/photos/photo");
    var dsData = new
    Spry.Data.XMLDataSet("photos.xml","gallery");
    </script>
    <script src="gallery.js" type="text/javascript">
    </script>
    <script src="SpryMenuBar.js" type="text/javascript">
    </script>
    <style type="text/css">
    #main (I'm not incl. details for these - to save space)
    #thumbContainer
    #controls
    #header
    </style>
    </head>
    <script type="text/javascript">
    </script>
    </head>
    <body>
    <div id="header" spry:region="dsData">
    <p>{sitename}<br />
    </div>
    <div id="thumbContainer" spry:region="dsGallery">
    <img src="thumbnails/{@thumbpath}"
    spry:repeat="dsGallery" class="thumbs"
    spry:setrow="dsGallery"/> </div>
    <div id="main" spry:detailregion="dsGallery">
    <img src="images/{@path}" class="images"/>
    </div>
    <div id="controls">
    <ul id="transport">
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage(true);"
    title="Previous">Previous</a></li>
    <li class="pausebtn"><a href="#" onclick="if
    (gSlideShowOn) StopSlideShow(); else StartSlideShow();"
    title="Play/Pause" id="playLabel">Play</a></li>
    <li><a href="#" onclick="StopSlideShow();
    AdvanceToNextImage();" title="Next">Next</a></li>
    </ul>
    </div>
    <div id="thumbContainer" spry:region="dsPhotos
    dsGallery">
    <p class="ClearAll"></p>
    </div>
    </div>
    <p class="clear"></p>
    </div>
    </body>
    </html>
    Here's the gallery.js file: (didn't include the global vars -
    to save space)
    dsGallery.addObserver(function(nType, notifier, data) {
    if (nType == "onPreLoad")
    StopSlideShow();
    Spry.Data.Region.addObserver("thumbContainer",
    function(nType, notifier, data) {
    if (nType == "onPostUpdate")
    ShowCurrentImage();
    if (gAutoStartSlideShow)
    StartSlideShow(true);
    function SetMainImage(imgPath, width, height, tnID)
    var img = document.getElementById("mainImage");
    if (!img)
    return;
    CancelBehavior("mainImage");
    Spry.Utils.SelectionManager.clearSelection("thumbnailSelection");
    if (tnID)
    Spry.Utils.SelectionManager.select("thumbnailSelection",
    document.getElementById(tnID), "selectedThumbnail");
    if (gImageLoader)
    gImageLoader.onload = function() {};
    gImageLoader = null;
    gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
    Spry.Effect.getOpacity(img), 0, { duration: 400,
    finish: function()
    gBehaviorsArray["mainImage"] = new
    Spry.Effect.Size(img.parentNode,
    Spry.Effect.getDimensions(img.parentNode), { width: width, height:
    height, units:"px"}, {duration: 400,
    finish: function()
    gImageLoader = new Image();
    gImageLoader.onload = function()
    img.src = gImageLoader.src;
    gImageLoader = null;
    gBehaviorsArray["mainImage"] = new Spry.Effect.Opacity(img,
    0, 1, { duration: 400,
    finish: function()
    gBehaviorsArray["mainImage"] = null;
    if (gSlideShowOn)
    SetSlideShowTimer();
    gBehaviorsArray["mainImage"].start();
    gImageLoader.src = imgPath;
    gBehaviorsArray["mainImage"].start();
    gBehaviorsArray["mainImage"].start();
    function CancelBehavior(id)
    if (gBehaviorsArray[id])
    gBehaviorsArray[id].cancel();
    gBehaviorsArray[id] = null;
    function SizeAndPosition(id, toX, toY, toWidth, toHeight,
    callback)
    CancelBehavior(id);
    var effectCluster = new Spry.Effect.Cluster( { finish:
    callback } );
    var ele = Spry.Effect.getElement(id);
    var moveEffect = new Spry.Effect.Move(ele,
    Spry.Effect.getPosition(ele), { x: toX, y: toY, units: "px" }, {
    duration: 400 });
    var sizeEffect = new Spry.Effect.Size(ele,
    Spry.Effect.getDimensions(ele), { width: toWidth, height: toHeight,
    units: "px" }, { duration: 400 });
    effectCluster.addParallelEffect(moveEffect);
    effectCluster.addParallelEffect(sizeEffect);
    gBehaviorsArray[id] = effectCluster;
    gBehaviorsArray[id].start();
    function GrowThumbnail(img, width, height)
    Spry.Utils.addClassName(img, "inFocus");
    img.style.zIndex = 150;
    var id = img.getAttribute("id");
    var twidth = Math.floor(width * .75);
    var theight = Math.floor(height * .75);
    var tx = (gThumbWidth - twidth) / 2;
    var ty = (gThumbHeight - theight) / 2;
    SizeAndPosition(id, tx, ty, twidth, theight,
    function(b){gBehaviorsArray[id] = null;});
    function ShrinkThumbnail(img)
    Spry.Utils.addClassName(img, "inFocus");
    img.style.zIndex = 1;
    var id = img.getAttribute("id");
    SizeAndPosition(id, 0, 0, gThumbWidth, gThumbHeight,
    function(b){gBehaviorsArray[id] = null;
    Spry.Utils.removeClassName(img, "inFocus");});
    function ShowCurrentImage()
    var curRow = dsGallery.getCurrentRow();
    SetMainImage(dsGallery.getCurrentRow()["@base"] + "images/"
    + curRow["@path"], curRow["@width"], curRow["@height"], "tn" +
    curRow["ds_RowID"]);
    function AdvanceToNextImage(moveBackwards)
    var rows = dsGallery.getData();
    var curRow = dsGallery.getCurrentRow();
    if (rows.length < 1)
    return;
    for (var i = 0; i < rows.length; i++)
    if (rows
    == curRow)
    if (moveBackwards)
    --i;
    else
    ++i;
    break;
    curRow = rows;
    dsGallery.setCurrentRow(curRow["ds_RowID"]);
    ShowCurrentImage();
    function SetSlideShowTimer()
    function KillSlideShowTimer()
    function StartSlideShow(skipTimer)
    gSlideShowOn = true;
    if (!skipTimer)
    SetSlideShowTimer();
    var playLabel = document.getElementById("playLabel");
    if (playLabel)
    playLabel.firstChild.data = "Pause";
    function StopSlideShow()
    gSlideShowOn = false;
    KillSlideShowTimer();
    var playLabel = document.getElementById("playLabel");
    if (playLabel)
    playLabel.firstChild.data = "Play";
    function HandleThumbnailClick(id)
    StopSlideShow();
    dsGallery.setCurrentRow(id);
    ShowCurrentImage();
    Thank you.

    Hi,
    I will gladly help you with your problem but please give me a
    link to your gallery wither as a private message or by email
    ([email protected]). The files here pasted are incorrect, look to
    the SetSlideShowTimer() or the StartSlideShow() functions above
    that are incomplete. Not mentioning that the CSS are really make
    the difference.
    It will take me more time to try to reconstruct your
    structure, not having all the files you reference and probably not
    being able to duplicate your problem because the deployment
    failure.
    Cristian

  • I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I keep saying this over and over, in the hope that people who do a search will find it.  Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there.  The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple.  They're expensive, but they work perfectly.
    My guess is that you bought a cheap MDP to HDMI cable, or have a defective one.  From my reading of these boards over the past few months, cheap cables have a high failure rate.  And the regular priced ones have only a slightly less of one.  Try a new one.  Make sure you do not damage the Thunderbolt port.

  • How do I get Flash animated slide shows to work on iPads, iPods, and iPhones?

    How do I get Flash animated slide shows to work on iPads, iPods, and iPhones?
    I'm using a PC. Web Site Flash generated slide show works fine on PC's.
    Does not work on Apple platforms.
    What do I use to to enable animated slide shows to work on Apple platforms?
    cliffordf51127948

    Hello,
    Flash Player is only supported on Apple OS X systems (10.6 - 10.10).  It is not, and has never been, supported on any i-Devices.  There are no plans to support these platforms.
    Maria

  • I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    I am trying to import external CSS in Edge Animate, Has anyone got a "simple" example showing this working that I could have a look at?

    Hi Vivek,
    Thanks a lot for replying, actually i am creating a short LAMP animation. In which i used Blur filter on the fire flares(SVG images), everything works just fine on google chrome, but for IE10 & Firefox the filter seems not working, so i need to know is it possible to override the fallbacks for the Blur Filter through external StyleSheet.                            
    IE10 & firefox rendered Image, blur filter not working             Google Chrome rendered Image, blur filter working perfectly
    So, can you please guide me, what shall i do in maintaining quality of my graphics as well while such animation's.

  • Simple Slide Show  makes all photos landscape. Why?

    I am trying to make a simply slide show and all photos are incorporated in "landscape" mode no matter whether they were taken in the usual landscape orientation or in a "portrait," or vertical, orientation. So all the portraits of people where the photo was shot by turning the camera 90 degrees clockwise show the subject horizontally in the slide show. How can I rotate these photos 90 degrees counterclockwise to get them back to the orientation in which they were taken? I opened the Simple Slide Show .PDF in Adobe Acrobat but when I rotate one picture 90 clockwise, all photos in the show are rotated 90 degrees clockwise. John Wirt

    Since you said Simple Slide Show, my guess is that you have Elements version 3.
    You did not say how if your camera photo files are designating that this was a portrait mode photo. There is an orientation indicator that many (but not all) cameras set indicating that the camera had been turned to portrait orientation when taking the photo.
    My experience has been that if the camera is setting this indicator, then when I first view a portrait photo in the photo well, it looks OK. Whereas if the camera does not set this indicator, the photo initially appears on its side and I must rotate it myself.
    What did you initially see in the Photo Browser for these photos - as a portrait or on its side?
    My suspicion is that there is a bug in the Elements 3 slide show that it is not recognizing this orientation indicator and that is why you see a portrait photo on its side.
    If your camera does set the orientation indicator, a circumvention is that before you do any edits on such a photo, in the Organizer Photo Browser well, rotate it 90 degrees one direction and then rotate it back to its original position. Then it will probably appear ok in your simple slide show. This cicrumvention has worked for many people.
    Barb O

  • Iphoto crashing and ERROR message when trying to EXPORT to slide show

    I am producing a simple Slide Show to be shown tomorrow at 8am.
    I created it in IPHOTO but an older version. I did some tests last night and today. Worked fine.
    Now that it is done I tried to EXPORT it to Quicktime, as a H.264 Quicktime movie.
    Dimension 1280x 720
    Stills only and no music. Classic with simple dissolves from one photo to next.
    Export and proceed and I leave it alone. After about 1/2 hour or so it crashes and give ERROR message and say
    "unable to process" or complete.
    I have tried several times and changed specs. Still crashes.
    What happened to Apple's Chat Support? Are then not online after a certain time?
    On an IMAC with 16 Gbs of RAM, and have space left on drive. this is not complex.
    anyone? It is due tonight so I can Hightail send it to AV people and it needs to be downloaded
    tonight or EARLY tomorrow for showing at 8am.
    thanks to anyone who can help.
    jc

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
    SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if iTunes crashed, you would enter "iTunes" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
    DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    ☞ If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    ☞ Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • I am trying to create a slide show but QT Pro won't open now

    I am trying to create a slide show (Time Lapse Movie) from thousands of photographs and was told to buy QT Pro. After downloading QT 7 and QT Pro yesterday, the program would not operate correctly, although I was able to work with it somewhat. Today it started out Ok but then back to same as yesterday (will not open). Any advice would be greatly appreciated.
    Bob

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailer like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    NOTE:  If you're running iPhoto 9.5 the export options will be different.
    OT

  • How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show pr

    How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show projects on it)?    I tried backup & restore without success.  I have also found the .psess files and copied them to the catalog in the new computer but when the sides shows are opened none of the images or music is there.  Only the text that I entered shows.  I have even tried to replicate the file paths from the XP computer to the new computer to see if that will help.

    UPDATE:  By a stroke of luck I happened to find a catalog link (a PSE8D file) in the 'My Catalog' file where the imported data was stored.  When I clicked on it to investigate what is was 'magically' all of my transferred projects appeared in Organizer.  Upon further investigation I found that the projects transferred from my XP computer were stored in a hidden catalog that had to be accessed through the Custom Location option in Catalog Manager (accessed by clicking File then Catalog then Custom Location).  No Windows or Elements search revealed this fact.  I am appreciative that I just got lucky.  The Adode/Photoshop company was absolutely of no help.  If fact to me their structure is designed to avoid contact with their customers unless you're buying a new product.  Their products have many good features (even though user unfriendly) and it's a shame they don't value their customers more once the sale is completed. 
    Bottom line:  All of the projects (sideshows) have been recovered and work in my new Windows 7 computer.  I hope my experience helps others. 

  • Trying to get a WRT54GX2 wireless router working with a W...

    Trying to get a WRT54GX2 wireless router working with a WPC54G wireless card. The laptop and desktop both will access the Internet and work when hardwired through the router's Ethernet ports. When trying to access wireless, the Laptop shows to be connected to the router and also to Internet, but Internet Explorer can not access any websites.  Suggestions? Thanks.

    what ip address does the laptop get ?? ensure that the laptop is not set for a static ip add....and it gets an ip add from the router ..

  • What does error number 9 mean when trying to make a slide show with Vista

    I have scanned most of my pictures into the Photo gallery set up.  I was trying to make a slide show for my family .  My side and than my husbands side.  I had one set of old pictures completed as a slide show.  The second set   is almost complete.  I have lost most of the first slide show pictures.   The second set  I cannot finish adding the remainder of the  pictures .  A box appears and says "error number  9".  I don't know what happened.   What does this mean?  How did the pictures get lost from the slide show?
    Do you know the amount of hours it took to do the scanning?  Vista doesn't make it easy.  One picture at a time.
    HELP!

    I have scanned most of my pictures into the Photo gallery set up.  I was trying to make a slide show for my family .  My side and than my husbands side.  I had one set of old pictures completed as a slide show.  The second set   is almost complete.  I have lost most of the first slide show pictures.   The second set  I cannot finish adding the remainder of the  pictures .  A box appears and says "error number  9".  I don't know what happened.   What does this mean?  How did the pictures get lost from the slide show?
    Do you know the amount of hours it took to do the scanning?  Vista doesn't make it easy.  One picture at a time.
    HELP!

  • Issues with getting the slide button to work after upgrade to iOS 7.02 and 7.03

    Ever since upgrading to iOS 7.02 and 7.03 having issues with getting the slide button to work to open up iPad 2.  Happened last week and was able to restore it to new and get it to work again and it worked great until one week later (this morning) doing the same thing.  Have tried restoring iPad to new 3 times (via itunes) and still unable to get the slide button to move so can use the iPad.  IPad able to charge, able to restore, able to sync with itunes even able to recover but not able to get past first screen where you have to slide to access iPad.  Any help would be greatly appeciated.  Live about 300 miles from nearest Apple store.

    I am beginning to wonder whether there isn't some weird problem with that Home button.
    Try this: Settings > General > Accessibility > AssistiveTouch = On
    This will place a button on the iPad's screen.
    You can move this button anywhere on the screen.
    This button gives you - amongst many other things - a soft Home button.
    To turn your iPad on, you can use the Sleep/wake button or move a small magnet across the bezel of the iPad where the volume controls are.
    If you use the magnet, then: Settings > General > Lock / Unlock = On
    Now should not need to press the Home button anymore.
    If this method allows you to use your iPad without a hitch, then suspect hardware problems with the Home button.

  • I completed my album for a slide show in iPhoto; can't get the slide show to swart with picture number 1.

    I completed my album for a slide show in iPhoto; can't get the slide show to swart with picture number 1.

    Whenever I log into icloud.com
    Using what version of which browser?
    iCloud.com requires Safari 6 or later, Firefox 22 or later, or Google Chrome 28 or later. Have you tried all of those?
    If you have, have you tried clearing your browser cache and cookies?
    For the first tine since 1989 I'm thinking about buying a PC.
    You'd have exactly the same problems on an 8 year old PC too. It's a bit unreasonable to expect such an old Mac to continue to be compatible as software is constantly updated.
    Saying that, I'm still able to access iCloud.com successfully in Safari v5.0.6 on a PowerPC Mac running Mac OS X 10.5.8, so the problem you're having is likely to be a browser issue, not something inherently wrong with the computer.
    Since all this crap started, Mail won't download my Mac.com or me.com email.
    The iCloud.com website is totally unconnected to Mail's ability to download email via IMAP. Have you checked the mail server settings are correctly setup and up-to-date?

  • I am trying to get this java program to work

    I need your help, I am trying to get this java program to work. The program is long and massive, but I got stuck in the last point where the program checks if there are a double quotes or a comma in a string.
    The string is an URL retrieved from XML files (this is already done).
    There are 4 conditions:
    Case 1
    =====
    The URL string is of invalid format and contains no commas (,) and no double quotes (").
    Make no changes to the URL string.
    Case 2
    =====
    The URL string is of invalid format and contains 1 or more double quotes (") but no commas.
    Make no changes to the URL string.
    Case 3
    =====
    The URL string is of invalid format and contains 1 or more commas (,) but no double quotes.
    Modify the URL string so that it starts and ends with a double quote (").
    Case 4
    =====
    The URL string is of invalid format and contains 1 or more double quotes (") and one or more commas (,).
    Modify the URL string so that every double quote (") becomes a double double quote (""), and so that it starts and ends with a double quote (").
    ======
    then write the modified URL string to the CSV file.
    ======
    Examples:
    1. hello ---> hello
    2. hello "big" world ---> hello "big" world
    3. hello, world ---> "hello, world"
    4. hello "big,big" world ---> "hello ""big,big"" world"

    You can do the searching with String.indexOf() and then you can make replacements (like " with "") with String.replaceAll().
    As for adding leading and trailing ", that could be done with simple concatenation.

Maybe you are looking for

  • Required code on to find out mfcc in speech recognition

    Hi frenzs I'm doing my acdemic project in speech recognition. so i have to find out mfcc for a wav file. so please send me the code. my id [email protected] Thanks Anjali

  • Latest JDBC-ODBC-Bridge

    HI, we are using JDK1.2 and dont want to change. We are extensively using jdbc:odbc - but it seems it is not really stable. Where can I find the latest jdbc-odbc-Bridge as a separate package? Can it be used with jdk1.2? Tino

  • Need help with a powerpivot chart

    I need to create a chart with the following three categories: Success inside window Success outside window Failed Seems simple enough. However, my dataset contains a calculated column based off of info contained in two other columns STATUS & FINISHED

  • Finder Places - duplicate icons every time I restart

    Every time I restart my iMac, I get duplicate icons in the sidebar under "Places." I can fix the problem by deleting the sidebar preference, and replacing it with a backup that I keep stored on my iDisk. But does anyone know of a way TO PREVENT THE F

  • Tunables for queue handling of bad recipients

    What are some good tunables in a mail host that deals with a lot of email address that aren't valid? Basically, the queues are growing bigger and bigger because of failed deliveries to the recipient (bad MX, bad email address etc...) Thanks