[JS CS3] BridgeTalk : bt.body = x.toSource() vs a bt.body = a String

Hi,
I found a script on this page
http://d.hatena.ne.jp/kamiseto/
The author uses this line :
bt.body = toInDesign.toSource()+"("+contents.toSource()+","+gb.toSource()+","+kumi.toSource()+");";
I tried to use this syntax and my script didn't produce any result.
I found another approach based on an old Harbs's post. The syntax is like :
theScript = "...";
theScript += "...";
bt.body = theScript;
And it runs well.
However, as I don't like to saty ignorant, what is the reason of the toSource() error ?
Thanks in advance for explanation.
Loic

I tried to write a sample to show this kind of error in pure javascript, using something like
var buf;
alert ("What happens now? "+fn("a", buf)+fn("b", buf));
newstr = "And now?"+fn("c", buf);
newstr += fn("d", buf);
alert (newstr);
function fn (str, dest)
dest = "["+str+"]";
return dest;
-- but I couldn't get it not to work ...
I recognized the symptoms because I also write in the programming language C/C++, and there it's perfectly possible to mess up a program with such constructions. Done that a dozen times and more. I think the correct approach of writing such routines is called "thread-safe" (since the same problem occurs in a multi-threading environment, where each function needs a buffer for itself, even if that same function is called twice).
Oh, enough with the side tracking.

Similar Messages

  • Detail rows to be in the email body,can i dinamicaly generate email body?

    There is 2 to 5 detail records for each employee.
    I want to display those 5 records in the email body as html table.
    how can I do this.
    Can i generate an html table using web tool kit with data from a procedure and attach to the notification . Is it possible?
    please help.
    thanks

    You can do that in Mail on your Mac but not at the iCloud.com Mail site.
    OT

  • E-Mail body content appears in single line as a string.

    Could someone advise the way to format(space, new line, bold etc) E-Mail body content in BPEL.
    I wanted an email body content be sent as following:
    Hi,
    This is my test email through BPEL.
    Well Done!
    Cheers
    R
    But when it actually sent, it just appeared as continuous string as follows:
    Hi, This is my test email through BPEL. Well Done! Cheers R
    Thanks
    T

    I tried a workaround and used html tags in the email body in BPEL, as follows:
    <%string('<html>
    <body>
    Hi, <used line break wherever required ie. br>
    This is my test email through BPEL.<br>
    Well Done!<br><br>
    Cheers<br>
    R
    </body>
    </html>')%>
    It worked fine as expected. Still, with plain text, it appears as single straight line. I welcome comments on this!
    cheers
    thobula

  • CS3/CS4/CS5 Win/Mac: How can I convert a Windows string to mac?

    Hi
    I have a Windows coded string. I like to convert this string into a Macintosh string. This means several characters are changed, e.g. ä, ö or ü.
    Is there a method in the Indesign SDK?
    How can I convert a windows string into a macintosh string and back?
    Thanks
    Hans

    I don't think this should work that way. If this string is in resource file, use UTF-8 encoding and make PMString do its job. use kResourceUTF8Encoded in StringTable:
    resource StringTable (kSDKDefStringsResourceID + index_enUS)
            k_enUS,                                             // Locale Id
            kResourceUTF8Encoded,                         // Character encoding converter (irp) I made this WinToMac as we have a bias to generate on Win...
                  // ----- Menu strings
                    kWFPCompanyKey,                         kWFPCompanyValue,
                    kWFPAboutMenuKey,                         kWFPPluginName "[US]...",
                    kWFPPluginsMenuKey,                    kWFPPluginName "[US]",
                        kWFPDialogMenuItemKey,               "Show dialog[US]",
                    kSDKDefAboutThisPlugInMenuKey,               kSDKDefAboutThisPlugInMenuValue_enUS,
                    // ----- Command strings
                    // ----- Window strings
                    // ----- Panel/dialog strings
                        kWFPDialogTitleKey,     kWFPPluginName "[US]",
                        kWFP_Tuna_Key,     "Tuna",
                        kWFP_Salmon_Key,     "Salmon",
                        kWFP_Bonito_Key,     "Bonito",
                        kWFP_Yellowtail_Key, "Yellowtail",
                        kWFP_Currency_Key, "$",
              // ----- Misc strings
                    kWFPAboutBoxStringKey,               kWFPPluginName " [US], version " kWFPVersion " by " kWFPAuthor "\n\n" kSDKDefCopyrightStandardValue "\n\n" kSDKDefPartnersStandardValue_enUS,
    Message was edited by: Maciej Przepióra

  • Use BridgeTalk,but my script doesn't work

    Hi,
    I want to use BridgeTalk to open a image in photoshop,but my script doesn't work.
    Anyone can tell me why?Thanks!
    Best Regards
    goldbridge
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath);
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body="{app.open(jpgpath);}";
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

    In your body script… jpgpath is just part of a string you have not constructed this to pass the variable… Also some classes are considered complex types so you need to toSource() and then eval…
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath).toSource();
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body = "{app.open( eval (" + jpgpath + ") );}";
                               //$.write( bt.body  );
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

  • Includes in BridgeTalk object

    Hi all, I'm writing a module to execute scripts from InDesign to Photoshop. I used bridge talk and the module works until now I would like to include a library in the photoshop script but this script in executed in the photoshop context so I cannot use relative path … Has anyone an other idea to do this cleaner?
    In advance thanks you for your help!
    // crop this link
                H.Gateway.call_app(
                    'photoshop',
                    crop_in_photoshop,
                    [current_link.filePath, top_left_corner, bottom_right_corner, graphic.absoluteHorizontalScale, graphic.absoluteVerticalScale, resolution, 'ResampleMethod.NONE'],
                    100
    Here I have to write the path with absolute notation
    function crop_in_photoshop (file_path, top_left_corner, bottom_right_corner, horizontal_scale, vertical_scale, resolution, resample_method) {
        //@include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx"
        try {
            PS.Config.init();
            PS.Application.open(file_path);
            var ps_doc = app.activeDocument;
            PS.Document.Resize.resampling(ps_doc, file_path, horizontal_scale, vertical_scale, resolution, resample_method);
            bounds = [top_left_corner.x, top_left_corner.y, bottom_right_corner.x, bottom_right_corner.y];
            ps_doc.crop(bounds);
            ps_doc.save();
        catch (ex) {
            throw {
                name: 'Error',
                message: ex.message,
                fileName: $.fileName,
                lineNumber: $.line
        finally{
            PS.Application.restore();
    The Bridge Talk module
    my.call_app = function (app, function_to_execute, args, timeout) {
            var error_message;
            var result;
            var complete;
            var bt = new BridgeTalk();
            bt.target = app;
            if (args) {
                 * build a string representation of the function
                 *  (function hello(a, b)
                 *      my code;
                 *  }).apply(this, [])
                bt.body = function_to_execute.toSource() + '.apply(this, ' +  args.toSource() +');';
            else {
                bt.body = function_to_execute.toSource() + '();';
            bt.onError = function (ex) {
                error_message = ex.body;
            bt.onResult = function (response) {
                result = response.body;
                complete = true;
            bt.send(timeout); // we have to wait the response of the other software
            // if an error occurred throw it
            if (error_message) {
                throw {
                    name: 'Error',
                    message: error_message,
                    fileName: $.fileName,
                    lineNumber: $.line
            // if the onResult function isn't complete, the timeout exceeded
            if (!complete) {
                throw {
                    name: 'TimeoutError',
                    message: 'exceeded timeout of ' +  timeout + ' seconds',
                    fileName: $.fileName,
                    lineNumber: $.line
            // else return the result or null
            return result || null;

    Hi all, I still have problems with includes in extendscript. Has somebody an idea how to write a function to include aboslute file like this: include (MY_SCRIPT_DIR + 'test.jsx'); // result shoud be something like that // #include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx" Thanks you!

  • Use bridgeTalk with onError event, exception handling

    Hi all,
    I'm writting a function who use bridgeTalk to execute a photoshop script. This function works but I would like to throw an exception if the script has a problem. I commented a line in my script to have an exception but the onError event doesn't throw my Error.
    Have someone an idea?
    Thanks!
    function save_to_PSD(obj){
        var bt = new BridgeTalk();
         bt.target = "photoshop";
         bt.body = save_to_psd_function.toSource()+"("+obj.toSource()+");";
         bt.onError = function(errObj) {
            // the next line display the error in the console
            $.writeln(errObj.body);
            // PROBLEM this error is never throw
            throw new Error (errObj.body);
         bt.send(100);
    function save_to_psd_function(serializedObject){
        app.displayDialogs = DialogModes.NO;
        var obj = eval(serializedObject);
        var file_path = decodeURI(obj.file_path);
        // this will generate an exception
        //var img_file = new File(file_path);
        var ps_doc = app.open(img_file);
        psdSaveOption = new PhotoshopSaveOptions();
        psdSaveOption.embedColorProfile = true;
        app.activeDocument.saveAs(img_file, psdSaveOption, true, Extension.LOWERCASE);
        ps_doc.close();
        app.displayDialogs = DialogModes.ALL;

    Hi all,
    I found this solution if it can be helpfull for someone.
    But I don't know if it is the better way. I'm not abable to run a new exception in the onResult function.
    function save_to_PSD(obj){
        var error = null;
        var bt = new BridgeTalk();
         bt.target = "photoshop";
         bt.body = save_to_psd_function.toSource()+"("+obj.toSource()+");";
         bt.onError = function(ex){
            error = ex.body
         bt.send(100);
         if(error != null){
            throw new Error(error);

  • Login php page not working in dw cs3

    Hi!
    I am new to php. I created a login (php5.2.5) page using
    dreamweaver cs3 with mysql database. I have added
    the login user server behaviour. When I preview, the login
    page opens, i enter the username and password, but
    the username and password is not validated and page not
    redirected, remains as it is. I get the following error
    in the localhost.error.log:
    PHP Warning: Cannot modify header information - headers
    already sent by (output started at C:\\Program
    Files\\Apache Software
    Foundation\\Apache2.2\\htdocs\\PHPCLI\\main.php:1) in C:\\Program
    Files\\Apache Software
    Foundation\\Apache2.2\\htdocs\\PHPCLI\\main.php on line 68,
    referer:
    http://localhost/main.php
    The page worked fine before adding login server behaviour.
    Here is the code from main.php(created thru dw cs3). mysql
    database created thru phpmyadmin.
    <?php virtual('/Connections/js.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    mysql_select_db($database_js, $js);
    $query_jsrecord = "SELECT * FROM matrimony";
    $jsrecord = mysql_query($query_jsrecord, $js) or
    die(mysql_error());
    $row_jsrecord = mysql_fetch_assoc($jsrecord);
    $totalRows_jsrecord = mysql_num_rows($jsrecord);
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
    session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
    $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['profileid'])) {
    $loginUsername=$_POST['profileid'];
    $password=$_POST['password'];
    $MM_fldUserAuthorization = "";
    $MM_redirectLoginSuccess = "/jsdirectory.php";
    $MM_redirectLoginFailed = "/errorlogin.php";
    $MM_redirecttoReferrer = false;
    mysql_select_db($database_js, $js);
    $LoginRS__query=sprintf("SELECT profileid, password FROM
    matrimony WHERE profileid=%s AND
    password=%s",
    GetSQLValueString($loginUsername, "text"),
    GetSQLValueString($password, "text"));
    $LoginRS = mysql_query($LoginRS__query, $js) or
    die(mysql_error());
    $loginFoundUser = mysql_num_rows($LoginRS);
    if ($loginFoundUser) {
    $loginStrGroup = "";
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;
    if (isset($_SESSION['PrevUrl']) && false) {
    $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    header("Location: " . $MM_redirectLoginSuccess );
    else {
    header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!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>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #FFFFFF;
    -->
    </style></head>
    <body>
    <div id="main">
    <div align="center">
    <p> </p>
    <form action="<?php echo $loginFormAction; ?>"
    method="POST" name="jsloginform" id="jsloginform">
    <table width="100" border="1">
    <tr>
    <td><label for="profileid">profile
    id</label>
    <input type="text" name="profileid" id="profileid"
    /></td>
    </tr>
    <tr>
    <td><label for="password">password</label>
    <input type="password" name="password" id="password"
    /></td>
    </tr>
    <tr>
    <td><label for="submit"></label>
    <input type="submit" name="submit" id="submit"
    value="Submit" /></td>
    </tr>
    </table>
    </form>
    <p> </p>
    </div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($jsrecord);
    ?>
    Kindly help...

    radhababu wrote:
    > PHP Warning: Cannot modify header information - headers
    already sent by
    > (output started at C:\\Program
    >
    > Files\\Apache Software
    Foundation\\Apache2.2\\htdocs\\PHPCLI\\main.php:1) in
    > C:\\Program
    >
    > Files\\Apache Software
    Foundation\\Apache2.2\\htdocs\\PHPCLI\\main.php on line
    > 68, referer:
    "Headers already sent" is a common problem encountered by PHP
    beginners.
    The DW Log In User server behavior uses the PHP header()
    function to
    redirect the page after checking the username and password.
    There must
    be no output to the browser before the call to header(). What
    confuses
    beginners is that "output" includes even a single space or
    new line
    character.
    The error message suggests the problem is on line 68. Are you
    using echo
    or anything like that? If so, that's the cause of your
    problem.
    Another common cause is an extra line at the end of the
    connections
    file. Open Connections/js.php, and make sure there are no
    extra lines
    after the closing PHP tag. You can do this by looking at the
    line
    numbers. Click as far down on the page as you can, and use
    backspace
    until your cursor is directly to the right of the closing PHP
    tag.
    One other possible cause is the use of links relative to the
    site root.
    When you set that preference in your site definition,
    Dreamweaver uses
    virtual() to include the connections file like this:
    > <?php virtual('/Connections/js.php'); ?>
    Try changing that to this:
    <?php require_once('Connections/js.php'); ?>
    Make sure the relative path to the file is correct.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Photoshop CS3 to Dreamweaver CS3 CSS question

    Hi all,
    I am sorry if this is allready dicussed a couple of times.I did a search and just could not find it. When I export a site from Photoshop CS3 to DIV (generate CSS by ID) it is aligned to the left and all DIV's have a specific position on the page. How can I get my site to center in Dreamweaver CS3 without having to adjust al separate DIV's?
    For Example: When I export from Photoshop all slices are exported as folowed.
    #Table_01 {
    position:absolute;
    left:auto;
    top:0px;
    width:832px;
    height:562px;
    right: auto;
    #test-13 {
    position:absolute;
    left:275px;
    top:26px;
    width:9px;
    height:189px;
    #test-14 {
    position:absolute;
    left:284px;
    top:26px;
    width:128px;
    height:98px;
    I know how to make a DIV center (with Margin auto left and right) but I do not know how to center all DIV's at once.
    I hope you are willing to help me with this. In case you have more questions let me know.

    The answer is to not let Photoshop write either your HTML or your CSS for you.  What you show is a disaster waiting to happen, really, and is characteristic of the kind of mess produced by any wizard that writes HTML based on a graphic layout.  Use your graphics editors to produce your graphics.  Build your page in DW.  It's a much better way to go.
    I know how to make a DIV center (with Margin auto left and right) but I do not know how to center all DIV's at once.
    I hope you are willing to help me with this. In case you have more questions let me know.
    Leaving your page with all absolutely positioned elements is really asking for trouble, but here's how to make them all center at once -
    Change this -
    </head>
    to this -
    <style type="text/css">
    #wrapper { width:760px; margin:0 auto;position:relative; }
    /* 760px will display on an 800px screen maximized browser window without */
    /* horizontal scrollbars. Change as needed */
    </style>
    </head>
    change this -
    <body ...>
    (the ellipsis represents any other attributes that might be mentioned in the body tag, and SHOULD NOT BE INCLUDED EXPLICITLY!)
    to this -
    <body ...>
    <div id="wrapper">
    and this -
    </body>
    to this -
      <!-- /wrapper -->
    </div>
    </body>
    and see if that helps.

  • body tag problem

    I'am currently migrating my old website from Frontpage 2003
    to Dreamweaver CS3. I have beeen following a online tutorial, in
    which it details how to sucessfully move. I have come to a point in
    the tutorial which I do not understand. Here are the instructions:
    You must put a specifc code before and after all instances of
    your <body> tag. However, this tag may have varying
    attributes in different pages. Therefore:
    Replace all instances of your <body> tag containg your
    most standard attributes:
    <body (standard attributes)>
    with:
    <b*ody (standard attributes)>
    I do not understand the "<body (standard attributes)>".
    In find and replace, how do I find "standard attributes" and what
    does this mean?
    Any help would be greatfully recieved.

    Just out of curiosity -
    How many pages are in your site?
    Have you used FP Themes?
    Have you used FP Shared Borders?
    Can you post a link to the home page for this site?
    Anyhow, I see what he's doing. And it's clever.
    > Everything else before this was pretty straight forward
    but this whole
    > "(satandard attributes)" thing is confusing.
    Let's see the answers to the above questions, and I'll guide
    you as to the
    rest....
    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
    ==================
    "Syztemlord" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks for the input guys, here are the complete steps,
    I'm unsure how to
    > do
    > step 3.
    >
    > <body> tag
    > You must put a specifc code before and after all
    instances of your <body>
    > tag.
    > However, this tag may have varying attributes in
    different pages.
    > Therefore:
    >
    > 1. Replace all instances of your <body> tag
    containg your most standard
    > attributes:
    > <body (standard attributes)>
    > with:
    > <b*ody (standard attributes)>
    >
    > 2. Search the website for remaining occurrences of:
    > <body (without ">")
    > If there aren't any, you're done - go to point next step
    (b.3.).
    >
    > If there are, it means that some page have different
    <body> attributes
    > than
    > the standard one. Open one of these pages and replace
    sidewide all
    > intances of:
    > <body (other attributes)>
    > with:
    > <b*ody (standard attributes)>
    >
    > Take note of these other attributes for later steps:
    your are now loosing
    > them. Note that Dreamweaver only accepts one set of
    <body> attributes for
    > all
    > pages under a same template. At a later stage, you may
    create different
    > templates with other <body> attributes for pages
    that must have a
    > different
    > look (such as photo album pages).
    >
    > Repeat this step until there are no more occurrences of
    "<body" in your
    > website - meaning all <body> tags have been
    replaced with:
    > <b*ody (standard attributes)>.
    >
    > 3. Now replace sitewide:
    > <b*ody (standard attributes)>
    > with:
    > <body (standard attributes)>
    > <!-- I*nstanceBeginEditable name="Body" -->
    >
    >
    > Everything else before this was pretty straight forward
    but this whole
    > "(satandard attributes)" thing is confusing.
    >

  • Table footer issue in body page of adobe form

    Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, footer is displayed at the last page or if it has only 1 page to display, it shows in the first page itself.
    But issue arises when number of rows reaches the maximum length of body page. Let's say, body page can accommodate 11 rows, then footer header is displayed in 1st page but footer detail is shown in next page (2nd page).  I want to show both of these in the last page with 11th record in the last page without any break.
    I've tried below options:
    1. Group both footers as a section and check "Include footer row in final page" in pagination tab.
    2. Mark both the footers individually with check "Include footer row in final page" in pagination tab.
    Is there any other option that I need to look for to solve this issue?

    Thank you Norbert. That solved the problem.
    I've one more question relating to this. Let's say I can only display 11 records in one page with these 2 footer. For 12 records, 2nd page shows last record with these 2 footers. 10 records will be displayed in one page properly. But when it comes to 11 records, 1st page shows all of 11 records and 2 footers with a page header will be shown in 2nd page. Is there a way to control this dynamically so that whenever 11th record needs to be shown, even though body page(or subform) can accommodate 11 records, show the 11th in 2nd page with footers?
    Thanks,
    Phani

  • Gap in DW CS3 page (top and left)

    i am still fairly new to dreamweaver but have learned a great
    amount, but when i build a layout in layout mode it wont let my put
    any tables, pictures, or generally anything else directly into the
    top left corner. So when i preview the page with F12 there is a 5px
    gap on the top and left of the page
    Heres an image
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    any idea how to fix this?

    Use CSS to control all of your page element margins and
    padding. In this
    case, what you are describing is the default margin on the
    <body> tags. Try
    this CSS -
    body { margin:0; padding:0; }
    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
    ==================
    "bigmack83" <[email protected]> wrote in
    message
    news:fqj003$22m$[email protected]..
    >i am still fairly new to dreamweaver but have learned a
    great amount, but
    >when
    > i build a layout in layout mode it wont let my put any
    tables, pictures,
    > or
    > generally anything else directly into the top left
    corner. So when i
    > preview
    > the page with F12 there is a 5px gap on the top and left
    of the page
    >
    > Heres an image
    >
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    >
    > any idea how to fix this?
    >

  • How to send images and other colored text in email body

    Hi
    We are using SAP CRM 4.0 and we would like to send email to our customers using actions configured for activity. Our objective is to send Marketing Emails containing <u>Images and Color texts</u> in the BODY OF THE email and not as a PDF attachment.
    The only relevant provision we could see in SCOT is either Text or PDF. On using text , we are loosing all images and color. The PDF option works , but the email generated is a blank email with PDF document as attachment.
    We want the matter to be inserted in the body of the email and not as attachment.
    Please do let us know if any one has faced similar situation and is there a resolution.
    Thanks and Advance.
    Regards
    Sachi

    Are you pasting in the HTML code?
    You can't use the formats in the CRM editor to set bold text, etc.  You have to use the HTML code and have set the Form up as Internet mail
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/82/dbfd38ccd23942e10000000a114084/content.htm
    Here's the first screen setting for my test email:
    Form          Y_TRADE_SHOW_INVITATION        / Trade Show Invitation (Test)
                                                                                    Form Usage              1 Internet Mail (SMTP)                        
        Text Type               1 HTML                                        
        IBU Scenario                                                          
        Customer Scenario                                                                               
    Page Format             DINA4         Status    Created                                                                               
    Characters Per Inch     10.00                                         
        Lines Per Inch          6.00                                          
        Style                   SYSTEM SAP Smart Forms Default                                                                               
    Created By         MANECITO            Changed By         MANECITO   
         Date               01/16/2007          Date               05/22/2007 
         Time               09:49:12            Time               18:01:51   
    then, your email has to have the HTML tags
    A bare minimum is your email has to have the <HTML> tag at the top, but it's advisable to be sure you have a more complete setup like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    .style1 {
         font-size: x-large;
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style2 {
         font-family: Verdana, Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small; }
    -->
    </style>
    </head>
    <body>
    ENTER YOUR HTML MESSAGE HERE
    </body>
    </html>

  • Output in Email Body Formatting Warped

    Hi All
    I am completly new to powershell & am googling about for code.
    I have been able to so far to send the results of a powershell query by email and am mightly impressed it worked.
    When the query is done on the command line it works great, by email the output is spread wide and the fields dont align with each other.
    I have pasted my commands below. I am querying the Exchange Mailbox sizes and wish to sort by the biggest down.  This works great and I out put it to a text file.
    I then read the text file and substitute it for the body of the email.
    On the outlook email recepient end It looks to me like the window size of outlook causes the text to wrap around and it is no longer displayed lengthways.
    Is there anything I can do?
    Thanks
    Below gets data
    Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName
    MyExchangeServer | Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} | Select-Object MailboxDisplayName,Size
    | sort-object size -descending
    Below tells which exchnage server to use
    $psEmailServer = "MyExchangeServer"
    Below is the text file containing the data I need assigned to $body
    $body= (Get-Content mailboxsize.txt)
    Below sends the email using the contents of the email as the email body, BUT it dosent come out right and its out of alignment in outlook.
    send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test powershell email" -body "$body"
    confuseis

    The PowerShell console uses a fixed-width font, by default, but most email clients don't.  The best solution is to use the ConvertTo-Html command on the results of your pipeline, instead of saving the text to a file.  This renders the objects in
    an HTML table instead of relying on a fixed-width font, and then you use the -BodyAsHtml switch when calling Send-MailMessage:
    $data = Get-WMIObject -Class Exchange_Mailbox -Namespace ROOT\MicrosoftExchangev2 -ComputerName MyExchangeServer |
    Where-Object {$_.LastWriteTime -le (Get-Date).AddYears(1)} |
    Select-Object MailboxDisplayName,Size |
    sort-object size -descending
    $psEmailServer = "MyExchangeServer"
    $body = $data | ConvertTo-Html | Out-String
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml
    Edit:  If you absolutely must send the contents of the file as-is, you can still try sending the body as HTML, wrapping the body text in a <pre> tag, which should be displayed in a fixed-width font:
    $body = Get-Content mailboxsize.txt -Raw
    $body = '<pre>{0}</pre>' -f [System.Net.WebUtility]::HtmlEncode($body)
    $psEmailServer = "MyExchangeServer"
    Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject "test powershell email" -Body $body -BodyAsHtml

  • Where can I get a new body for my MacBook?

    I'm looking for a new body for my MacBook (2007) the body of my Mac is very scratched and somewhat dented so...
    This would include a replacement Back Shell (By the lit up Apple) A front shell (goes around the screen) New Keys, New platform (Goes around keys) New Side Panel (By the Disk slot, and all the ports)

    You could be on the lookout for a similar MacBook that has an internal failure
    of some major components -- where only the outer cases were still good.
    Most places online which sell retail are not priced for the wholesale or tech
    market, those persons would be looking elsewhere to jobber sources.
    {another reseller to the public: wegenermedia.com}
    If you can identify the computer accurately, you may have to piece-meal locate
    parts to put together a frankincense mobster MacBook. It may walk/look funny...
    Good luck & happy computing!

Maybe you are looking for

  • [JS][CS3] Loading text into memory

    Hi. Am am trying to access an external txt file which holds data for my script.  I have looked at the famous "FindChangeByList" and tried to work from there.  However, I am not going to need input from the user for the txt file location, it will alwa

  • Error ITMS-9000 - iBooks delivery

    Hello everybody. I have made a ebook, that i want to publish to iBooks store. I have made the ebook in Pages. When i try to to publish the epub to iBooks store with iTunes Producer i get the error ITMS-9000. I have some pictures in my ebook. What sho

  • Why can't I sign in to both Facetime and Messages?

    Since I installed Lion I can't sign in to Facetime and now to Messages. I have tried to reset my password and still it doesn't respond. I have the white Macbook. Thanks

  • LDB doubt

    REPORT  yjsample4                               . tables : bsik, t001. START-OF-SELECTION. GET BSIK.   IF bsik IS NOT INITIAL.     APPEND bsik TO g_t_bsik.   ENDIF. END-OF-SELECTION.   SELECT * FROM bsik INTO TABLE g_t_bsik1 WHERE lifnr IN kd_lifnr.

  • Stuck Pixels on iPod Touch

    My iPod Touch is having the stuck pixel lcd problem. I have about 3 significantly bright stuck pixels and a whole bunch of not so bright ones. I don't seem to have the inverted black problem though. Is this an issue that can be easily fixed by an upd