Need help with a SpryImageSlideShow load problem

I am using Dreamweaver CS5.
I have a spryImageSlideshow on my site. I can't get the slideshow to load if there are only 2 images or less in the slideshow. It only automatically loads the large image when there are 3 photos or more in the slideshow. How do I fix this to start with only 1-2 photos in the slideshow?

Hi
We usually need to see ALL your code to solve your issue quickly and accurately without a lot of guessing and questions back-and-forth.
Just rename a copy of your problem page  (such as "test.html")  and upload it to your server, in whatever folder the original page was located, and simply post a link in the Forum and tell us your problem.
This saves you having to cut and paste miles of code into the Forum for the page and all the dependent CSS, JS etc. files.and saves us from having to recreate all your filles, find your images and then repair your code and test the solution for you.
I trust this is helpful.

Similar Messages

  • I need help with an Apple ID problem...

    I own a Macbook and an iPod touch, I have downloaded numerous apps for the iPod over the years. 18 months ago my boyfriend got an iPhone 3GS and created an Apple ID but it would not let him download apps due to some kind of issue registering his bank card. At the time I tried to sort it out and told him to get in touch with Apple support but he was impatient and wanted to start getting apps right away so I caved in and let him use my Apple ID. The next day I realised this was a stupid thing to do when all his apps started appearing in my iTunes. However I didn't see it as too much of a problem at the time...
    Tomorrow I am going to pick up my shiny new iPhone 5 (my first iPhone ) and I am worried about plugging it into my Mac and having all these apps that I really don't want around in my iTunes. I am imagining an absolute pain in the bum trying to sort all these apps out and syncing them to the right devices? I would absolutely love to just shift all his apps over to his Apple ID, he has loads of stuff that he needs to keep now. He does not have a computer himself, but there is no real need to plug his iPhone into my macbook ever again. After having a quick read around the forums, there seems to be no simple answer to this problem. If anyone could help with this I would be extremely grateful!

    DoubleSkin wrote:
    I would absolutely love to just shift all his apps over to his Apple ID,
    You can't. All apps are forever tied to the ID used to originally obtain them. In your case, that would be your ID. He really needs to get his own ID, delete these apps, then purchase them using his ID.
    For you, just delete what you don't want from your iTunes library.

  • I need help with a software update problem??

    I recently got a new macbook pro and I was doing a software update last night as it was required but then when it started to do the update the computer installed the software and then a barring noise came from the mac and it tried to restart 4 times before it eventually came back on. The software trying to install was Fireware 800 I think. Can anyone help with this?

    Try MacBook notebook forum to talk to other users, or OS Software (Lion or Snow Leopard)
    Does not sound like an Apple OS update though.
    http://support.apple.com/downloads/
    https://discussions.apple.com/community/notebooks
    http://www.apple.com/support/macbookpro

  • Need HELP with objects and classes problem (program compiles)

    Alright guys, it is a homework problem but I have definitely put in the work. I believe I have everything right except for the toString method in my Line class. The program compiles and runs but I am not getting the right outcome and I am missing parts. I will post my problems after the code. I will post the assignment (sorry, its long) also. If anyone could help I would appreciate it. It is due on Monday so I am strapped for time.
    Assignment:
    -There are two ways to uniquely determine a line represented by the equation y=ax+b, where a is the slope and b is the yIntercept.
    a)two diffrent points
    b)a point and a slope
    !!!write a program that consists of three classes:
    1)Point class: all data MUST be private
    a)MUST contain the following methods:
    a1)public Point(double x, double y)
    a2)public double x ()
    a3public double y ()
    a4)public String toString () : that returns the point in the format "(x,y)"
    2)Line class: all data MUST be private
    b)MUST contain the following methods:
    b1)public Line (Point point1, Point point2)
    b2)public Line (Point point1, double slope)
    b3)public String toString() : that returns the a text description for the line is y=ax+b format
    3)Point2Line class
    c1)reads the coordinates of a point and a slope and displays the line equation
    c2)reads the coordinates of another point (if the same points, prompt the user to change points) and displays the line equation
    ***I will worry about the user input later, right now I am using set coordinates
    What is expected when the program is ran: example
    please input x coordinate of the 1st point: 5
    please input y coordinate of the 1st point: -4
    please input slope: -2
    the equation of the 1st line is: y = -2.0x+6.0
    please input x coordinate of the 2nd point: 5
    please input y coordinate of the 2nd point: -4
    it needs to be a diffrent point from (5.0,-4.0)
    please input x coordinate of the 2nd point: -1
    please input y coordinate of the 2nd point: 2
    the equation of the 2nd line is: y = -1.0x +1.0
    CODE::
    public class Point{
         private double x = 0;
         private double y = 0;
         public Point(){
         public Point(double x, double y){
              this.x = x;
              this.y = y;
         public double getX(){
              return x;
         public double setX(){
              return this.x;
         public double getY(){
              return y;
         public double setY(){
              return this.y;
         public String toString(){
              return "The point is " + this.x + ", " + this.y;
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }My problems:
    I dont have the right outcome due to I don't know how to set up the toString in the Line class.
    I don't know where to put if statements for if the points are the same and you need to prompt the user to put in a different 2nd point
    I don't know where to put in if statements for the special cases such as if the line the user puts in is a horizontal or vertical line (such as x=4.7 or y=3.4)
    Edited by: ta.barber on Apr 20, 2008 9:44 AM
    Edited by: ta.barber on Apr 20, 2008 9:46 AM
    Edited by: ta.barber on Apr 20, 2008 10:04 AM

    Sorry guys, I was just trying to be thorough with the assignment. Its not that if the number is valid, its that you cannot put in the same coordinated twice.
    public class Line
         private double x = 0;
         private double y = 0;
         private double m = 0;
         private double x2 = 0;
         private double y2 = 0;
         public Line()
         public Line (Point point1, Point point2)
              this.x = point1.getX();
              this.y = point1.getY();
              this.x2 = point2.getX();
              this.y2 = point2.getY();
              this.m = slope(point1, point2);
         public Line (Point point1, double slope)
              this.x = point1.getX();
              this.y = point1.getY();
         public double slope(Point point1, Point point2)//finds slope
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
    public class Point2Line
         public static void main(String[]args)
              Point p = new Point(3, -3);
              Point x = new Point(10, 7);
              Line l = new Line(p, x);
              System.out.println(l.toString());
    }The problem is in these lines of code.
    public double slope(Point point1, Point point2) //if this method finds the slope than how would i use the the two coordinates plus "m1" to
              double m1 = (point1.getY() - point2.getY())/(point1.getX() - point2.getX());
              return m1;
         public String toString()
              double temp = this.x- this.x2;
              return this.y + " = " +temp + "" + "(" + this.m + ")" + " " + "+ " + this.y2;
              //y-y1=m(x-x1)
         }if slope method finds the slope than how would i use the the two coordinates + "m1" to create a the line in toString?

  • Need help with cd/dvd drive problem.

    I have a MacBook (black) running OS 10.6.8. The internal cd/dvd drive no longer works. I put in a disk and it gets pushed back out after a few seconds.
    I just bought a LG Ultra Slim Portable DVD Writer model GP 60NB50. The MacBook recognizes the LG drive for opening music and movies, and for burning photos to a disk.
    I have been unable to use the LG drive as a start-up drive. I put Disk Warrior into the drive and restarted the computer holding down the “C” key. When the computer starts to launch there is a flash of a “?” on the screen then it loads from the hard disk. I also tried using the Apple start up disk that came with the computer but that also failed.
    Any idea how I can get the LG drive to become a start-up drive when needed?
    Thanks,
    Orin

    If your computer is a TouchSmart, and I am only guessing that it is, this document might help.
    Good luck!
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01496336&tmp_task=solveCategory&lc=en&dlc=en&cc...
    GeorgeFN
    I work on behalf of HP.

  • Need help with a very strange problem

    I've been using Macs since the Apple IIe and I haven't seen anything like this. I need some help "diagnosing" where the problem might lie, and what to do about it.
    I have the dock to appear and disappear automatically. But when I run the mouse down to the bottom of the screen, it doesn't appear. I have to "click" in that area to get it to appear. Also, when I select a menu in the finder or in an application, and then scroll through the menu items, they do not highlight as they should. I can click on an item to activate it, but they aren't highlighted as I scroll through.
    Also, in some applications, windows don't appear and disappear normally as they should. For example, with Adobe Lightroom I have it set up so that the adjustment panels on the left and right automatically appear and disappear. But they aren't doing that anymore.
    A restart and permissions repair will temporarily solve the problem, but it inevitably returns (sometimes within an hour, sometimes a few days). I have three users on my computer, and it happens in each user account.
    A couple days ago, I did an archive & install. That didn't fix it. Then yesterday I did a full reinstall of Leopard and then used Migration Assistant and Time Machine to migrate my users & applications to the new install. After I repaired permissions and rebooted, the problem was right there again.
    It doesn't seem like the problem is with a user account, since all three accounts have it. So why didn't a reinstall of the system fix it? And what can I do now?

    Althought the behavior is the same in all three accounts, if all are working accounts I would suspect there is something all of them have installed that could be the source of the problem. Try creating a new admin account, and leave it just the way Apple creates it--don't add anything nor modify it in any way. Log into that account and see if it works correctly.
    If that account is also misbehaving, try restarting, and when you hear the chime hold down the Shift key so that you boot into Safe Mode (you'll see a notice in the splash screen about being in Safe Mode). The boot will take longer (perhaps even considerably longer) as the system runs disk repair, empties some caches, disables all third party startup items, as well as all Apple startup items not strictly necessary for the machine to run. See the menus and Dock now behave correctly.
    Since the problem is evidently somewhat intermittent in nature it may take some patience to discover what is wrong. You might also disconnect everything that didn't come with the Mac, reboot, and use only the Apple keyboard and Apple mouse and run for a bit to see how that works. If you are using a third party mouse that required installing something that would be my guess as a "prime suspect" for the cause of the problems.
    Francine
    Francine
    Schwieder

  • Need help with notify() / wait() synchronization problem.

    I am trying to overcome a race condition that seems to be coming from the use of the swing ui file chooser in my code. I tried to solve this problem using wait/notify but I ended up in an infinite loop so and was wondering if anyone could help me out. Here are some code snipets:
    //Create a new monitor
    final private Object monitor = new Object();
    //in method getAppletdirectory()
    synchronized(monitor)
    //initialize the wizard which is a filechooser then call using the swingui showCenteredDialog
    DialogUtils.showCenteredDialog(wizard, -1, -1);
    monitor.notifyAll();
    //return some info from the wizard
    // in main method of this class
    File appletDirectory = getAppletDirectory(controller);
    synchronized(monitor) {
    try
    monitor.wait();
    catch (InterruptedException e){
    The method causes in infinite loop, I believe this is happening because the notify is being called before the dialog window has completed then when the wait is set up there is no notify to come. My problem is the wizard is used in other circumstances where it will not look for this. Would it be okay to add the notify() to the wizard's functionality even though sometimes there will be no monitor waiting for it? Can anyone give me any advice on this? Thanks.

    >
    The reason I believe this was a race condition is because when I run this code without the synchronized call and the DialogUtils.showinfoDialog commented out as shown below. When the zip occurs some of the files do not show up in the newly created .zip. But if I uncomment the dialog call then the .zip contains everything I expect it to.
    >
    Okay, so let's restate this:
    Problem
    I try to zip a file, but when I try to run the code above, then some of the files don't make it to the Zip archive. Some do, some don't.
    Diagnostics
    I notice when I call DialogUtils.showinfoDialog then the zip is formed properly. I think this is because the showinfoDialog method makes the user click on a button before returning. So my concern is that I am generating a race condition by <doing something... I have no idea what...>.
    Okay, so now we have that out of the way, You also say "Also, the reason I think this is an infinite loop is because when I added the synchronized calls and it gets to this part of the program it hangs and must be force quit." For there to be an infinite loop, there first has to be a loop, then there has to be a condition for ending the loop that never is reached. I still see no loop in your code, so it is impossible to have an infinte loop in any code that you have shown (there may be an infinite loop someplace else that you aren't showing). That said, your computer can hang for any number of other reasons, including any un-interrupted blocking operation (reading from a Stream, waiting on a BlockingQueue, calling wait() without notify()), or a deadlock situation. The problem with saying that you have an infinite loop is that the first thing to do to fix that is to look at the loop. If you don't know what is causing a hang, just say 'The program is hanging here.' That way we can look at different reasons for hangs, rather than getting caught up in a red herring of an infinite loop.
    Okay, down to the problem:
    1) Why are you including any synchronization? Why do you think you need it? How many Threads do you create? And where?
    2) We can't help you with the code you provided. It tells us nothing about what is going on. What is DialogUtils? FileUtils? RistrettoWizard? No clue. Don't know what any of those methods do. What context is this method called in? Why the synchronization?
    What you need to do is generate a short, working sample that shows the problem. Read [this site for examples.|http://sscce.org/] Make it simple, and complete. If I can't copy the code and run it to see your problem then I can't help diagnose it.

  • Need HELP with crazy rendering /  saving problem

    I am finishing up a project that I need to deliver on DVD in the next couple of days.
    Suddenly, something strange is happening.
    There are several audio clips that have some filters applied to them. When I play them in the timeline, they sound fine, until I render them.
    Then, the audio in those clips gets muddy and way quiet.
    When I click off the filter, the volume comes back.
    Then, if I click on the filter again, the filtered settings are applied and it sounds fine.
    However, as soon as I render, it all goes wacky again.
    This is making me nervous, as the deadline is looming.
    THanks for any help.

    What are your timeline settings for audio? What are the filters for? If you export a small section as a test, does the audio sound bad when you play back the quicktime?
    I just remembered - when I experienced this before, it was the result of audio that was inverted in one channel, so as long as they came out of separate speakers, there was no problem, but when they were mixed, they canceled each other out resulting in severely decreased volume.
    As my problem was just with Voice Over, I simply deleted one of the audio channels, then doubled the remaining one and panned it properly.
    Dunno if that's your issue, but you might investigate that...
    Patrick

  • Need help with long term Java problems

    I've been having problems with Java on my computer for about a year now, and I'm hoping that someone here can help me out.
    Java used to work fine on the computer when I first got it (a Dell laptop) and I hadn't installed anything myself. But then one day it stopped loading Java applets, and hasn't worked since. By this, I mean that I get the little colorful symbol in a box when I try to play Yahoo games, use the http://www.jigzone.com site, go to chat rooms, etc. Java menus on websites like http://www.hartattack.tv used to work still, but lately they've been giving me that symbol too.
    I've tried downloading a newer version of Java, but nothing I do seems to work, and I don't know of anything I did to trigger it not working. I'm hoping there's a simple solution to this, and I'm just dumb.
    Thanks.

    This might be way off, but it's something that's tripped me up in the past:
    If you are using Sun's Java plugin, the first time you go to a site that has a particular Java applet, you may be asked to approve/reject a security request.
    If you have clicked on any other windows while the request is first being loaded (which can take some time, because this is swing based), then the security dialog box does not pop to the top of the window stack, and doesn't add an entry into the task bar.
    It appears that Java just doesn't work, but it's actually waiting for you to click "Yes". You can check this by hitting alt-tab and seeing if the Java coffee cup icon is one of the options.
    - K

  • Hard drive crash need help with new iTunes load and backup files

    I have looked through the posts and not found my situation.
    I had my iPhone synced to a PC computer and the hard drive crashed. I had an extensive library in iTunes, but none of the music was purchased online so I can't simply download it again. It was all from CD's, many of which belonged to friends. I now have an iMac. The music I like is still on my iPhone, but not on my new iMac. When I try to sync the iPhone with my iMac it wants to delete all the music on my iPhone. Is there any way to copy the music off my iPhone first - so I can add it back into my iTunes library?

    Yes, luckily I have been in this situation.
    You can download a free application that will take your music from your iPhone and place it onto your Macintosh HD.
    One of these should suit your needs:
    http://www.macupdate.com/app/mac/19890/ipoddisk
    http://www.wideanglesoftware.com/touchcopy/index.php?gclid=CPjvvOiyr6gCFaNl7Aodm h6QIQ
    http://www.headlightsoft.com/detune/
    I hope this helped.

  • Need help with IE6 box drop problem DW CS4

    Having a problem with this page: http://www.recoverings.com/tarzan.html in IE6. Maincontent drops below the sidebar menu. Looks fine in FF, Safari, IE7.
    All other pages work well. I assume that this has something to do with the width of the .wrapnail and .thumbnail divs, but reducing the margins doesn't seem to help and the images start to get too close together. What am I missing here?
    Can someone help me solve this?
    I would also appreciate any suggestions on cleaning up my CSS. Seems like I have an awful lot of stuff in there. Maybe it's okay but could it be cleaner?
    Thanks for your help,
    Phil

    IE bug Float Drop is fairly common.  Make sure your page wrapper division is wider than the combined width of left sidebar + main content + left & right borders if any.  If that doesn't help, add an overflow: hidden rule to your floated container and make sure you have cleared both floats.
    More about float drop and the expanding box problem can be found here:
    http://www.positioniseverything.net/explorer/expandingboxbug.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Need Help With Restoring My Ipod, Problem seems Unique, please help.

    Hi, I have a mini as most of you others do as well. I will outline all the problems and the solutions I have taken to solve these problems, yet they have all failed.
    1) When trying to turn my IPOD on I run across the Folder with the Exclamation Point
    SOLUTIONS: I have tried to reset, and change the format of the drive, both have failed to solve the problem. When I try to connect the ipod to the computer (in disk mode and out of disk mode) it says The Ipod is corrupt it may need to be restored. So I restore the IPOD and it says Disconnect it and replug it into a power source (which I interpret as the wall charger). After I disconnect it (I have tried just disconnecting it when the menu restarts to the APPLE and disconnecting it by manually selecting the IPOD from the source list to disconnect after waiting) and plugging it into the wall charger I get the folder with the exclamation point again. It seems to be a cycle, and I don't know how to break it. If it is a faulty harddrive I guess I will try to replace it using the method outlined in other posts, but if I'm missing anything please let me know. Thank you.

    That's the faulty drive/OS indicator.
    If restoring the iPod from iTunes doesn't work, it's likely that the drive has died and needs to be replaced.
    It's a fairly easy task with the proper tools.

  • Need help with internal HD memory problems when using Premiere Pro?

    When using PP I keep loosing memory on my HD.
    Now this seems strange to me since I have every thing, all my video and audio files on external HDs.
    Each time I time I make a new project I end up with less space on my internal HD.
    Information related to these projects is somehow remaining on my internal HD.
    Anyone got any ideas about what I might be doing wrong?
    Dimitrije

    Premiere will slowly compile various files to help the project along, and the default place is usually your internal hard drive. Make sure your scratch disks are pointed to an external hard drive if that is what you want, also, make sure the Media Cache Files are being created on your external as well (and not the default location which is on your local drive).
    Premiere Preferences > Media
    Media Cache Files & Media Cache Database should be changed to an external disk if you don't want them created on your local disk. There are many tutorials and explanations about all of these aspects of Premiere on these forums and from other sources. Hope that helps!

  • Need help with a popup window problem

    I have this code within my certAppB.js page :
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    Which produces a popup windows that says:
    Submitting this form will begin the approval process
    You will not be able to come back to this form to edit it again
    Do you want to continue submitting this form?
    OK Cancel (these are 2 buttons)
    I want to change this to say:
    Submitting this form will begin the approval process. You will not be able to change this form once submitted. You also agree that the following statement is true and correct to the best of your knowledge and belief:
    "I, [User Name], hereby certify and state on behalf of [Company Name] that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.�6314, as applicable, including authorized waivers, as they currently exist on [Date]."
    Do you want to continue submitting this form?
    OK           Cancel
    So I have to pull the users [User Name], [Company Name], and the [Date].
    On the approverView.jsp login page ( which is the first login page users see after loggin) it shows
    the users full name, so I nabbed the code from that page:
    <body>
    <jsp:include page="logo.jsp" />
    <jsp:include page="unav-navigate.jsp" />
    <table width="100%" border="0" cellspacing="0" cellpadding="5" class="info">
    <tr>
    <td width="25%" valign="top">
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="welcome">Welcome
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <span class="sm">If you are not this person, please click <html:link styleClass="norm" href="/fake_name/logoff.do">here</html:link>.</span></td>
    <td width="2%"> </td>
    <td width="73%" valign="top"><jsp:include page="instruction.jsp" /></td>
    </tr>
    </table>
    and made this code out of it to pull the username,companyname:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    This is the userView.java page that is referanced :
    * Created on Mar 28, 2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code Template
    package org.fake.name.view;
    import java.io.Serializable;
    import java.util.List;
    import org.gama.cafs.businessobjects.TorqueDb;
    * @author chris
    public class UserView implements Serializable {
         private int userId;
         private int memberId;
         private int companyId;
         private String role;
         private String firstName;
         private String lastName;
         private String companyTitle;
         private String emailAddress;
         private String phoneNumber;
         private String companyName;
         private String address1;
         private String address2;
         private String address3;
         private String city;
         private String state;
         private String province;
         private String postalCode;
         private String countryName;
         private List productTypes = null;
         private List productTypeAcronyms = null;
         private List productTypeIds = null;
         private List tradeNameIds = null;
         private List tradeNames = null;
         private TorqueDb torqueDb = null;
         public UserView() { }
         * @return String
         public String getAddress1() {
              return address1;
         * @return String
         public String getAddress2() {
              return address2;
         * @return String
         public String getAddress3() {
              return address3;
         * @return String
         public String getCity() {
              return city;
         * @return String
         public String getCompanyName() {
              return companyName;
         * @return String
         public String getCompanyTitle() {
              return companyTitle;
         * @return String
         public String getCountryName() {
              return countryName;
         * @return String
         public String getEmailAddress() {
              return emailAddress;
         * @return String
         public String getFirstName() {
              return firstName;
         * @return String
         public String getLastName() {
              return lastName;
         * @return int
         public int getMemberId() {
              return memberId;
         * @return String
         public String getPhoneNumber() {
              return phoneNumber;
         * @return String
         public String getPostalCode() {
              return postalCode;
         * @return Set
         public List getProductTypes() {
              return productTypes;
         * @return String
         public String getProvince() {
              return province;
         * @return String
         public String getRole() {
              return role;
         * @return String
         public String getState() {
              return state;
         * @return int
         public int getUserId() {
              return userId;
         * Sets the address1.
         * @param address1 The address1 to set
         public void setAddress1(String address1) {
              this.address1 = trimString(address1);
         * Sets the address2.
         * @param address2 The address2 to set
         public void setAddress2(String address2) {
              this.address2 = trimString(address2);
         * Sets the address3.
         * @param address3 The address3 to set
         public void setAddress3(String address3) {
              this.address3 = trimString(address3);
         * Sets the city.
         * @param city The city to set
         public void setCity(String city) {
              this.city = trimString(city);
         * Sets the companyName.
         * @param companyName The companyName to set
         public void setCompanyName(String companyName) {
              this.companyName = trimString(companyName);
         * Sets the companyTitle.
         * @param companyTitle The companyTitle to set
         public void setCompanyTitle(String companyTitle) {
              this.companyTitle = trimString(companyTitle);
         * Sets the countryName.
         * @param countryName The countryName to set
         public void setCountryName(String countryName) {
              this.countryName = trimString(countryName);
         * Sets the emailAddress.
         * @param emailAddress The emailAddress to set
         public void setEmailAddress(String emailAddress) {
              this.emailAddress = trimString(emailAddress);
         * Sets the firstName.
         * @param firstName The firstName to set
         public void setFirstName(String firstName) {
              this.firstName = trimString(firstName);
         * Sets the lastName.
         * @param lastName The lastName to set
         public void setLastName(String lastName) {
              this.lastName = trimString(lastName);
         * Sets the memberId.
         * @param memberId The memberId to set
         public void setMemberId(int memberId) {
              this.memberId = memberId;
         * Sets the phoneNumber.
         * @param phoneNumber The phoneNumber to set
         public void setPhoneNumber(String phoneNumber) {
              this.phoneNumber = trimString(phoneNumber);
         * Sets the postalCode.
         * @param postalCode The postalCode to set
         public void setPostalCode(String postalCode) {
              this.postalCode = trimString(postalCode);
         * Sets the productTypes.
         * @param productTypes The productTypes to set
         public void setProductTypes(List productTypes) {
              this.productTypes = productTypes;
         * Sets the province.
         * @param province The province to set
         public void setProvince(String province) {
              this.province = trimString(province);
         * Sets the role.
         * @param role The role to set
         public void setRole(String role) {
              this.role = trimString(role);
         * Sets the state.
         * @param state The state to set
         public void setState(String state) {
              this.state = trimString(state);
         * Sets the userId.
         * @param userId The userId to set
         public void setUserId(int userId) {
              this.userId = userId;
         * @return List
         public List getProductTypeAcronyms() {
              return productTypeAcronyms;
         * Sets the productTypeIds.
         * @param productTypeIds The productTypeIds to set
         public void setProductTypeAcronyms(List productTypeAcronyms) {
              this.productTypeAcronyms = productTypeAcronyms;
         public List getProductTypeIds() {
              return productTypeIds;
         public void setProductTypeIds(List productTypeIds) {
              this.productTypeIds = productTypeIds;
         private String trimString(String str) {
              String tmp = null;
              if (str != null)
                   tmp = str.trim();
              else
                   tmp = str;
              return tmp;
         public List getTradeNameIds() {
              return tradeNameIds;
         public List getTradeNames() {
              return tradeNames;
         public void setTradeNameIds(List list) {
              tradeNameIds = list;
         public void setTradeNames(List list) {
              tradeNames = list;
         public TorqueDb getTorqueDb() {
              return torqueDb;
         public void setTorqueDb(TorqueDb db) {
              torqueDb = db;
         public int getCompanyId() {
              return companyId;
         public void setCompanyId(int i) {
              companyId = i;
    Question:
    How do I insert the code I assembled:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    INTO the function:
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    So that the popup window will show the [username], [CompanyName], [Date]. I can�t find any doc�s on how to insert logic into a function with str�s.
    Any help would be very much appreciated. Thanks in advance.
    Applications used by me: Sun solaris 8 server, Tomcat 4.1.24, pulling from postgresql 7.3, and I edit in Eclipse 2.11.

    These two tags:
    <logic:present name="UserContainer" property="userView" scope="session">
    </logic:present>
    surround things you only want to happen if there is a userView object present.
    This tag:
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    is replaced with the value of userView.getFirstName().
    So:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    becomes:
    User Jim Steinberger !
    if the userView object is present and firstName == Jim and lastName == Steinberger.
    To insert those values into your JavaScript function:
    <logic:present name="UserContainer" property="userView" scope="session">
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "";
    str5 = "I, <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>, hereby certify and state on behalf of <bean:write name="UserContainer" property="userView.companyName" scope="session"/> that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n\n" + str4 + "\n" + str5 + "\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    </logic:present>
    Should become:
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "I, Jim Steinberger, hereby certify and state on behalf of Dynamic Edge, Inc. that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n" + str4 + "\n" + str5 + "\n\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    after being processed by Tomcat and Struts. (Note: the function will not appear if userView is missing)
    By the way, you might be missing the closing bracket to function AppSubmit() { which might throw a JavaScript error. Just FYI :)
    Good luck!
    Jim Steinberger
    [email protected]

  • Need help with dbwizard in loading additional items on forms

    I used database dbblock wizard to create a form called employee. I took four fields from employee table and put them on my form.
    My questin is If i want to add more items in my form from the same employee table, how can i do it.
    These items should reside on same block as the other items.
    plss help

    Hi rahman,
    Greetings,
    Simple, just add text item, with the help of layout editor, in the same block as per your requirement and then click and check the property of newly add item to fix database => yes , column => as per your table column name / change the textitem Name as per you table column name.
    Then it will work fine.
    kanish

Maybe you are looking for