Popup text boxes or shadowboxs

In using Dreamweaver: I want to use a "onClick link" and have a popup text box or even a shadowbox that slightly darkens the webpage.
I will have links to these different popups all over the html page.
I want to specify the size of the box - same for all (with scroll if need be)
I really only need the box to contain text (having the ability to use styles would be nice, but not a game breaker)
Dreamweaver's popup text box does not give me control and is different in all browsers.( in Chrome it says JavaScript Alert at the top of the box - not what I want to see)
I have Dreamweaver CSS5, but am into writing my own css rules. Just need a little support here.  Thanks

I like jQuery Fancybox2.  It's very simple to set-up and it can handle just about anything you care to toss at it.  Copy & paste the following code into a new, blank document.  Save & Preview in browsers.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 with Fancybox2 and Divisions</title>
<!--LATEST JQUERY CORE LIBRARY-->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<!--FANCYBOX plugins-->
<link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
<script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
<style>
/**CSS Reset, fixes box-model in fluid layouts**/
margin:0;
padding:0;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
box-sizing:border-box;
/**this styles thumbnail container**/
#thumbs p {
    float: left;
    width: 180px;
    margin: 10px;
    padding: 10px;
    text-align: center;
    border: 1px solid silver;
    /**optional rounded borders**/
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
/**use same size thumbnail images**/
#thumbs img {
    width: 160px; /**adjust width to thumbnail**/
    height: 120px; /**adjust height to thumbnail**/
    opacity: 0.75;
#thumbs img:hover { opacity: 1.0 }
/**float clearing**/
#thumbs:after {
    content: "";
    clear: left;
    display: block;
/**hidden content**/
#detail-01, #detail-02, #detail-03 { display: none; }
img {
    max-width: 100%;
    margin: 0 auto;
    display: block
</style>
</head>
<body>
<header>
<h1><a href="http://fancyapps.com/fancybox/">Fancybox2 Viewer</a> with images &amp; divs</h1>
<h2>Details are hidden until thumbnails are clicked.</h2>
</header>
<!--insert thumbnails with links to details below-->
<div id="thumbs">
<!--thumbnail 01-->
<p><a class="inline" data-fancybox-group="gallery" href="#detail-01"><img src="http://placehold.it/160x120&text=THUMBNAIL 01" alt="Thumbnail 01" /> </a></p>
<!--detail for thumbnail 01-->
<div id="detail-01"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 01" alt="image 01"><h3>Heading 3</h3>
<p>Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
<!--end detail-01--></div>
<!--thumbnail 02-->
<p><a class="inline" data-fancybox-group="gallery" href="#detail-02"><img src="http://placehold.it/160x120&text=THUMBNAIL 02" alt="Thumbnail 01" /> </a></p>
<!--detail for thumbnail 02-->
<div id="detail-02"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 02" alt="image 02"><h3>Heading 3</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
<!--end detail-02--></div>
<!--thumbnail 03-->
<p><a class="inline" data-fancybox-group="gallery" href="#detail-03"><img src="http://placehold.it/160x120&text=THUMBNAIL 03" alt="Thumbnail 01" /> </a></p>
<!--detail for thumbnail 03-->
<div id="detail-03"> <img src="http://placehold.it/500x320&text=FULL SIZE IMAGE 03" alt="image 03"><h3>Heading 3</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
<!--end detail-03--></div>
<!--end thumbs--></div>
<footer>Your footer</footer>
<!--invoke FancyBox on page load-->
<script>
$(document).ready(function() {
$("a.inline").fancybox({
'transitionIn'    :    'elastic',
'transitionOut'    :    'elastic',
'speedIn'        :    600,
'speedOut'        :    400,
'autoScale'            : true,
'overlayOpacity'    : 0.8,
'overlayColor'    : '#505050'
</script>
</body>
</html>
Nancy O.

Similar Messages

  • Wanted a popup text box

    Hi all,
    I want a popup text box.
    My logic is like this:
    when ever i select one record and press pushbutton which is located at application toolbar, than one popup text box must display so that they will write some reason for that action and that reason must save in the "ZTABLE".
    thanking u...
    regards,
    giri.

    Hi, See this. it is usefull for you as per your requirement.
    Step 1. you have to create text object using SE75.
    Step 2. follow below program of text box editor.
    step 3. call this editor function when user press button.
    Step 4 .you need to create screen as per program for container.
    program is:
    *& Module pool       ZEDITOR1
    *& Program to Read text, edit text and save text using editor screen
    *& For this program create sap script object using SE75
    PROGRAM  ZEDITOR1.
    *Varriable declaration
    DATA: G_CONTAINER1 TYPE SCRFNAME VALUE 'TEXT' ,
          TEXT1  TYPE REF TO CL_GUI_TEXTEDIT , " declaration to create object
          G_CUSTOM_CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER .
    CONSTANTS: LINE_LENGTH TYPE I VALUE 256.
    DATA: OK_CODE LIKE SY-UCOMM.
    DATA : ED_NAME   LIKE  THEAD-TDNAME ,
           ED_OBJECT LIKE  THEAD-TDOBJECT ,
           ED_HEADER LIKE  THEAD ,
           ED_LINES  LIKE  TLINE OCCURS 0 WITH HEADER LINE ,
           ED_TITLE  LIKE  TTXIT-TDTEXT .
    CONSTANTS: C_LINE_LENGTH TYPE I VALUE 256.
    define table type for data exchange
    TYPES: BEGIN OF MYTABLE_LINE,
             LINE(C_LINE_LENGTH) TYPE C,
           END OF MYTABLE_LINE.
    table to exchange text
    DATA : G_MYTABLE TYPE TABLE OF MYTABLE_LINE.
    DATA : G_WA LIKE  LINE OF  G_MYTABLE.
    DATA:ZSR(5) VALUE 'TX'.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'EDIT_100'.
    SET TITLEBAR 'xxx'.
    Initialize container of editor screen
      IF G_CUSTOM_CONTAINER1 IS INITIAL.
        CREATE OBJECT G_CUSTOM_CONTAINER1
               EXPORTING CONTAINER_NAME = G_CONTAINER1.
        CREATE OBJECT TEXT1
          EXPORTING
            PARENT = G_CUSTOM_CONTAINER1
            WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            WORDWRAP_POSITION = LINE_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  read_text_in_editor
          text
    FORM READ_TEXT_IN_EDITOR .
      ED_NAME = ZSR.                                            "'ZTEST2'.
    ED_OBJECT = 'ZMAT' .
      ED_OBJECT = 'ZRAJ1'. "ZALOK' .
    *--- For Reading Inspection Remarks Related text
      CLEAR: ED_LINES[],ED_LINES,G_MYTABLE[],G_MYTABLE.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          CLIENT                  = SY-MANDT
          ID                      = '01'
          LANGUAGE                = SY-LANGU
          NAME                    = ED_NAME
          OBJECT                  = ED_OBJECT
         IMPORTING
           HEADER                  = ED_HEADER
        TABLES
          LINES                   = ED_LINES
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
      IF ED_LINES[] IS NOT INITIAL.
        LOOP AT ED_LINES .
          G_WA-LINE = ED_LINES-TDLINE .
          APPEND G_WA TO G_MYTABLE .
          CLEAR  G_WA.
        ENDLOOP .
      ENDIF.
        PERFORM MOVE_TO_EDITOR.
    ENDFORM.                    " READ_TEXT_IN_EDITOR
    *&      Form  MOVE_TO_EDITOR
          text
    FORM MOVE_TO_EDITOR.
      CALL METHOD CL_GUI_CFW=>FLUSH
        EXCEPTIONS
          OTHERS = 1.
      CALL METHOD TEXT1->SET_TEXT_AS_R3TABLE
        EXPORTING
          TABLE  = G_MYTABLE
        EXCEPTIONS
          OTHERS = 1.
    ENDFORM.                    "MOVE_TO_EDITOR
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE OK_CODE.
        WHEN 'CLEA'.
          CLEAR: ED_LINES[],ED_LINES,G_MYTABLE[],G_MYTABLE.
          PERFORM MOVE_TO_EDITOR.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'DISP'.
          IF ZSR IS INITIAL.
            MESSAGE 'Enter Text No.' TYPE 'S'.
          ELSE.
            PERFORM READ_TEXT_IN_EDITOR .
          ENDIF.
        WHEN 'SAVE'.
          PERFORM SAVE_DATA.
      ENDCASE.
      CLEAR: OK_CODE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  SAVE_DATA
          text
    FORM SAVE_DATA .
      CALL METHOD TEXT1->GET_TEXT_AS_R3TABLE
        IMPORTING
          TABLE  = G_MYTABLE
        EXCEPTIONS
          OTHERS = 1.
      CALL METHOD CL_GUI_CFW=>FLUSH
        EXCEPTIONS
          OTHERS = 1.
      CLEAR : ED_LINES, ED_LINES[] .
      LOOP AT G_MYTABLE INTO G_WA .
        MOVE G_WA-LINE TO ED_LINES-TDLINE .
        APPEND ED_LINES .
        CLEAR  ED_LINES .
      ENDLOOP.
    ED_HEADER-TDOBJECT = 'ZMAT' .
      ED_HEADER-TDOBJECT = 'ZRAJ1'. "ZALOK' .
      ED_HEADER-TDNAME =  ZSR. "'ZTEST2'.              "ED_NAME .
    ED_HEADER-TDID = 'ZMAT'.
      ED_HEADER-TDID = '01'.
      ED_HEADER-TDSPRAS = SY-LANGU.
      ED_HEADER-TDLINESIZE = '072'.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          CLIENT          = SY-MANDT
          HEADER          = ED_HEADER
          SAVEMODE_DIRECT = 'X'
        TABLES
          LINES           = ED_LINES
        EXCEPTIONS
          ID              = 1
          LANGUAGE        = 2
          NAME            = 3
          OBJECT          = 4
          OTHERS          = 5.
      IF SY-SUBRC <> 0.
        CASE SY-SUBRC.
          WHEN '5'.
            MESSAGE E002(SY) WITH 'IPL' .
          WHEN '1'.
            MESSAGE E002(SY) WITH 'IPL1'.
        ENDCASE.
      ENDIF.
    ENDFORM.                    " SAVE_DATA

  • Dynamic popup text box...

    I have a text box with a ton of text in it (multiple
    paragraphs). Functionally, what I'd like to do is have it so that I
    can have people click on (or roll over) certain words, and then a
    definition pops up in a blue box (kinda like a tooltip)...
    I could make one "box" movieclip with a dynamic text field in
    it, and then just use it as a transparent button over each word
    that needs to be defined within the paragraph (loading the
    definition text inside the "box" dynamically), but I wouldn't know
    how to adjust the size of the box so that it fits each definition's
    text. (like, some definitions may be a couple words, and some may
    be a sentence or two, so if the box is always just one size, that
    won't work)...
    That being said, the only thing I can think of is having a
    separate "box" movieclip (each sized to its separate dimentions) in
    the library. But with all of those definitions, that will increase
    the file size huge...
    There's gotta be a simple solution to this that I'm missing -
    any ideas?! Thanks!...

    quote:
    Originally posted by:
    kglad
    to size your textfield use the autoSize property of
    textfields.
    I thought of that too. That solves the problem of the text
    field itself being the correct size, but I then need the box_mc
    that the text field is IN to be sized correctly....
    ...the reason I need the text field in a box (as opposed to
    just stand-alone) is simply for aesthetics. I need a
    semi-transparent blue background behind the text.
    Is there a way (maybe) to auto-size the text field, then grab
    the size that it was autosized to into variables, then apply those
    variables to size the box_mc??? I'm just grasping at straws here -
    I don't even know if that's possible...
    ...if it IS possible, could someone help get me started with
    a sample code? Thanks!

  • I'm in Lightroom 4 and trying to type text into individual slides and the text box does not let me

    In help Lightroom 4 tells me to go custom text pop-up in the slideshow module and choose a metadata option. All I want to do is add some text to some of the slides in my slide show. Since text and or caption options are not avaliabe I tried using the title option which brought up a text box that I could place on the screen but NOT type into, why not? what am I missing here? Also after editing the 490 photos I want to put them onto a DVD as an OTHG 2011 file to give to my backpacking group but Lightfoom does not explain how to create these DVDs. Thanks for your help. Hart 

    When you set that popup to 'Title', say, the slides will get a label that is filled in from the 'title' metadata, which you set for each photo in the Library Module.
    Try it.
    Hal

  • 0 down vote favorite share [fb] share [tw]        How to hide cut/copy/paste/Replace- menu on the UIWebView when it is being displayed over the keyboard.  Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text b

    How to hide cut/copy/paste/Replace… menu on the UIWebView when it is being displayed over the keyboard.
    Detail: I am having a HTML from, having text box, displayed using UIWebView. If user types in text box it shows the keyboard. Now If user tap and hold on text box it shows a popup menu. Now while keyboard and pop up are being displayed user scrolls the view. At this time it shows pop up over the keyboard which I need to hide.
    I tried setMenuVisible of UIMenuController when popup rect and keyboard rect intersects each other on viewDidScroll but it didn't help me.
    Any clues will help a lot.
    Thanks.

    You are more likely to get an answer if you post programming problems to the Developer forum. This forum is intended for normal user level problems.

  • Dynamic text box problems

    I have created a dynamic text box and an input text box.
    I have produced code that replicates whatever is typed in the
    input box to display in the dynamic box along with a date and time
    stamp once a button is clicked.
    This all works fine, except for the sizes of the fonts. for
    both boxes, i selected font size 10 . The input box is fine,
    however the dynamic box text is huge.
    When i make the dynamic text font smaller, it fits in fine,
    but the input text that is inserted into the dynamic text box comes
    in too big. If i make the input text box font smaller it is
    unreadable when typing it in.
    any soultion to how to make my font consistent. I am assumin
    the problem is because both the text boxes are different sizes,
    however i don't know how to resolve the issue.
    Any help is much appreciated.
    Laura

    hi laura
    i think the problem it's in the targetPath "
    mainClip.newspaper_mc.newinstructions.text =
    lu.welcome[langIdx];".
    chech if you have mistype the instance names of your
    movieClip and rewrite it or in the Actions panel select the path "
    mainClip.newspaper_mc.newinstructions" and click the button
    "Insert Target Path" this will open a popup with a tree of your
    MC's on the stage, so you can browse and find the textfield. i hope
    i helped you if not let me know!

  • How to pupup the calendar value into text box ?

    Hi
    I want to use the calendar for my text field .
    The calendar will popup when I click a button /image. This image will appear next to text box . when click the calendar. The values should come to into text box.
    Please give me any idea how to write a code in jsp for handling the value from calendar.
    Thanks
    Merlin Roshina

    I am assuming u have popupcalendar.js and stylesheets.
    Include the javascript in your jsp.
    <script type="text/javascript" src="scripts/popcalendar.js"/>
    and call the method popUpCalendar on some event like onclick as shown below.
    <img border="1" src="images/calendaricon.jpg" title="Open calendar" onClick="popUpCalendar(this,<object to be populated>,'mm/dd/yyyy')" alt="Calendar"/>
    <object to be populated> u can give it like this for your text box. U can define an id attribute for your text box and call document.getElementById("<id name>")
    and rest the javascript will take care.

  • Retain last value in text box

    Hi all,
    I created a html page to the content server. In that page I created a popup. When I call the popup I can write some text in the textbox to do a search on my database. Then, the results are displayed in the popup. However, if I want to do a new search I have to write again in the text box. My question is: How can I retain the last thing that I wrote in text box? (only when the popup is open)
    Like the content server does when we click on Quick Search. It shows the results and retain the value on the search box.
    Thanks in advance,
    Edited by: RRS on 27/Mai/2009 8:12

    Hey RSS,
    Yes correct, you have to change <input type="text" id="designation" name="designation" value="">
    so your line will look like this:
    <input type="text" id="designation" name="designation" value="javascript:document.getElementById('designation');">
    My javascript is a bit rusty so if that doesn't work try: value="javascript:document.getElementById('designation').value;
    (adding a .value at the end)
    Another way of doing it can be by modifying your line <form name="Entities" method="POST" action="<$HttpCgiPath$>"> and say:
    <form name="Entities" method="POST" onclick="document.getElementById('designation').value=
    document.getElementById('designation').value" action="<$HttpCgiPath$>">
    NOTE: for this last one to work u need to have that inside javascript tags, or add "avascript:" at the begining like I did for the input value above.
    Cheers,

  • Urgent Help reg setting the maxlength of a text box

    Hi all,
    I want to set the max length or the no of characters to be entered of a textbox in parent page from a child popup window.
    Even if i use the opener property the maxlength is not set. Is there any other way to set the property. I'm not refreshing the parent page when coming back from child page. I tried to set the value of the text box from child and it's working fine. But the maxlength is not working.. Is there any way to do this.. Pls help me to solve this problem.

    this is really a js question and im not sure that you can access the formElem.maxlen property unless you get into DOM coding
    ...but ...
    maybe u could use something like this and set it from the parent window to the onkeyup event on the text box in the parent
    function textLimit(field, maxlen) {
    if (field.value.length > maxlen) {
    field.value = field.value.substring(0, maxlen);
    alert('your input has been truncated!');
    } }hth
    g00fy

  • Getting CoolType invalid font error 'can't fetch cmaps' for font MyriadPro–Regular when adding text box or text callout

    Just updated Acrobat X Pro on Mac to v10.1.10
    Now if I try to add a text box or a text callout (text box with arrow) I get a popup error saying "CoolType invalid font error 'can't fetch cmaps' for font MyriadPro–Regular"
    Any ideas much appreciated.

    Hi oscar18,
    This is usually caused due to corrupt/ invalid font libraries.
    On your Mac, open up 'Font Book' and follow the instructions below:
    Hit Cmd + A to select all fonts as shown above
    Click on File > Validate Fonts
    This will open up the Font Validator that will scan all your fonts and will notify you if there are any corrupt fonts. If you do see any corrupt font libraries, please remove/ delete those fonts from your computer. Then try opening Acrobat and check.
    Regards,
    Rave

  • Using Hashtag in blog or in a Rich text box

    Out of box SharePoint provide hashtag functionality to Community site "Discussion List", from my understanding the way MS has done it, during page load ScriptForWebTaggingUI.js javascript loaded to the page which add the hastag capability to
    the body field and when user type #[SomeText] into the body textbox then js call taxonomy webservice and resulting hasttag popup window appears. What I am trying to do enable same capability to a "Rich text Box", but I am not finding any way to do
    this. Has anyone done something like this? Or Can someone provide some ideas? Also the thing, I could not figure out when user is typing #[SomeText], what js method is firing. Any help will be really appreciated. Thanks in advanced.

    Hi ,
    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Thanks,
    Eric
    Eric Tao
    TechNet Community Support

  • APEX 41 Field Help like popup message box

    I am using Apex 4.1
    And would like to use a similar popup message box to what Apex has when you click on a label that has help defined.
    For a list that is created in shared area I am wanting to use the userdefined area 1 as the message text to tell users a bit more about an icon option when they take their mouse over the field label.
    Is the popup message that is used for HELP something that can be called.
    I saw in previous posts about creating a separate form and calling it through a java script call. It can't still be that difficult in 4.1 since they have the field level help.
    Any help is appreciated.
    greG

    You're welcome, and thank you for providing further details of what you did.
    To make things look like this
    my_code := 'readable';in future, try surrounding your code with these tags like

  • Expand Text Box? "Advanced" text options not hidden?

    The title text box/editor is very small in the 10.2 update.  It's just big enough for 2 lines of text.  I find it fairly inconvenient to have it so small (I am referring to the text box in the inspector).  I'm guessing there is no way to expand this to fit more lines of text in, but if anyone knows how that'd be sweet! Otherwise I'm just crossing my fingers it gets a quick update since I'm using it every day for work.
    Also, the "advanced" tab always being collapsed in the basic text editing tools is annoying, too.  I use this every time I make a title(which I'm making two videos a day, so it's a little more tedious now after the update).  Personally, for a professional program I would consider the options in the "advanced" section to actually be basic and fairly necessary...based on how I use it, so maybe I'm not a normal case.
    Nothing is broken, just less convenient...
    Thanks y'all!

    That is a wonderful idea if I could find where to do that (maybe another feedback will be to make finding the feedback area easier (: ). Where can I find the feedback area?  Thanks for the quick reply as well!

  • Open and read from text file into a text box for Windows Store

    I wish to open and read from a text file into a text box in C# for the Windows Store using VS Express 2012 for Windows 8.
    Can anyone point me to sample code and tutorials specifically for Windows Store using C#.
    Is it possible to add a Text file in Windows Store. This option only seems to be available in Visual C#.
    Thanks
    Wendel

    This is a simple sample for Read/Load Text file from IsolateStorage and Read file from InstalledLocation (this folder only can be read)
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Windows.Storage;
    using System.IO;
    namespace TextFileDemo
    public class TextFileHelper
    async public static Task<bool> SaveTextFileToIsolateStorageAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    async public static Task<string> LoadTextFileFormIsolateStorageAsync(string filename)
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    async public static Task<string> LoadTextFileFormInstalledLocationAsync(string filename)
    StorageFolder local = Windows.ApplicationModel.Package.Current.InstalledLocation;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    show how to use it as below
    async private void Button_Click(object sender, RoutedEventArgs e)
    string txt =await TextFileHelper.LoadTextFileFormInstalledLocationAsync("TextFile1.txt");
    Debug.WriteLine(txt);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Is there a way to create a link within a document that will pull text from the document and open it up in a separate text box within the document?

    I am trying to link sections of an form within a PDF back to instructions within the same PDF document.  Instead of having this jump back to the page within the document I would like for it to pull up the identified text within a separate pop-up text box on the same page where the form lives.  Is this possible?

    Hi gwebster,
    Instead of linking back to the instructions page, may be you can use tool tips or comments so that the instructions can be seen besides the text.
    Regards,
    Rave

Maybe you are looking for

  • Cannot open iTunes on Windows 7

    I was getting an error when I tried to open iTunes that said "iTunes has stopped working" and it asked me if I wanted to send the problem to Microsoft. The error appeared after about a minute after clicking to try to open it. I am running Windows 7,

  • How to setting WBS display options in CJ40 or CJ30

    Hi,     I hope default using description when I maintain cost plan in CJ40, WBS element display is description .     Thanks!

  • Custom Adapter for Inbound Operations never invoked

    Hi, I created a custom J2CA Resource Adapter for Inbound operations. I implemented javax.resource.spi.ResourceAdapter interface with all required methods - start(BootstrapContext), endpointActivation(MessageEndpointFactory, ActivationSpec), etc. I cr

  • Can't load software

    Hello, I already have the IPOD mini and just purchased IPOD 60 GB. The instructions recommended that I install the software that came with the device, but it won't completely install. I am afraid to uninstall itunes and quick time for fear that I wil

  • Consistently immense loading/media pending times in both CS6 & CC

    I've had this problem since switching over to Premiere, and continue to have it since upgrading from CS6 to CC.  I can't believe this is actually how Premiere is supposed to work.  It's a global thing, not specific to a single project.  But I'll use