Css upload problem

I've just installed CS3 Design Premium and made changes to a
css file and uploaded it to the remote host using the put button.
The page did not find the stylesheet and displayed all over the
place. I then went to another pc and uploaded the same file to the
same place using Dreamweaver 8 and the page found the css and
displayed correctly. I then tried it on a different site with the
same result - CS3 went missing while the same file uploaded with
DW8 had no problems. View source on both pages showed the correct
link to the stylesheet.
I'm a bit confused - has any body had a similar experience or
know what's causing this?

IE uses different basic settings for margins, padding, etc. in fact no two browser are exactly the same, this is why so many css 'hack's' are around, and also why if your styles overwrite any other css styles in a css script, 'odd' behavior can occur.
One solution is to always start yor css with a css reset, and whenever you attach a css file or change your css you should always review it.
for info on css reset see: http://meyerweb.com/eric/tools/css/reset/
Another solution is to use IE conditional statments to change the css to IE specific settings
Format for IE conditional statment is:
<!--[if IE]>
<style type="text/css">
enter your revised style here
</style>
<![endif]-->
HTH
PZ

Similar Messages

  • Need a fix for Muse upload problems to GoDaddy????  I found one!

    GoDaddy now has a new cpanel named "Plesk".  In that panel you will find File Manager.  (I use the Windows version).  In the left panel of File Manager, you will see the root directory and all of its subfolders.  When you click on any of these folders, you will see their contents in the right panel.  You will also see a folder labelled "httpdocs".  This is the default folder that is set up in GoDaddy to be your "home" folder.  So, to fix your upload problems, do these steps:
    1.  Click on the httpdocs folder to see it open in the right panel.  In the toolbar above the right panel, you will see a green plus sign with the word "New".  Click on this drop-down menu.
    2.  Choose "directory"
    3.  Type in the name of one of the folders that your site will need, e.g. images, css, assets, scripts, etc.  This basically creates a subfolder within the httpdocs folder, right?  (There is a way to see how your Muse site sets up these folders prior to publish or upload.  You do this by choosing "Export as HTML" in the File menu of Muse, creating a folder on your desktop (or wherever) for the HTML export, then inspecting its contents after your save it.)
    4.  Continue to create all the subfolders within httpdocs that you will need.  Unfortunately, you have to do this one folder at a time.
    5.  After you have them set up, begin the process of uploading your site, like this:
    6.  In the File menu in Muse, you'll of course see "Upload to FTP Host ...".  Click on it.
    7.  A dialog box will open.  In the top text field, type in your website name ... you must use www. with your entry
    8.  In the "FTP Host" field, type in your domain name again like this ... "ftp.yourdomain.com" ... NO FORWARD SLASHES!!! (even if you find instructions to the contrary, like in Filezilla)  (Also, your domain might be a .org or .net, instead of a .com)
    9.  In the "Host directory" field, YOU MUST ENTER "httpdocs"!!!!  Despite what you learn, DO NOT LEAVE THIS FIELD BLANK!!!
    10.  Then enter your GoDaddy username and password.  (If you set up a different username for your GoDaddy account and your Plesk account, like I did, then use your Plesk username and password.)
    11.  Click on "Upload:  All Files"
    The next few steps are tedious, but necessary to keep your site organized on GoDaddy and to keep from confusing things.  You can probably get away with it, but, if your site doesn't load properly in a browser after doing the above steps, you'll need to click on each folder in the root directory that you copied as a subfolder in the "httpdocs" folder and delete the files.  For example, in the left panel of File Manager, you'll see the root directory.  Click on the "images" folder.  If there are any images that you need for your site in that folder, delete them.  Remember ... you've already copied them over to the images subfolder in httpdocs during your last upload described in the instructions above.  If you don't trust that you can delete them, click on the "httpdocs" folder, then click on the "images" folder and check the files.  Same files, right?  So, go ahead and delete the site files that you find in the appropriate folders in the root directory, making sure that you don't delete the ones that are NOT duplicated within the "httpdocs" folder.  Also remember that your .html pages will not require a subfolder to be set up in the "httpsdocs" folder.  They can just sit there, looking pretty.  But you will have to delete them from the root directory to keep things tidy.  Just click on the folder icon next to "root directory", and you'll see those html pages in the right panel.  Again, delete them. 
    REMEMBER:  To keep your Muse uploads to your GoDaddy site error free, you must ALWAYS make sure that "httpdocs" appears in the "Host directory" field in the "Upload to FTP Host ..." dialog box in Muse.  And all files and folders that your site needs MUST go in the "httpdocs" folder in the root directory of your site in GoDaddy's File Manager (now found in your Plesk Panel).
    I hope this wasn't too confusing.  If so, call GoDaddy.  I called them with this fix and they are using it in their phone support.

    Thank you! Thank you! Thank you! I was going out of my mind. And GoDaddy was no help (although they're usually really good.) I put all the folders in "httpdocs" and the website worked perfectly!

  • CFfile multiple upload problem

    Hello~
    I am using two cfinput tags with a type of "file" within the same form. They accept different file types, using regex validation to check each, and have different name and id values.
    <!--- FORM FIELDS ---><cfinput type="file" name="pageLayoutCSSFileUpload" class="inputArea" message="Please upload a .css file." required="yes" size="50" id="pageLayoutCSSFileUpload" validate="regex" pattern="^.*\.(css|CSS)$" /><cfinput type="file" name="pageLayoutImageUpload" class="inputArea" message="Please upload a layout image (.gif)." required="yes" size="50" id="pageLayoutImageUpload" validate="regex" pattern="^.*\.(gif|GIF)$" />
    Once the form is submitted, I am using cffile to upload each to the same directory, with the same name, but different extensions (one .css and one .gif). The first file, .css, uploads correctly. Then I get an error with the second cffile tag that the mime-type is incorrect, and that the file must be in the image/gif format. I know that the test files I am using are in the correct format, so it seems like the second cffile tag is looking at the first file that is being uploaded. I don't know how this can happen, as the "file" value for each cffile tag is being set through a form variable, which relates directly to the two seperate input fields.
    <!--- FORM ACTION ---><!--- upload page layout CSS file --->
    <cffile action="upload" destination="#local.pageLayoutsPath#pageLayout_#numberFormat(local.layoutID,000)#" file="#form.pageLayoutCSSFileUpload#" nameconflict="error" result="local.pageLayoutCSSFileUpload" accept="text/css" />
    <!--- upload page layout image file (large) --->
    <cffile action="upload" destination="#local.pageLayoutsPath#pageLayout_#numberFormat(local.layoutID,000)#" file="#form.pageLayoutImageUpload#" nameconflict="error" result="local.pageLayoutImageUpload" accept="image/gif" />
    Has anyone else had this problem? It is complicated to explain, so let me know if this doesn't make sense... Thanks!

    According to the docs (and my past experience):
    http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-73 8f.html
    <cffile action="upload"> requires a FILEFIELD attribute, which should be the name of the form field relevant to the file in question.  Note: not the VALUE of the form field, but the NAME of it.
    I'm surprised your code isn't erroring, given FILEFIELD is - appaerently - required.
    Adam

  • CSS Float Problem

    Hi All, 10 years since I've been on here (in the days of tables) I have, I'm sure a very basic css float problem in the footer and hopefully someone could take the time to review it for me.  I have checked everything but can't find the problem.  Thanks in advance;
    example of problem here  http://davidbrown.ipower.com/template/template.htm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Our Jewelry Retail Secrets - Thank You</title>
    <link href="../stylesheet/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .H1_black {color: #000000}
    p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 25px;
    font-weight: normal;
    color: #000000;
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    .headlinetxt_colour {color: #FF6600}
    .style1 {color: #ff6600}
    -->
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="wrapperfix">
        <div id="toporange_bg">login</div>
      </div>
       <div id="wrapperfix_top_grey">
        <div id="top_grey_content_wrapper">
          <div id="big_logo"></div>
          <div id="welcome_user">Welcome "username here"</div>
        </div>
      </div>
      </div>
        <div id="main_content">
          <p>
            <!--main body content goes here -->
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
          <p> Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. </p>
      </div>
        <div id="footer_container">
          <div id="footer">
            <div id="footer_left">Footer Left</div>
            <div id="footer_centre">Footer Centre</div>
          <div id="footer_right">Footer Right</div></div>
        </div>
    </body>
    </html>
    #footer_container {
    background-color: #333333;
    width: 100%;
    top: 0px;
    margin: 0px;
    padding: 0px;
    #footer {
    background-color: #666666;
    min-width: 1000px;
    margin-right: auto;
    margin-left: auto;
    padding: 0px;
    width: 1000px;
    height: 150px;
    overflow: hidden;
    clear: both;
    margin-top: 0px;
    margin-bottom: 0px;
    position: relative;
    #footer_left {
    float: left;
    width: 33%;
    margin: 0px;
    padding: 0px;
    height: 150px;
    #footer_centre {
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;
    float: left;
    #footer_right {
    float: left;
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;

    I still don't see the #footer_left rule in the CSS in the online example at
    http://davidbrown.ipower.com/template/template.htm

  • A different uploading problem

    I have read through the discussions and see that a lot of people are having an uploading problem. I am too, but my problem is a little different. When I upload my photos, everything seems to be fine, all the pages turn from blue to red, and it appears to be done. But, if I quit iWeb, it says it hasn't finished uploading. When I go to the site on the web, everything is there. So, it seems to not be finalizing the last little part where it marks the files as uploaded.
    I am using iWeb 1.1.1.
    I have tried deleting the files from my iDisk and uploading again.
    I have repaired permissions.
    I have deleted the file com.apple.iWeb.plist
    It's not that I'm trying to quit too soon, I have left it for hours, even overnight, and it doesn't complete.
    There's a small circle to the right of the word site that fills in to show progress as it's finishing, and that gets to the point where there's only a small sliver of white.
    Any ideas? Thanks for the help!
    Kirsten
    MacBook   Mac OS X (10.4.7)  

    Have you tried "Publish ALL to .Mac"?

  • Uploading problem with Ebay and Dreamweaver MX

    I am unable to sync websites with Dreamweaver MX 6.01. When I connect to the remote server, it shuts down the program. I have reinstalled the program, but it still does it. Also, when I use Safari, Opera, and Firefox to upload photos on Ebay, the upload process fails completely, and blows me directly into My Ebay, as if I was not on the selling page at all. I have to go to my PC to do the photo uploads. Seems like it may be a related issue, some kind of uploading problem with Rosetta, or something. I am using a Macbook Pro with the 2.0Ghz processor, connected with ethernet cable, and firewall is set to off. Any ideas?

    For E-Bay you might try the following:
    Type the following command in Terminal (while Safari is NOT running):
    defaults write com.apple.Safari IncludeDebugMenu 1
    Then launch Safari, and you will be able to use the new Debug menu.
    If you ever wish to disable it again, just repeat the command with a "0" instead of a "1".
    Under the Debug menu, you'll see the User Agent sub-menu; select Windows MSIE 6.0 from the list and then try connecting to your web site
    Dreamweaver you might need to update your version.
    To Dreamweaver 8.01
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=f56452a8

  • Uploading problems with Safari 4.1.3 -

    Hello, I just thought this was a funny question to ask -
    On my PowerPC G5 tower, running OS 10.4.11, and my question is in regards to Safari version 4.1.3 uploading problems for facebook and youtube... I always have to use FireFox version 3.6.13... and not without trouble either.
    I get it.  I need a new computer, but I just thought it fascinating why one works 90% of the time and the other never works.

    Firefox is way more upto date than Safari in 10.4.11, but TenFourFox is the most up to date browser for our PPCs, they even have G4 & G5 optimized versions...
    http://www.floodgap.com/software/tenfourfox/
    Also I think they Require Flash &/or Java, which may be a problem in 10.4

  • Is Safari the problem?  upload problems after Leopard install...

    I installed maximum ram and leopard 10.5 on my old emac and it runs great. I had problems uploading photos to ebay, and attachments to emails, so I installed ilife hoping the upgrade would fix the problem. Nope, when I attempt to upload, the icon just spins and spins, on and on. Could this be a Safari problem? Very frustrated, totally stumped.

    I'm not sure how to link to the iPhoto post thread that help me solve my upload problem. But it is solved. I had to resize the jpeg pic files to 640x320 because my files were way to big. Thanks Old Toad!

  • Toast Titanium/CSS error/DVD upload problems

    Does anyone have tips for me regarding Toast Titanium? I'm unable to upload any DVDs into it to burn to my hard drive. I get the same CSS error every time. A PC-using friend suggested I find the hidden files in my hard drive and erase them to clear up the error, but I have no idea where to start.
    Any help is appreciated.

    As Len said, Toast will not decrypt and copy a commercial, copy protected video DVD. The only legal (at least unless the movie studios take them to court) way to copy a copy-protected video DVD to your hard drive is with Flip4Mac's Drive-In.

  • File Upload problem: JSF, IBM WPS and Portlet - Please HELP Vey Very Urgent

    I want to upload a file from the front end using JSF and Portlets deployed on IBM WebSphere Portal.
    I have used Apache's commons file upload functionality as the file upload provided in JSF doesnot work with portlets and the action event is not invoked If I keep enctype="multipart/form-data". So I included 3 forms in my Faces JSP file.
    1) h:form = For displyign error message on screen
    2) html:form = Include the enctype="multipart/form-data" and the input type file for uploading. And a submit button
    3) h:form: Here I have a command link which is remotely excuted on click of sumit button in my html form. This is to invoke the action event in the pagecode to get the bean value from the context.
    Now in the my doView method in the portlet, isMultipartContent(httpservletrequest) always returns null as the content type is text/html and not multipart. Onclick of the submit button in the the html form I am calling a javascript function which sets the __LINK_TARGET__ to the command link in the 3rd h:form which will call the page code.
    The problem here is action is invoked only when I return false from the above javascript else it will trigger for the first time and from second time onwards it will not invoke the action event in the pagecode method. Whent the javascript function returns false, the content type is always text/html. However if I return "true" from the javascript the content type is multipart/form-data, but the action is not triggered for the second time. So basically when the javascript functions returns true, for the first click everything works perfectly. When it returns false, the content type is text/html, but the action is invoked in the page code every time.
    Returning always true would solve my problem with the content type, but the action with the command link will not get invoked always as its some type of problem with h:commanLink :(.
    I guess I gave too much info. Heres my code stepby step.
    Can somebody please tell me , how I should also invoke the action in the page code and get the content type as "multipart/form-data" at the same time.
    1:
    ======================= Faces JSP File: BPSMacro.jsp ====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="IBM Software Development Platform">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
    <%@taglib uri="/WEB-INF/tld/j4j.tld" prefix="j4j"%>
    <%@taglib uri="/WEB-INF/tld/core.tld" prefix="core"%>
    <%@page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1" session="false"%>
    <portlet:defineObjects />
    <link rel="stylesheet" type="text/css"
         href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
         title="Style">
    <script type="text/javascript">
    function formSubmit() {
         var formName2 = document.getElementById("proxy_form_main_").title;
         var formName1 = document.getElementById("BPSMacroFormId").title;
         document.getElementById("__LINK_TARGET__").value = document.getElementById("proxy_HD_COMMAND_").title;
         document.getElementById(formName2).submit();
         return false;
    </script>
    <f:view>
         <hx:scriptCollector id="bpsMacroScriptCollector">
              <f:loadBundle var="bps" basename="bordereauprocessingsystem" />
              <table bgcolor="#FFF9C3">
                   <tr>
                        <td><h:form id="BPSMacroFormMain" styleClass="form">
                             <table class="tablemiddle" cellspacing="0" cellpadding="0">
                                  <tr>
                                       <td><h:messages layout="table" styleClass="errormessage"
                                                 id="ValidationErrorMsg" /> </td>
                                  </tr>
                             </table>
                             <j4j:idProxy id="proxy_form_main_0_" />
                        </h:form></td>
                   </tr>
                   <tr>
                        <td>
                        <form id="BPSMacroFormId" enctype="multipart/form-data">
                        <table bgcolor="#FFF9C3">
                             <tr>
                                  <td height="36" width="324">Worksheet <input type="file"
                                       name="upfile" /></td>
                             </tr>
                                  <tr>
                                       <td align="center" width="324"><input TYPE="submit"
                                       onclick="return formSubmit();" value="Upload">
                                  </td>
                             </tr>
                        </table>
                        </form>
                        </td>
                   </tr>
                   <tr>
                        <td>
                        <h:form id="BPSMacroFormMain2" styleClass="form">
                             <table cellspacing="2" cellpadding="2" class="tablemiddle">
                                  <tbody>
                                       <tr>
                                            <td colspan="2" align="center"><h:commandLink
                                                 styleClass="commandLink" id="lnkuserdelete"
                                                 action="#{pc_BPSMacro.doIdUpload1Action}">
                                                 <hx:graphicImageEx
                                                      styleClass="graphicImageEx" id="imgBtnCreateUser"
                                                      value="/theme/images/btnUpload.gif" style="border:0;cursor:pointer"></hx:graphicImageEx>
                                                 <j4j:idProxy id="proxy_HD_COMMAND_" />
                                            </h:commandLink></td>
                                            <h:inputHidden id="dtSize"
                                                 value="#{pc_BPSMacro.fileDetailsList.clicked}">
                                                 <j4j:idProxy id="proxy_clicked_" />
                                            </h:inputHidden>
                                       </tr>
                                  </tbody>
                             </table>
                             <j4j:idProxy id="proxy_form_main_" />
                        </h:form>
                   </td>
                   </tr>
              </table>
         </hx:scriptCollector>
    </f:view>
    ================== END: FACES JSP FILE: BPSMacro.jsp ========================
    2:
    =================== Action event in the Page Code: BPSMacro.java ============
    public String doIdUpload1Action() {
              System.out.println("PageCode");
              FacesContext context = FacesContext.getCurrentInstance();
              BPSMacroDetailsDataBean fileDetails = (BPSMacroDetailsDataBean)context.getApplication().createValueBinding("#{fileDetails}").getValue(context);
              BPSMacroListDataBean fileDetailsList = (BPSMacroListDataBean)context.getApplication().createValueBinding("#{fileDetailsList}").getValue(context);
              PortletSession sess = (PortletSession)context.getExternalContext().getSession(false);
              sess.setAttribute("BPS_MACRO_CONTEXT", context, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_DETAILS", fileDetails, PortletSession.APPLICATION_SCOPE);
              sess.setAttribute("BPS_MACRO_FILE_LIST", fileDetailsList, PortletSession.APPLICATION_SCOPE);
              HttpServletRequest request = (HttpServletRequest)context.getExternalContext().getRequest();
              boolean isMultipart = ServletFileUpload.isMultipartContent(request);
              request.getContentType();
              return "gotoBPSMacro";
    ============== END Of Page Code Action event ==============================
    3:
    ============== doView() Portlet method ================================
    public void doView(RenderRequest arg0, RenderResponse arg1)
         throws PortletException, IOException {
              String METHOD_NAME = "doView(RenderRequest arg0, RenderResponse arg1)";
              Logger.debug(this.getClass(), METHOD_NAME, "Entering BPSMacroPortlet");
              FacesContext context = FacesContext.getCurrentInstance();      
              PortletSession sess1 = arg0.getPortletSession(true);
              BPSMacroDetailsDataBean fileDetails = new BPSMacroDetailsDataBean();
              BPSMacroListDataBean fileDetailsList = new BPSMacroListDataBean();
              context = (FacesContext)sess1.getAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              if(context != null){
                   fileDetails = (BPSMacroDetailsDataBean)sess1.getAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
                   fileDetailsList = (BPSMacroListDataBean)sess1.getAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_CONTEXT", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_DETAILS", PortletSession.APPLICATION_SCOPE);
              sess1.removeAttribute("BPS_MACRO_FILE_LIST", PortletSession.APPLICATION_SCOPE);
              HttpServletRequest servletRequest = (HttpServletRequest)arg0;
              PortletRequest pReq = (PortletRequest)arg0;
              HttpServletResponse servletResponse= (HttpServletResponse)arg1;
              System.out.println("\n\n Content Type" + servletRequest.getContentType());
              try{
                   if(context != null){
              boolean isFileMultipart = ServletFileUpload.isMultipartContent(servletRequest);
              System.out.println("\nFILE TO BE UPLOADED IS MULTIPART ? " + isFileMultipart);
              if(isFileMultipart){
                   FileItemFactory factory = new DiskFileItemFactory();
                   ServletFileUpload upload = new ServletFileUpload(factory);
                   List items = upload.parseRequest(servletRequest);
                   Iterator iterator = items.iterator();
                   while (iterator.hasNext()) {
                        FileItem item = (FileItem) iterator.next();
                        InputStream iStream = item.getInputStream();
                        ByteArrayOutputStream ByteArrayOS = new ByteArrayOutputStream();
                        int sizeofFile =(int) item.getSize();
                        byte buffer[] = new byte[sizeofFile];
                        int bytesRead = 0;
                        while( (bytesRead = iStream.read(buffer, 0, sizeofFile)) != -1 )
                             ByteArrayOS.write( buffer, 0, bytesRead );
                        String data = new String( ByteArrayOS.toByteArray() );
                        int k = 0;
                        //Check if the file is Refund or Premium
                        int dynamicArraySize = 0;// = st2.countTokens() * 9;
                        dynamicArraySize = st2.countTokens() * 9;
                        if (!item.isFormField() ){
                             File cfile=new File(item.getName());
                             String fileName = "";
                             String separator = "\\";
                             int pos = item.getName().lastIndexOf(separator);
                             int pos2 = item.getName().lastIndexOf(".");
                             if(pos2>-1){
                                  fileName =item.getName().substring(pos+1, pos2);
                             }else{
                                  fileName =item.getName().substring(pos+1);
                             File fileToBeUploaded=new File("C:\\Sal\\BPS MACRO\\FileTransfer\\Desti", fileName);
                             item.write(fileToBeUploaded);
                             validate.displaySuccessMessage(context);
              }catch(Exception e){System.out.println(e);
              Logger.debug(this.getClass(), METHOD_NAME, "Leaving BPSMacroPortlet");
              super.doView(arg0, arg1);
    ==== END: doView method in the portle class. ================================
    Thanks.

    one more question. Is there a way where I can submit two forms ?
    Thats is submit 2nd form only when the first form is submitted.
    I tried this it works.
    function formSubmit(){
    document.form1.submit();
    alert();
    document.form2.submit();
    But If I dont put an alert(basically it disables the parent page) in between, only the second form is submitted.
    If I put a delay of say 3 seconds in between then it will throw a SOCKET CLOSED error in the code triggered due to first form submit.
    Thus disabling the paresnt page for a few seconds is reolving my problem.
    Any ideas ?
    Well Basically when the Alert pop's up the parent page "STALLS" and thus the form2 does not submit till I click on OK, Is there a way I can stall the browser/Parent JSP page using JAVA SCRIPT ??
    Edited by: hector on Oct 9, 2007 11:09 AM
    Edited by: hector on Oct 9, 2007 2:12 PM

  • Ftp uploading problem

    I work on a corporate net with CS4. Uploading of sites with ftp is a problem. Is there another way to upload to html folder. I currently have to do design with CS4 DW and publish with Frontpage

    In addition to Lawrences' recommendation I use CuteFTP and have done so for years. I use the commercial version, but there could be a light (free) version still available.  Found it much more reliable than the DW FTP I'm afraid  :-)
    For very basic uploading of static files (haven't tried with dynamic sites), you can use IExplorer (or Firefox for that matter), by typing in ftp://yourdomainurl.com  and entering username and password.   I've used that if I've been away from my wn opc and had to work remotely.
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • CSS transitions problems..

    I'm using this Page Visibility code in my project, it was perfect in the last version but the latest version not quite..
    First off, when I tabbed out of the project on a web browser and when you tab back into it..
    (On the previous version) It completely stops the animation and i'll be able to trigger the code.
    (On the latest version) It skips few frames then play again.
    So, my solution was to stop the timeline of the symbol which is playing whenever it goes to another tab but another problem occurs; once you tab out again on the time when the CSS transition is happening; the transition will stop the animating object and it will not resume the transition.
    Oh btw, I'm using animate.css as my presets to my animations. I was adding and removing class and still nothing. I'll try to upload a sample but hopefully some of you will give some thoughts about this. Thank you!

    Hi Paolo
    Sharing a sample will quickly help us get to the root cause.
    Thanks for your time.
    Regards
    Avinash

  • CSS unloading problem

    Sorry a long question:
    I wonder if anyone can help me with an annoying problem.
    I'm building a site using css for the navigation bar (my
    first go at it!). I've attached it the css file by choosing attach
    css from the properties panel. Then I highlight what I want the
    style to go on and apply it.
    Once I've uploaded it, I can see the css style in my browser
    but people on different computers say they can't. What am I doing
    wrong? The site can be viewed at www.shelleyhadler.co.uk/nerja.html
    can you guys see the css???
    Is it the difference between selecting import or link when
    bringing in the css file??
    Thanks Shell

    > Is it the difference between selecting import or link
    when bringing in the
    > css
    > file??
    No. That would make no difference in how the CSS would be
    expressed on the
    page.
    > but people on different computers say they can't.
    Which computers? What do they see instead? I can see nothing
    on that page
    that might cause this to happen.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "shelleyfish" <[email protected]> wrote in
    message
    news:ejehju$ngi$[email protected]..
    > Sorry a long question:
    >
    > I wonder if anyone can help me with an annoying problem.
    >
    > I'm building a site using css for the navigation bar (my
    first go at it!).
    > I've attached it the css file by choosing attach css
    from the properties
    > panel.
    > Then I highlight what I want the style to go on and
    apply it.
    >
    > Once I've uploaded it, I can see the css style in my
    browser but people on
    > different computers say they can't. What am I doing
    wrong? The site can
    > be
    > viewed at www.shelleyhadler.co.uk/nerja.html can you
    guys see the css???
    >
    > Is it the difference between selecting import or link
    when bringing in the
    > css
    > file??
    >
    > Thanks Shell
    >

  • Css 'nth' problem

    hello
    i am having a little bit of a problem with css nth.
    this is my css code,
    table#companylist tr:nth-child(odd) {
    background-color:#999;
    table#companylist tr:nth-child(even) {
    background-color:#0F9;
    this works fine, but i have now wrapped the table row with an '<a href='#'></a>, and have now lost the formatting.
    i have tried
    table#companylist tr:nth-child(odd) a {
    background-color:#999;
    table#companylist tr:nth-child(even) a {
    background-color:#0F9;
    as well as table#companylist a tr:nth-child(odd) etc, table#companylist a tr:nth-child(even) etc, but no joy.
    any ideas anyone?

    thanks for that john, but it's still not quite working.
    i have saved and uploaded the js query, and linked it to the page with <script language="javascript" type="text/javascript" src="../scripts/tablerowclickable.js"></script>
    this is the script code:
    $(document).ready(function() {
        $('#companylist tr').click(function() {
            var href = $(this).find("a").attr("href");
            if(href) {
                window.location = href;
    my html: (from a php include)
    print("
    <table id='companylist'>
    <tr><th>Company</th><th>Address</th><th>Area</th></tr>");
    while ($db_field = mysql_fetch_assoc($result))
    print("<tr><td><a href='http://www.thesun.co.uk' >".$db_field['company']."</a></td><td>".$db_field['add1']."<br>".$db_field['add2']."<br>" .$db_field['add3']."</td><td>".$db_field['towncity']."</td></tr>");
    print("</table>");
    what am i missing?

  • Css / template problem

    I have my local site working fine but when I upload it to my
    webspace it can't find the css file and its all over the place. My
    css file is at cssfiles/psc.css. I've copied the source from my
    uploaded page below
    I have tried reuploading and everything I can think of but
    can't se what the problem is here
    Thanks
    Iain
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>about</title>
    <link href="cssfiles/psc.css" rel="stylesheet"
    type="text/css" />
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" --><!--
    InstanceEndEditable -->
    </head>

    Lots more than that. Duplicate ID values will screw things
    good.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:gqagci$so9$[email protected]..
    > ok simple one, you're missing a closing bracket after
    a:hover, put one in
    > as below:
    >
    > a:hover {
    > text-decoration: none;
    > font-weight: bold;
    > color: #FFFFFF;
    > font-family: Arial, Helvetica, sans-serif;
    > font-size: 100%;
    > }
    >
    >
    >
    >
    >
    > Osgood wrote:
    >> iain3055 wrote:
    >>> Hi Osgood,
    >>>
    >>> Its www.prestwicksailingclub.co.uk
    >>>
    >>> Iain
    >>
    >> Hi Iain
    >>
    >> I have a feeling that the server may not be set up
    correctly to interpret
    >> the css file, read this article:
    >>
    >>
    http://devedge-temp.mozilla.org/viewsource/2002/incorrect-mime-types/
    >>
    >> You should test the page in Internet Explorer
    because that will usually
    >> pass an incorrect mime type file. I don't have IE on
    this computer to do
    >> a test.
    >>
    >> However it does not pick up the css file in Safari
    either, so I'm not
    >> sure that the above applies as Safari to my
    knowledge doesn't use the
    >> Gecko browser engine to display files.
    >>
    >> The link to your css on the 'about us' page is
    technically in the wrong
    >> place. It should not be in the page title editable
    region but after it.
    >> But your other pages show the link in the correct
    position yet they still
    >> do not see the css styles.
    >>
    >> I'm just going to do a couple more tests on my own
    server to see what
    >> happens.

Maybe you are looking for