redirect with notification before the header

I have a report pages that have "edit" buttons that invite you to the URL of the page change the APEX with the important information such as primary keys. If the data changes (i.e. a record has been deleted) under the user and the user clicks on 'Edit', the user receives the message "ugly":

ORA-01403: no data found
< stop sign > error on line cannot.
Ok

It occurs due to forward the process of the row header. I could put some additional areas to inform the user and conditions to see the/run the page differently. But I expect to do is to redirect the user to the page of report and have a notification message indicating the change data and the current data.

I have a process before the fetch line process that checks if the data is there. If the data does not exist, then owa_util.redirect_url () redirects to the page of the report. However, I was unsuccessful by displaying a notification message. I tried setting g_notification, g_print_success_message as well as to the news of success in the redirect URL. However, I was unsuccessful in creating a notification. Here is forward the process of the header:
declare 
cnt PLS_INTEGER;

begin
select count(*) into cnt
from board 
where board_id=:P220_BOARD_ID;

if cnt != 1 then
  apex_application.g_notification :='Data Changed';
  owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220:::&success_msg=changed data');
  apex_application.g_unrecoverable_error:=true;
end if;
end;
Any thoughts would be greatly appreciated. Thank you.
-Carmine

Carmine:

You can try the following

Create an application called g_error_msg
In the redirect url the value g_error_msg to the value desired

owa_util.redirect_url('f?p=&APP_ID.:200:&APP_SESSION.::NO:220::G_ERROR_MSG:changed data');

Define a 'Load On - before heading' process in the report with the following code page

apex_application.g_notification:=:g_error_msg;
:g_error_msg := null;

Make this process depends on "g_error_msg", with a value non-zero

CITY

Published by: city was on October 26, 2009 06:26
Change of apex_application.g_notification_message: =: g_error_msg to apex_application.g_notification: =: g_error_msg;

Tags: Database

Similar Questions

  • Before the header

    Hello

    I have a page that is supposed to be doing some work and then redirect to another, it is because this page should take arguments through the URL (HTML link is used, not a form submission to pass arguments) and avoid the pressure of the user refresh and repeating the action I want to create a page that does the job and then redirects to the page of the user clicks on the link with some action (for example. ("Delete row" in a tabular presentation).

    Now for my problem, which seemed perfect for this is a header and branch process. In the process I get the job done and then in the direction of redirect to the page. But unfortunately, APEX is not what I want, if there is no branch that processes are running but with a branch, the processes are ignored. Don't you think that it is a bug in APEX? The use of a branch "before the header" decreases a lot when you can run any process "before the header" before the branch is made, is not it? At least it is unexpected and does not seem logical, I want to redirect without making the process you could always solve that with conditions, in this way the problem is unsolvable using built-in apex mechanism and I have to resort to the use of Javascript to redirect the page (and how you even include process using the Javascript redirect success message?)

    So, in short, I am missing a more common idiom to set up a page that makes a few treatment via parameters in the URL and then performs a redirect to another page, or will be the only solution using Javascript?

    Search for suggestions or solutions, as always on this forum useful.


    PS. I can't use a form, there must be a link located in each row of the table. "Column links" could not be used because I have multiple links in the same cell in the report, so I haven't looked into them. I generate the links myself in my SQL statement using this function:

    FUNCTION CreateLink (p_page in varchar2 default p_items null, varchar2 default NULL,
    p_values in varchar2 default null, p_request in varchar2 default null)
    return varchar2
    is
    Start
    -for example. f? p = 123:4:3660195698136138:P4_PACK_NAME, P4_FUNC_NAME:PKG_FILE_NAME, GENERATE_FILE_NAME_US
    return ' f? p =' || APEX_APPLICATION. G_FLOW_ID | ':'
    || NVL (p_page, APEX_APPLICATION. G_FLOW_STEP_ID) | ':'
    || APEX_APPLICATION. G_INSTANCE | ':'
    || p_request | ':::'
    || p_items | ':'
    || p_values;
    end;

    Published by: user10858232 on January 26, 2009 03:44

    Published by: user10858232 on January 26, 2009 03:45

    Published by: user10858232 on January 26, 2009 03:46

    Hello:

    You may reach the redirection using 'owa_util.redirect_url' as in the example below

    owa_util.redirect_url('f?p=::v('SESSION')::NO:::');
    apex_applicaiton.g_unrecoverable_error=true;
    

    So do treat your 'work' a header and add the 2 statements at the end of this before that the process the header.

    CITY

  • How to insert a &lt; script &gt; code before the &lt; / head &gt; tag?

    I would like to insert a < script > code inside pages of my site, and it should be placed before the < / head > code.

    Can I handle this with muse? Otherwise, every time when I export the site in HTML, I need to open the files updated and copy and paste the SCRIPT code in the HEAD again.

    Adding scripts to the head section of your documents is not currently supported in Muse, however it is planned for future versions of Muse.

    You can add links to the scripts by using the object-> Insert HTML code, but it will be inserted at roughly the position of the element in HTML page.

  • How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for 20 for detail header and 30 for the footer

    How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for header, 20 for retail and 30 for the footer.

    Here is the sample file

    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND

    DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731543 Suspect 91TB? (AC) EMPIEEM A2 Z03.0 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731548 empyema GMP A2 Z03.9 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731584 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731585 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI, S, SIYAMBONGA 27 March 2010 TYG D3 DR MARCELIN 5602181 113799662 TB731663 lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 07-AUG-201307-AUG-201324-SEP H1 - 2013MEND 58,52

    DDWTYBILL13092502572 2000000712MAJOR STY5577537 MAJOR 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI, N, SIMON TYG 9 October 1976 F1 DR WZESE 5602181 135524676 TB731666 Suspect Ward TB F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP - 2013MEND 58,52

    DDWTYBILL13092502572 30003034120000003032END

    You can create a nXSD the use of the Native Format generator and advanced search attribute is used to read values to a specific position and use it as the choice. You can find an example here

    http://docs.Oracle.com/CD/E11036_01/integrate.1013/b28994/NFB.htm#BGBBAJFD

  • "before the header" process and page elements

    I want a process running in 'On Load before the header' page X see an element value them was introduced to her page Y.
    How this can be done?

    The element on page X will have its value before executing the process "before head". You can see if your page in "debug" mode.i

    CITY

  • Visual Voicemail for blackBerry Smartphones does not sync/reconcile with notification of the icon

    new blackberry... have the 9630 Tour and am very happy so far but I have a few problems with the Visual Voicemail:

    (1) the e-mail inbox voice Visual doesn't save new voice messages... I have to constantly manually "resync mailbox," even if I wait 20-30 minutes for a voice message record once I get a standard notification

    2) once I have listen to Visual Voicemail and delete it, the notification on the homescreen icon do not reconcile that they were listened to... even if I listened to their Twitter.com.

    (3) I would prefer not to receive 3 a new VoiceMail notifications in my main Inbox... I get notification of 1) icon on the home screen, 2) of the "new voicemail" message and (when working) 3) of visual voicemail.  I looked but can't find how to set a preference to filter these redundant messages.

    any help would be appreciated!  Thank you!

    YES... Press the phone icon to get the phone, press the Menu, goto Options.  Select Call Logging, then choose 'None' will benefit more triple notifications, but missed calls still appears in the list of phone.

    With respect to the AVC and the Home icon reconcile... always disturbing.

  • scroll the content before the header below it and not on top

    Hello

    At my header and footer any place in this content on the homepage rode underneath

    woke up today and the content on the home page is scrolling on the header

    any thoughts on how to address them to the home page and other pages scroll in my head of sticky which is pinned at the top? \

    Thank you

    Hello

    Please try the following steps to resolve this problem.

    • A - master page open in Design view.
    • Open the layers panel and create a new layer and name as "navigation" to ensure that it at the top of the list.

    • Select the navigation elements as shown in the screenshot below.

    • Once selected, right-click on it and select "move layer".
    • Then select the top layer of most "navigation".
    • This will bring the items selected in the top of the stacking order and will solve these two issues.

    Kind regards

    Vivek

  • Strange question before the header function call

    Hello

    I use Oracle APEX 3.2.1.00.10 with a database of Oracle 10.2.0.4. It seems that when I call some functions in an anonymous plsql block a page header before I get

    ORA-01858: a non-digit character was found here where was waiting for a digital

    errors. The functions in question accept 2 types of NUMBER and RETURNS a type NUMBER. The code works correctly PLSQL. Is there a limit on the size of a function I can call
    directly from APEX or maybe theres some type conversion happening?

    All the ideas that it is rather strange that the other functions seem to work well

    Thanks in advance!

    As Paul said, there are probably some date related code in the body of the function. The reason why it performs very well outside the APEX is perhaps because the default NLS_DATE_FORMAT value is different to what uses the APEX. Try to play with it, hope that helps.

  • Oracle processes with SOCKT at the head of the glance... right?

    Hi friends,

    I could see after the process of the oracle in the blink of an eye control. I don't see anything running in the database though. I tried to google it, but without success. Another team, who needs all the processes on the server complains. Can someone help me what exactly are these sessions / how to find the original location where they make their appearance?
    ++++++++++++++++++
    oracleDNDTT1 oracle 18335 2.7 1 254.5 0.0 mb 257,7 MB SOCKT
    oracleDNDTT1 oracle 21435 1.9 0.0 1 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 22836 1.7 1 253,6 0.0 MB 255.3 MB SOCKT
    oracleDNDTT1 oracle 21155 1.5 1 0.0 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 22500 1.5 1 0.0 MB 258.4 MB SOCKT 254,5
    oracleDNDTT1 oracle 21934 1 0.8 0.0 254.5 Mo 258.4 MB SOCKT
    oracleDNDTT1 oracle 18159 1 0.8 0.0 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 18307 1 0.8 0.0 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 23495 1 0.8 0.0 254.4 Mo 258,3 Mo SOCKT
    oracleDNDTT1 oracle 22084 1 0.6 0.0 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 18439 1 0.6 0.0 254.5 257,7 MB SOCKT mb
    oracleDNDTT1 oracle 18150 1 0.6 0.0 MB 254,7, 257,9 MB SOCKT
    oracleDNDTT1 oracle 21128 1 0.4 0.0 253.7 Mo 256,9 Mo SOCKT
    oracleDNDTT1 oracle 21546 1 0.4 0.0 254.5 Mo 258.4 MB SOCKT
    oracleDNDTT1 oracle 21347 1 0.4 0.0 MB 253.7, 258.4 MB SOCKT
    oracleDNDTT1 oracle 23605 1 0.4 0.0 253.7 Mo 258,3 Mo SOCKT
    oracleDNDTT1 oracle 21240 1 0.2 0.0 254.5 Mo 258.4 MB SOCKT

    ++++++++++++++++++


    regds,
    Malika

    This isn't really the place to discuss output look. Especially not since you already posted in some unix also forum. And it's a little hard to believe that you could not urge google to find something useful.

    Anthony wrote:
    Another team, who needs all the processes on the server complains.

    What does it mean 'need to all processes' and what are they complaining? They see "sockt" as a wait state (without knowing the operation/call behind her, could be recv)? Not sure if the real problem here is that there are processes or not kept people busy with real work!

    However, it might be worth your while to come back to review the requirements (e.g., the kernel parameters) by Setup Guide for your unknown unknown version on platform.

    Can someone help me what exactly are these sessions / how to find the original location where they make their appearance?
    ++++++++++++++++++
    oracleDNDTT1 oracle 18335 2.7 1 254.5 0.0 mb 257,7 MB SOCKT

    DNDTT1 is your Oracle instance? If you look at session $ v / v$ process for PIDs, match State of sessions (situation) INACTIVE? In newer versions, you can also discover the event a session expected. See doc database reference for more information.

    Published by: orafad on May 11, 2011 08:56

    Published by: orafad on May 11, 2011 09:02

  • (Redirected) With respect to the Start Menu

    Hey all,.

    By clicking on the start menu option, it does not pop or the windows keyboard button works. I use windows 10 64bt. Kindly help.

    PS: I've recently updated my BIOS also on the suggestion of an Executive of dell telephone support.

    Hi shashank1003,

    Please repost this in the forum software and operating systems, Windows 10 for assistance.

    http://en.community.Dell.com/support-forums/software-OS/f/4997

  • PL/SQL conditional Progess to before the header to page 0

    Hello, all THE

    I want to run PL/SQL processes on all on the application page. based on the condition...

    Can someone help me on this

    Kind regards
    Rahul

    Hello Rahul,

    Go to the shared components / application process. There you can define when (the Point), what (PL/SQL) and the conditions for a process of PL/SQL 'global '.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.Logica.com/

  • WARNING: Cannot modify header information - redirects with the server behaviors

    I know it's an old question, but I can't find the answer.  I get an error when you use the update of the server behavior redirects the Add record  I get the error message: warning: cannot modify header information - headers already sent by (output began to...)

    I deleted as much white space before the header() function and I still get the error.

    <? php require_once('.. / Connections/Old4thDB.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $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 "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "UpdateVarietyForm")) {}

    $updateSQL = sprintf ("setting a DAY various SET varietyName = %s varietyType = %s varietyAlphaAcidGeneral = %s, varietyBetaAcidGeneral = %s, varietyOld4thAA = %s, varietyOld4thBA = %s, varietyEssenOil1 = %s, varietyEssenOil2 = %s, varietyEssenOil3 = %s, varietyEssenOil4 = %s, varietyEssenOil5 = %s, varietyEssenOil6 = %s WHERE variety_id = %s",

    GetSQLValueString ($_POST ['varietyName'], "text").

    GetSQLValueString ($_POST ['varietyType'], "text").

    GetSQLValueString ($_POST ['varietyAlphaAcidGeneral'], "text").

    GetSQLValueString ($_POST ['varietyBetaAcidGeneral'], "text").

    GetSQLValueString ($_POST ['varietyOld4thAA'], "text").

    GetSQLValueString ($_POST ['varietyOld4thBA'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil1'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil2'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil3'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil4'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil5'], "text").

    GetSQLValueString ($_POST ['varietyEssenOil6'], "text").

    GetSQLValueString ($_POST ["'recordID"], "int"));

    @mysql_select_db ($database_Old4thDB, $Old4thDB);

    $Result1 = mysql_query ($updateSQL, $Old4thDB) or die (mysql_error ());

    $updateGoTo = "varieties.php";

    If (isset {}

    $updateGoTo. = (strpos ($updateGoTo, '?'))? « & » : « ? » ;

    $updateGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $updateGoTo));

    }

    @mysql_select_db ($database_Old4thDB, $Old4thDB);

    $query_rsUpdateVariety = "SELECT * FROM variety";

    $rsUpdateVariety = mysql_query ($query_rsUpdateVariety, $Old4thDB) or die (mysql_error ());

    $row_rsUpdateVariety = mysql_fetch_assoc ($rsUpdateVariety);

    $totalRows_rsUpdateVariety = mysql_num_rows ($rsUpdateVariety);

    ? >

    Am I missing other setups/configurations that could cause this?

    You forgot the most important part of the error message. "Output started at..." tells you where the production has started, guiding you to correct the error.

    The most common cause of this error is a space outside of an include file PHP tags. Most likely guilty is one or more new lines after the closing PHP tag in Old4thDB.php. Remove the closing tag PHP in this folder will be probably solved the problem.

    Another possible cause is using the BOM (byte order mark) on a PHP page. Make sure that the check box for the BOM is deselected in the Save dialog box.

  • Saving a file of the APEX help before the process of Header error

    Hello

    I am current trying to simply allow the user to download and save a text file after pressing a button on a page of the APEX. Links to a new page which does nothing except button perform a process before header containing the following pl/sql code:
    begin
    
    -- Set the MIME type
    owa_util.mime_header( 'text/plain', FALSE );
    
    -- Set the name of the file
    htp.p('Content-Disposition: attachment; filename="alphafile.txt"');
    
    -- Close the HTTP Header
    owa_util.http_header_close;
    
    htp.prn('Hello World');
    
    htmldb_application.g_unrecoverable_error := true; 
    
    end;
    When I then press the button to access this page, I get a blank page which shows:

    Content-type: text/plain; Charset = UTF-8 Content-Disposition: attachment; filename = "alphafile.txt" Hello World

    Any help is greatly appreciated.

    Kind regards

    Alex

    Hello

    I think you should do application process state for example PRINT_FILE, and then the url button

    f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:PRINT_FILE
    

    For this application process "on the load before the heading" need you from your code

    Or try htp.init place start your code

    Hope that helps

    BR, Jari

    Published by: jarola on January 12, 2010 21:40

  • Get style sheets to work in the header.php and associated files

    Let's say I created a file header.php in my includes folder.  And I include in my index.php file in the root directory of the site.

    Then in the header.php file, I have a link to the style sheet.

    The question that I've always found is that you can't get the header.php file to apply the style sheet.

    I can operate using global links, however I don't want to do that I have to cancel them before I have download site.  (And I forgot...)

    Anyway, I came up with this code today to try to solve this problem.  Here is my header up to now file:

    "; } else echo ' ';? >

    Here is what it does:

    1. we create a variable called $directory that corresponds to the current directory.

    2. then what it will create another variable called $currentFolder which is equal to, or not the variable $directory contains the word "includes".

    3 then he said: If $currentFolder is true, then it has the location of the style sheet with respect to the header.php file.

    4. other - if it IS false then the style sheet is located in a location with regard to the files in my root directory.

    This works perfectly well... in Live view mode.  The header.php and index.php formats the header using live view.  Nor will however be the format in Design view.  That sucks cause I was pretty happy that I came up with this code on my own.

    The reason why it is not working in Design view - I realize now--is because Dreamweaver will not deal with this script in Design view.

    Does anyone know how to get this script to run in design mode?  Or maybe some suggestions on modifying this code to run in design mode?

    Thank you!

    > The question that I've always found is that you can't get the header.php file to apply the style sheet.

    Right. This is because, it seems that you already understand this, the relative location of the css file is different from the point of view of the header file and the file parent. Because the header file is included in the parent on the server, the client then sees the css file in the wrong place.

    The solution is to use stylesheets for the time Design. It will be worth the css of the page at design time only - it will not actually insert the css file in the code. So, insert the reference of css in the header of the point of view of the parent file - index.html. Then add a design time style sheet. It should work.

  • gap unwanted in the header

    Hello

    I have a website at http://www.jonestownstables.com/ which has a gap in the header, and I was not able to close the gap. I have a division of container header with the header and the top of the header and the lower division. I use the upper and lower divisions to put a graph with rounded corners, the header. I can't understand why the above graph has a gap between himself and the header. I want to delete it. Thank you for your time.

    Here is my html and css.

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 "/ >"
    <!-TemplateBeginEditable name = "doctitle"-->
    < title > Jonestown stables, horses trained for riding smooth pleasant < /title >
    < name meta = "description" content = "Horses for sale, Tennessee Walking Horses, horses Gaited horses for sale in North Carolina, NC twh," >
    < meta content = "keywords" name = "Tennessee Walking horses, twh, pleasure horses, horse show, tennessee walking horse, tennessee walker horses for sale, walkers, Gaited horses, horse, trail horse, trail horses" >
    <! - TemplateEndEditable - >
    <!-TemplateBeginEditable name = "head"--> <! - TemplateEndEditable - >
    "" < link href = "... / jonestown-stables - styles.css" rel = "stylesheet" type = "text/css" / >
    "" < script src = "... / Scripts/AC_RunActiveContent.js" type = "text/javascript" > < / script >
    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "header_cont" >
    < div id = "header_top" > < img src = "" / images/high-in-head copy.jpg "width ="720"height ="12"/ > < / div >"

    < div id = "header" >
    < h1 >
    < script type = "text/javascript" >
    AC_FL_RunContent ('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0.28, 0', ' wid th ' ', '220, 'height', ' 210 feet, 'hspace', ' 12', 'corner', 'right', ' title',' quality Tennessee Walking horses ', 'src',' / horse_animation ', ' quality ',' high ', "pluginspage ','e http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash movi ',' ',' / horse_animation'); End AC code
    < /script > < noscript > < object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase ="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9, 0,28,0" width = "220" height = "210" hspace = "12" align = "right" title = "quality Tennessee Walking Horses" >
    < param name = "movie" value = "" / horse_animation.swf "/ >"
    < param name = "quality" value = "high" / >
    < embed src = "" / horse_animation.swf "width ="220"height ="210"hspace ="12"align ="right"quality ="high"pluginspage ="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"type =" application/x-shockwave-flash"> < / embed >
    < / object > < / noscript >
    Stables of Jonestown, quality Tennessee Walking horses, pleasure horses and show horses < / h1 >
    < h2 > < br / >
    1625 Jonestown Road < br / >
    Winston Salem, NC 27103 < br / >
    Call us - (336) 418-3679 < / h2 >
    < / div >
    <! - end header - >

    < div id = "header_bot" > < img src = "" / images/bot headed copy.jpg "width ="720"height ="12"align ="left"/ > < / div >"
    < / div >
    <! - end header_cont - >

    < div id = "sidebar_cont" >

    < div id = "sidebar_top" > < img src = ' / images/sidebar_top copy.jpg "width ="204"height ="12"/ > < / div >

    < div id = "sidebar" >
    < h2 > see some of our horses < / h2 >
    < a href = "tennessee-market-horse - 1.html" > Houdini < /a > < br / >
    < a href = "pleasure-horse - 1.html" > My Citizen Kane < /a > < br / >
    "" < a href = "... / show-horse - 1.html" > Threat Matrix < /a > < br / >
    < a href = "/ path-horse - 1.html" > therapist < /a > < br / >
    < a href = "/ firestone.html" > Firestone < /a > < br / >
    < br / >
    < a href = "index.html" > Home Page < /a > < br / >
    < br / >
    < a href = "tennessee-market-horses - location.html ' > Map/Directions < /a > < br / >
    < br / >
    "< a href ="http://www.ncwha.org/ "> < img src = ' / images/ncwha logo.gif" alt = "North Carolina Walking Horse Association" width = "160" height = "84" hspace = "12" / > < / has > < br / > "
    < / div >
    <! - end box - >

    < div id = "sidebar_bot" > < img src = ' / images/sidebar_bot copy.jpg "width ="224"height ="12"/ > < / div >

    < / div > <! - end sidebar_cont - >

    < div id = "content_frame" >

    < div id = "content_cont" >
    "" < div id = "content_top" > < img src="/images/tr-gray.jpg" width = "12" height = "12" align = "right" / > < img src="/images/tl-gray.jpg" width = "12" height = "12" align = "left" / > < / div >
    <!-TemplateBeginEditable name = "maincontent"->
    < div id = "content" >
    "" < h1 > < img src = "file:///C|/Users/Bernie/Documents/Edgewood Farm site Web/images/April 09 011_cropped.jpg" width = "200" height = "192" hspace = "10" align = "right" / > welcome to Jonestown stables site < br / >
    < br / >
    < / h1 >
    < p > our goal is to train horses to be excellent Tennessee Walking horses, pleasure and show horses. We spend riding time and all our horses to determine their personalities and their training capabilities. We train our horses in the appropriate for a comfortable and pleasant drive approach. < br / >
    < br / >
    We have many years of experience in training horses. < /p >
    < / div >
    <! - TemplateEndEditable - >
    <! - end content - >

    < div id = "content_bot" > < img src = "" / images/bl-gray copy.jpg "width ="12"height ="12"align ="left"" / > < a href = "mailto:[email protected]" > < /a > < img src = "" / images/br-gray copy.jpg "width ="12"height ="12"align ="right"/ > < / div >"

    < / div >
    < div align = "center" >
    <! - end content_cont - >
    "< a href ="mailto:[email protected]"> © APS 2009 < /a > < / div >"
    < / div >
    <! - end content_frame - >
    < / div >
    <! - end wrapper - >

    < / body >
    < / html >

    @charset "utf-8";
    {body
    background-color: #660000;
    margin: 0em;
    Padding: 0em;
    }
    {#wrapper}
    Width: 46em;
    margin: auto .5em;
    Padding: 0.5em;
    Police-family: Geneva, Arial, Helvetica, without serif.
    background-color: #ccc;
    }

    #sidebar {}
    Width: 12.75em;
    background-color: #FFFFFF;
    Padding: 0.5em;
    border-left: .125em solid #600;
    border-right: .125em solid #600;
    }
    {#sidebar_top}
    height: .75em;
    }
    #sidebar_top img {}
    Width: 14em;
    }

    {#sidebar_bot}
    height: 0.75em;
    }
    #sidebar_bot img {}
    Width: 14em;
    }

    {#sidebar_cont}
    float: left;
    Clear: left;
    margin-top: 1em;
    }

    #sidebar h2 {}
    do-size: 1em;
    text-decoration: underline;
    color: #600;
    }
    #sidebar a {}
    color: #600;
    font size: 0.875em;
    text-align: left;
    Padding: 0.125em .5em;
    line-height: 1.5em;
    text-decoration: underline;
    }
    #sidebar a: link, #sidebar a: visited {}
    color: #600;
    }
    #sidebar a: hover {}
    background-color: #600;
    color: #fff;
    make-weight: bold;
    }
    #content {}
    background-color: #ffffdd;
    Padding: 0.5em;
    }

    #content h1 {}
    font size: 1.375em;
    text-decoration: underline;
    text-align: left;
    }
    #content p {}
    do-size: 1em;
    text-align: justify;
    }
    {#content_cont}
    margin-bottom: .25em;
    }

    {#content_top}
    height: 0.75em;
    background-color: #ffd;
    }
    {#content_bot}
    height: 0.75em;
    background-color: #ffd;
    }

    {#content_frame}
    background-color: #999;
    Padding: 0.5em;
    margin left: 14.25em;
    top of the margin: 0.25em.
    }
    #content_frame a {}
    color: #600;
    text-align: center;
    font size: 0.625em;
    Padding: .375em;
    }

    #header {}
    background-color: #FFFFdd;
    height: 15em;
    border-left: .125em solid #600;
    border-right: .125em solid #600;
    }


    #header h1 {}
    font size: 1.5em;
    margin left: 0.5em;
    text-align: justify;
    }
    #header h2 {}
    font size: 1.125em;
    left margin: .5em;
    }
    {#header_cont}
    margin-bottom: 0.5em;
    }

    {#header_bot}
    height: 0.75em;
    background-color: #ffd;
    }
    #header_bot img {}
    Width: 46em;
    }

    {#header_top}
    height: 0.75em;
    background-color: #ffd;
    }
    #header_top img {}
    Width: 46em;
    }

    Set your header h1 margin-top to 0.

Maybe you are looking for