Widget for text files?

Is there a way to upload text files (either Word or PDF) with the current widgets in iWeb? If not, are there ways to embed links to these files in the web content, if they are not already published on the internet?
Thanks for any help you can give!

dockld wrote:
Is there a way to upload text files (either Word or PDF) with the current widgets in iWeb?
I don't think so. iWeb uploads such files to your server automatically when you use the +"Link To: A File"+ option in iWeb Inspector's Link tab — see towards the end of this _video tutorial_. Note that you won't be able to test the hyperlink to your PDFs within iWeb — only in a browser after publishing. This may also help:
http://web.me.com/toad.hall/Demo_1/LinkTestPage.html
Or you could post your files on free Posterous and link to them via a text or image hyperlink — then they'll be automatically presented in a convenient viewer, e.g.
http://dont-panic.posterous.com/pdf-document-example

Similar Messages

  • GUI_UPLOAD not working for text file upload with '|' as a saperater

    Dear all,
    I have used 'GUI_UPLOAD' to upload data from text file having below format,
    1000|HBK1|HKTI
    1000|HBK2|HKTI
    1000|HBK3|HKTI
    My code is as below
    *& Report  ZTEST_NEW1
    REPORT  ZTEST_NEW1.
    TYPE-POOLS: truxs,
                kcde.
    TYPES :     BEGIN     OF             ty_data2          ,
                zbukr     TYPE           payr-zbukr       ,
                hbkid     TYPE           payr-hbkid       ,
                hktid     TYPE           payr-hktid       ,
               END       OF             ty_data2         .
    DATA :            it_file   TYPE           filetable        .
    DATA :      wa_file   LIKE LINE OF   it_file          .
    DATA :      w_rc      TYPE           i                ,
                lv_file   TYPE           string           .
    DATA : it_data2 TYPE TABLE OF ty_data2,
           wa_data2 LIKE LINE OF it_data2.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-020.
    PARAMETER : pr_file   TYPE           rlgrap-filename         .
    SELECTION-SCREEN END OF BLOCK bk1                            .
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_file.
      PERFORM get_file.
    START-OF-SELECTION.
      PERFORM get_data.
    FORM get_file .
    CALL METHOD cl_gui_frontend_services=>file_open_dialog
    *  EXPORTING
    *    WINDOW_TITLE            =
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
    *    FILE_FILTER             =
    *    INITIAL_DIRECTORY       =
    *    MULTISELECTION          =
    *    WITH_ENCODING           =
        CHANGING
          file_table              = it_file
          rc                      = w_rc
    *    USER_ACTION             =
    *    FILE_ENCODING           =
       EXCEPTIONS
         file_open_dialog_failed = 1
         cntl_error              = 2
         error_no_gui            = 3
         not_supported_by_gui    = 4
         OTHERS                  = 5
      IF sy-subrc EQ 0.
        CLEAR : wa_file.
        LOOP AT it_file INTO wa_file.
          pr_file = wa_file-filename.
          CLEAR : wa_file.
        ENDLOOP.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " get_file
    FORM get_data .
    IF pr_file IS INITIAL.
        MESSAGE 'Enter file name'(002) TYPE 'E'.
      ENDIF.
      IF pr_file CP '*.xls'
        or pr_file CP '*.xlsx' . " Added
      ELSEIF pr_file CP '*.txt'.
    CONSTANTS : c_del TYPE c LENGTH 1 VALUE '|'.
        lv_file = pr_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = lv_file
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = c_del
    *   HEADER_LENGTH                 = 1
    *   READ_BY_LINE                  = 'X'
    *   DAT_MODE                      = ' '
    *   CODEPAGE                      = ' '
    *   IGNORE_CERR                   = ABAP_TRUE
    *   REPLACEMENT                   = '#'
    *   CHECK_BOM                     = ' '
    *   VIRUS_SCAN_PROFILE            =
    * IMPORTING
    *   FILELENGTH                    =
    *   HEADER                        =
      TABLES
        DATA_TAB                      = it_data2
    * EXCEPTIONS
    *   FILE_OPEN_ERROR               = 1
    *   FILE_READ_ERROR               = 2
    *   NO_BATCH                      = 3
    *   GUI_REFUSE_FILETRANSFER       = 4
    *   INVALID_TYPE                  = 5
    *   NO_AUTHORITY                  = 6
    *   UNKNOWN_ERROR                 = 7
    *   BAD_DATA_FORMAT               = 8
    *   HEADER_NOT_ALLOWED            = 9
    *   SEPARATOR_NOT_ALLOWED         = 10
    *   HEADER_TOO_LONG               = 11
    *   UNKNOWN_DP_ERROR              = 12
    *   ACCESS_DENIED                 = 13
    *   DP_OUT_OF_MEMORY              = 14
    *   DISK_FULL                     = 15
    *   DP_TIMEOUT                    = 16
    *   OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    ENDFORM.                    " get_data
    In my output I am only getting company codes and not getting other two columns, can any body guide me where I am doing wrong?
    I have checked many other same kind of threads and I have done the same as suggested to do but still I am facing issue.
    Thanks in advance.
    Regards,
    Umang

    Hi Umang,
    There is a simple solution to this problem. Make the following changes to your code(marked in red color):
    REPORT  ZTEST_NEW1.
    TYPE-POOLS: truxs,
                kcde.
    TYPES :     BEGIN     OF             ty_data2          ,
                zbukr     TYPE           payr-zbukr       ,
                hbkid     TYPE           payr-hbkid       ,
                hktid     TYPE           payr-hktid       ,
               END       OF             ty_data2         .
    types: begin of ty_data
                 str type char200,
               end of ty_data.
    DATA: it_data type table of ty_data,
               wa_data type ty_data.
    DATA :            it_file   TYPE           filetable        .
    DATA :      wa_file   LIKE LINE OF   it_file          .
    DATA :      w_rc      TYPE           i                ,
                lv_file   TYPE           string           .
    DATA : it_data2 TYPE TABLE OF ty_data2,
           wa_data2 LIKE LINE OF it_data2.
    rest of the code **
    FORM get_data .
    IF pr_file IS INITIAL.
        MESSAGE 'Enter file name'(002) TYPE 'E'.
      ENDIF.
      IF pr_file CP '*.xls'
        or pr_file CP '*.xlsx' . " Added
      ELSEIF pr_file CP '*.txt'.
    CONSTANTS : c_del TYPE c LENGTH 1 VALUE '|'.
        lv_file = pr_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = lv_file
       FILETYPE                      = 'ASC'
    *HAS_FIELD_SEPARATOR           = c_del                    "comment this line
    HEADER_LENGTH                 = 1
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = it_data
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_READ_ERROR               = 2
      NO_BATCH                      = 3
      GUI_REFUSE_FILETRANSFER       = 4
      INVALID_TYPE                  = 5
      NO_AUTHORITY                  = 6
      UNKNOWN_ERROR                 = 7
      BAD_DATA_FORMAT               = 8
      HEADER_NOT_ALLOWED            = 9
      SEPARATOR_NOT_ALLOWED         = 10
      HEADER_TOO_LONG               = 11
      UNKNOWN_DP_ERROR              = 12
      ACCESS_DENIED                 = 13
      DP_OUT_OF_MEMORY              = 14
      DISK_FULL                     = 15
      DP_TIMEOUT                    = 16
      OTHERS                        = 17
    IF SY-SUBRC  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    Loop at it_data into wa_data.
    split wa_data-str at '|' into wa_data2-zbukr wa_data2-hbkid wa_data2-hktid.
    append wa_data2 to it_data2.
    clear wa_data2.
    Endloop.
    ENDFORM.                    " get_data
    IT_DATA2 will contain the final uploaded data. Hope this helps

  • Quick look for text files with non-registered extensions

    It seems there was a way in 10.5 and 10.6 to register certain extensions with Quick Look to tell them how to preview a file. I have a lot of plain text files with different extensions that are not initially recognized by Quick Look. How do I hack the registry to tell Quick Look to preview a .cfg (or .aux, etc.) file as plain text?

    Can't Quick Look for some text files
    Re: Is it possible to change the viewing format?
    Quick Look for files without extensions.
    Re: Can I view text files without a .txt extension in Quick Look?
    How do I add support to Quick Look

  • SetContentType for text files

    Hi all
    I am trying to implement attachement viewing with servlets. Following is what I am doing in order to set the application type which will open the file.
    I can open all types of files except text. setcontenttype("text/html") should take care of text files. but I just get a blank page when I try to open the text file. no errors either.
    what could be the problem?
    following is the relevant code:
    if (fileName.indexOf("xls") > -1)
    res.setContentType( "application/vnd.ms-excel" ); // MIME type for xls document
    }else if (fileName.indexOf("pdf") > -1)
    res.setContentType( "application/pdf" ); // MIME type for Adobe pdf document
    }else if (fileName.indexOf("doc") > -1)
    res.setContentType( "application/msword" ); // MIME type for MSWord document
    }else if (fileName.indexOf("ppt") > -1)
    res.setContentType( "application/powerpoint" ); // MIME type for powerpoint document
    else
    res.setContentType("text/html");

    also if i view source in the blank page, i can see the following:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
    <BODY></BODY></HTML>
    not sure where this comes from? but content=text/html is correct since i am setting it.
    any hints?

  • Where is a good source for text files?

    Hi
    I've just finished implementing a huffman tree and been testing it out. It seems to be working fine - encoding and decoding results look correct.
    However, I really want to test this tree out with a larger 'dictionary', so that I can construct a larger tree and check if performance is any slower. Does anyone know where I can find a collection of large text documents that I can easily download and have my code run over it?
    I tried googling, but haven't came across anything useful. Ideally, I would like to find documents of different topics. e.g. medical, computing, and a more general type that resembles everyday language. The reason I am wanting these is so I can test the encoding of different text on different tree types. Thus, encoding a computer journal on a tree constructed from the frequencies of a medical text file, should yield poorer compression than encoding the same computer journal on a tree constructed from the frequencies of a computing text file.
    Thanks

    Google "project gutenberg" for a bunch of text.
    Plain ASCII isn't enough for pictures and many fields' texts. So a lot of modern texts tend to be PDFs and such, which might not suit your purpose.
    Maybe you could also use web pages as test data. Write a program that googles for "medical", downloads the first 100 hits, optionally replaces <.*> with a space, and runs your program on that.

  • Uunable to find the default app.......for text file.....

    Hi guys,
         Iam unable to view the downloaded text file (.txt)  in my BlackBerry playbook....the error message is showing as "unable to find the default app.
        Please help me 

    Please check your other message posted where I've responded.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Byte Order Mark for text file

    Dear all,
    I am currently working on ABAP development which create flat text file to client PC. Now the file may contain multi language, so the text encoding is UTF-8.
    My question is that I want to create UTF-8 file with BOM (Byte Order Mark).
    Is there a way to add that?
    Thanks a lot for your input in advance.
    Regards,
    Kazuya

    Hi,
    You can use the parameter WRITE_BOM of FM/method gui_download to do this.
    Kr,
    Manu.

  • Partial Overwrite for text file

    I am trying to figure out how to overwrite a single line in a text file for an appointment program I am making. I am having a difficult time with this because I can't figure out how to overwrite a single line. If I could solve this, I could get my delete button (it's GUI) working and my edit button working. Thanks in advance!
    -Vegunks

    The short answer is that "overwriting" in a text file is problematic, and for a couple reasons:
    1. Often you want to replace 50 characters with 70 characters or 30 characters and you can't make a file simply grow or shrink like that.
    2. Your text encoding may have some surprises in store for you. Common encodings like UTF-8 can encode a single character as 1, 2 or three bytes depending on its value, so even if you think you are replacing 50 characters with 50 characters, you may be replacing 80 bytes with 84 bytes.
    The solution is to rewrite the entire file. More precisely:
    1. create a new file and write to it.
    2. delete the old file.
    3. rename the new file to take the place of the old file.
    edit: too slow!

  • Algorithm for Text file comparision

    Hi Everyone,
    Please help me how to develop a utility for comparining two text files and display the output in the browser as given
    Added
    Modified
    Removed
    Thanks

    Hi Everyone,
    Please help me how to develop a utility for
    comparining two text files and display the output in
    the browser as given
    Added
    Modified
    Removed
    ThanksHi,
    As u mentioned it as Text file, read both the files and store the content in a StringBuffer and compare the content to check whether new content is added, modified or deleted

  • No support for text files attached in emails

    I was shocked to discover that a simple RTF (Rich Text File) is not supported by iPhone. I was sent a small attachment as a text file and was unable to open it. Surely something as simple as a text file attachment should be easy to display.
    Come on Apple, lets get working on version 1.1

    fixed in later OS

  • Help with makin an interface for text files in a directory

    hi all..
    i m in need to help for making a GUI, that takes all the filenames from a directory, count them,
    display all their names on the GUI in form of radio buttons... for the user to choose from..
    and then their shud be some options of changin the data inside the particular file that is chosen..
    and storin it back...
    i thought to do the GUI part in applet... and other program in simple java code....
    but there is some problem in insert that code in applet...
    can anyone help tellin me .. if this task can be fully done in java itself..
    or can suggest anyother language,,,,
    i also have problem in readin the filenames from directory..
    and showin it as a option in interface????
    please help...
    thanks to all

    Hello, I'm trying to do a thing pretty much the same although more simple.
    I'm trying to list all contents of a directory, then check if the directory has a directory inside it named according to the contents of the file readed. To summarize, I'm trying to repeatedly open files and compare them.
    Here is the code I've written so far:
    package archivos;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.io.File;
    import java.util.StringTokenizer;
    class ej18 extends Frame implements ActionListener
         private TextField tf;
         private Button b;
         private TextArea ta1,ta2,ta3,ta4;
         private Label la;
         ej18()
              setLayout(new FlowLayout());
              setSize(200,200);
              setVisible(true);
              la = new Label("Escribe el nombre del directorio donde se encuentra patrones y patrones.txt:");
              tf = new TextField("",20);
              ta1 = new TextArea(15,40);
                    ta2 = new TextArea(15,40);
                    ta3 = new TextArea(15,40);
                    ta4 = new TextArea(15,40);
                    b = new Button("Comenzar");
              b.addActionListener(this);
              add(la);
              add(tf);
              add(b);
              add(ta1);
          add(ta2);
          add(ta3);
              add(ta4);
          pack();
         public void actionPerformed(ActionEvent e1)     
              String x,y;
              Button Boton;
              Boton = (Button)e1.getSource();
              int op=0;
              if(Boton==b)
                   try
                     x=tf.getText();
                   File patrones = new File(x);
                   if(patrones.exists()&&patrones.isDirectory())
                   {ta1.append("******\nDirectorio <patrones> existe\n");}
                   else{ta1.append("Directorio <patrones> no existe\n");}
                   String[] files1 = patrones.list();
                   ta1.append( "Archivos:\n" );
                   for( String file : files1 ){ta1.append( file + "\n");}
                   File textfile = new File(x,"patrones.txt");
                   if(textfile.exists()&&textfile.isFile())
                   {{ta2.append("******\nArchivo <patrones.txt> existe\nContenido:\n");
                    BufferedReader in = new BufferedReader(new FileReader(textfile));
                        String s="";
                             //tokeinzer
                       while ( s != null )
                   ta2.append(s+"\n");
                        s = in.readLine();
                             String rs=s;
                   String[] result = rs.split(",");
                             String r = result[result.length-1];
                             File textfile1 = new File(x,r);
                   if(textfile1.exists()&&textfile1.isFile())
                             {ta3.append("*****\nArchivo <"+r+"> existe\nContenido\n");
                   StringTokenizer st = new StringTokenizer(r,".");
                   String rr=st.nextToken();
                             File textdir = new File(x,rr);
                   if(textdir.exists()&&textdir.isDirectory())
                             {ta4.append("*****\nEl directorio <"+rr+"> existe\n");
                   String[] files2 = textdir.list();
                   ta4.append( "Archivos:\n" );
                   for( String file : files2 ){ta4.append( file + "\n");}
                             else{ta4.append("*****\nEl directorio <"+rr+"> no existe\n");}
                   BufferedReader in1 = new BufferedReader(new FileReader(textfile1));
                             String ss="";
                       while ( ss != null )
                          ta3.append(ss+"\n");
                          ss = in1.readLine();
                             else{ta3.append("*****\nArchivo <"+r+">  no existe\n");}
                             //!tokenizer
                        in.close();}}
                   else{{ta2.append("Archivo <patrones.txt> no existe\n");}}
                   catch (Exception e2)
                        System.err.println("File input error");
    class Intanciador_ej18
         public static void main(String ar[])
              ej18 obj = new ej18();
    }

  • Reg Sender AS2 module configuration for text file

    Hi Experts,
    I am working on an inbound scenario where Sender is AS2 and Receiver is SAP system in PI7.4. The Sender Trading Partner is Sending a text file which should be converted to xml. I have added the module parameter localjbs/PlainConverterModule .It is throwing the error as per the attached file.
    Could anyone please guide me on this issue. Also Please let me know whether any configuration needs to be set in EDI content Manager.
    Cheers,
    Neethu

    Hi Neethu,
    according to the b2b help the module is used to convert EDIFACT message standards into XML. I your case you have flat file comming from AS2. you can use message transform bean to convert flat file to XML in sender as2 adapter. Or you need to define ED XML converter. Please refer the below link
    SAP PI: Using the B2BADDON EDI<>XML Convertor Modules - Basics
    You configure the communication channels of any Process Integration adapter with the PLAIN-XML converter module to convert business documents encoded in EDIFACT message standards into XML and the other way round. It must be configured in the sender and receiver channels based on the business scenario. The PLAIN-XML converter module runs on the SAP NetWeaver Process Integration Adapter framework.
    You use this procedure to configure the parameters of the PLAIN-XML converter module.
    source - Configuring the PLAIN-XML Converter Module - SAP NetWeaver Process Integration, business-to-business add-on 1 - SAP Libr…
    regards,
    Harish

  • Pwd for text file

    Is it possible we can created a password protected text file.  I created a program to download a text file, I have to create it as pwd protected. is it possible, how?

    I don't think you can create TXT file with password protected. But you can do using fm  "GUI_EXEC" to call WinZip. ( Zip file can be password protected using command line feature of winzip Command Line Support Add-On )

  • Pages as default program for text files

    I don't want pages to be the default program for opening word files, how can I change it back to Text Editor?

    Select a document in the Finder, choose Get Info from the File menu, click on Open With, select the desired application, and press the Change All button.
    (85631)

  • Tiff viewer for text files.

    I recently purchased an iPad 3. I need to view and sign tiff files that are text form sent from my office. How can I save them and send them back? The only information I can find so far are referring to picture files. What type of app do I need?

    All I could find is a tiff viewer:
    http://appshopper.com/productivity/tiff-fax-viewer
    There are computer apps that can convert them to PDFs and there are many PDF readers apps for the iPad that allow you to sign/annotate PDFs. GoodReader is one. There is also PDF Annotate.

Maybe you are looking for

  • How to install adobe premiere pro cs6 64-bit in 32-bit computer

    Hello is there any method to install adobe premiere pro cs6 64-bit in 32-bit computer I bought  bit computor. Please tell me the solution. Thanks for your help in advance

  • FCS Client on PC quits unexpectedly

    My producers use FCS Client to view their clips on a PC with Widows XP. The app regularly crashes and it has to be relaunched. I've tried to change the cache size and have them "clear the cache" regularly and it seems to help. Is this the right way t

  • Sales order-Purchase order

    Dear Friends, Can any1 explain me the process or the cycle so that which triggers sales order and purchase order?.....the reason for this question is in one of the threads I read that purchase order will take reference as purchase requisition and pur

  • WLC 5508 duplex mismatch error

    Hi I've got a WLC 5508 connected to a Catalyst 6000 switch. In the switch I've get a CDP duplex mismatch error every 30 min. %CDP-4-DUPLEXMISMATCH:Full/half duplex mismatch detected on port 3/23 with the show port command I can see this: Port  Name  

  • DVMC Saving Potential for table COEP

    Hello All, i am curious to know the answer for the below interesting topic. We have implemented the Solution Manager DVMC tool for few production systems. After we setup the query and BPM to analyze the saving potential calculation for the few of the