TRUNCATE TABLE does not work in PL/SQL - Why?

Hey there!
Is there any issue with truncate table not working inside an PL/SQL package?
For example this function:
PROCEDURE FLUSH_TABLE(vi_table_name VARCHAR2) IS
vn_table_name VARCHAR2(30);
BEGIN
vn_table_name := UPPER(LTRIM(RTRIM(vi_table_name)));
TRUNCATE TABLE vn_table_name;
END FLUSH_TABLE;
returns the following error msg:
Error: PLS-00103: Encountered the symbol "TABLE" when expecting one of the following:
:= . ( @ % ;
The symbol ":= was inserted before "TABLE" to continue.
Line: 5926
Text: TRUNCATE TABLE VN_TABLE_NAME;
Can somebody explain me the problem here? In my point of view, the error msg is not quite right ;)
Regards,
Thomas

> I just think the error msg is confusing
When you looked for TRUNCATE in the PL/SQL reference you might have noticed that the PL/SQL language has no TRUNCATE keyword. The error message indicates that syntactically the code appears to be some sort of variable assignment but has an extra keyword and no assignment operator. You would get the same message for any similar string of unrecognised keywords:
SQL> BEGIN
  2      TRUNCATE TABLE emp;
  3  END;
  4  /
    TRUNCATE TABLE emp;
ERROR at line 2:
ORA-06550: line 2, column 14:
PLS-00103: Encountered the symbol "TABLE" when expecting one of the following:
:= . ( @ % ;
The symbol ":= was inserted before "TABLE" to continue.
SQL> BEGIN
  2      TRANSMOGRIFY TABLE emp;
  3  END;
  4  /
    TRANSMOGRIFY TABLE emp;
ERROR at line 2:
ORA-06550: line 2, column 18:
PLS-00103: Encountered the symbol "TABLE" when expecting one of the following:
:= . ( @ % ;
The symbol ":= was inserted before "TABLE" to continue.
SQL> BEGIN
  2      MORE TEA VICAR; 
  3  END;
  4  /
    MORE TEA VICAR;
ERROR at line 2:
ORA-06550: line 2, column 10:
PLS-00103: Encountered the symbol "TEA" when expecting one of the following:
:= . ( @ % ;

Similar Messages

  • TRUNCATE TABLE  does not work in procedure

    Hi Friends,
    I create a procedure that have a command TRUNCATE TABLE errdbg;
    It use to record data processing information. It iworks in SQLPLUS by manually.
    I put it in procedure and get message as
    Warning: Package Body created with compilation errors.
    SQL> show error;
    Errors for PACKAGE BODY DATALOAD:
    LINE/COL ERROR
    172/10 PLS-00103: Encountered the symbol "TABLE" when expecting one of
    the following:
    := . ( @ % ;
    The symbol ":= was inserted before "TABLE" to continue.
    How to use TRUNCATE command in procedure?
    I can use delete. but it is not good for table space resused based on book.
    Thanks
    JIm

    You can't use DDL in pl/sql unless you use it with execute immediate
    e.g.,
    execute immediate 'truncate table errdbg' ;

  • Early Adopter release : Extract DDL for tables does not work

    Hi,
    just had a look at Raptor - really nice tool - easy install - could be a replacement for SQLnavigator for us. One or two things I noticed though ...
    1)
    Export->DDL for tables does not work throws following error
    java.lang.ClassNotFoundException: oracle.dbtools.raptor.dialogs.actions.TableDMLExport
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at oracle.ideimpl.IdeClassLoader.loadClass(IdeClassLoader.java:140)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.launch(BasicObjectModifier.java:142)
         at oracle.dbtools.raptor.dialogs.BasicObjectModifier.handleEvent(BasicObjectModifier.java:210)
         at oracle.dbtools.raptor.dialogs.actions.XMLBasedObjectAction$DefaultController.handleEvent(XMLBasedObjectAction.java:265)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:530)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:785)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:804)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:499)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    and 2)
    when I click on a package body - I get "loading ..." below it but it never puts the
    procedure names in and the "loading ..."message stays in the tree view - however you do get to see the packages in the source window.
    Realise this is very much a work in progress and am grateful to see an early release such as this. Looking forward to the production release.
    Best regards,
    David.

    OK thanks for looking ....you've obviously got the fixes on your to do lists
    Noticed that the SQL tab when you select an object works fine - displays the
    DDL for the object
    Do you think you'll have functionality so you can select many objects (shift left click) and
    then create a DDL script for them? It looks like you can do this for all objects in a schema but
    the ability to select a subset of objects in a schema would be very useful for our DBA's.
    Couldn't see any good reason for keeping using SQLNavigator
    Many congratulations on producing such a useful tool.
    Kind regards,
    David.

  • I created an Apple ID using my ISP Email when I registered at the Store/Apple Support Communities/iTunes/Face Time and it does not work in iChat. Why Not ?

    Question:-
    I created an Apple ID using my ISP Email when I registered at the Store/Apple Support Communities/iTunes/Face Time or other portal and it does not work in iChat. Why Not ?
    Answer:-
    For a Name to work in iChat it has to be an Valid AIM screen Name.
    Only Apple IDs from the @mac.com ending names registered here  and the Mobileme (@Me.com ending) names are Valid with the AIM service as well as being Apple IDs
    (I am still working on info about registering with iCloud at the moment but if this does give you an @Me.com email it may well be a valid AIM name as well)
    NOTES:-
    The @mac.com page works by linking an external (Non Apple) email with a @mac.com name.
    This External Email cannot be one linked to an Existing Apple ID (you have to use a second email or register at AIM )
    The options at AIM are to use your existing email or create new name and link the existing only for Password recovery
    MobileMe (@me.com ending names) were valid Emails addresses, Apple IDs AND a Valid AIM Screen Name
    @mac.com names look like emails but are only Apple IDs and iChat/AIM Valid Screen Names.
    The AIM registration page seems to be pushing you to register [email protected] This is relatively new and I have not followed through the pages to find out if it a valid AIM email (Previously you could register a name without an @whatever.com suffix)
    8:16 PM      Friday; June 10, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

    Question:-
    So I have my current [email protected] email in iChat as I thought as I had linked that to an Apple ID it was a Valid iChat Name.  It keeps coming up with a UserName or Password Invalid message.  What do I do next ?
    Answer:-
    Open iChat
    Go to the Menu under the iChat name in the Menu Bar and then Preferences and then Accounts in the new window.
    Commonly written as iChat > Preferences > Accounts as directions/actions to take.
    If it displays with a Yellow running name in the list you have a choice.
    Either register it at AIM (I would use a different password to the ISP Login) and then change the password only in iChat  (It may take you to confirm any Confirmation email from AIM first) in iChat > Preferences > Accounts
    Or you register a new Name at AIM (Or at @mac.com) and enter that (details below)
    If you have a Blue Globe name  (@mac.com) that will not Login the chances are that it the password that is the issue.
    Apple lets you create longer passwords than can be used with the AIM Servers.
    Change the Password at iForgot to no more than 16 characters.
    Then change the password in iChat as details above.
    Adding a new Account/Screen Name in iChat (that is valid with the AIM servers)
    Open iChat if not launched.
    Go to iChat Menu > Preferences > Accounts
    Click the Add ( + )  Button at the bottom of the list.
    Choose in the top item drop down either @Mac.com or AIM depending on what you registered
    Add the name (with @mac.com the software will add the @mac.com bit)
    Add in the password.  (If you don't add it now iChat will ask you each time you open it)
    Click Done.
    The Buddy List should open (New Window)
    The Accounts part of the Preferences should now have the new name and you should be looking at the details.
    You can add something in the Description line which will then title the Buddy List (Useful when you have two or more names) and make it show up as that in the iChat Menu > Accounts and the Window Menu of iChat when logged in.
    You can then highlight any other Account/Screen Name you don't want to use and use the Minus ( - ) Button to delete it.
    8:39 PM      Friday; June 10, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Key combination Shift+Alt+Cmd+D does not work in Indesign CC, why not?

    Key combination Shift+Alt+Cmd+D does not work in Indesign CC, why not?

    Is it assigned to something in the shortcut set you are using?

  • Truncate that does not work in a SSIS package but works in SSMS

    Hi guys I have this simple code
    if object_id('[dbo.generator Only production 2011]') is not null
    begin
    truncate table [generator Only Production 2011]
    end
    embedded in a SSIS package. It does not work and I don't understand why. If I run the truncate table [generator Only Production 2011] directly from SSMS it works perfectly.
    Any clue?
    Thanks

    if object_id('[dbo.generator Only production 2011]') is not null
    You quoted the whole schema + object name with brackets; that query will never return a result =>
    if object_id('[dbo].[generator Only production 2011]') is not null
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

  • Alt scroll to zoom does not work in Acrobat anymore, why?

    I used this feature all the time before but it does not work anymore. Why?
    I have Mac OSX 10.10 Yosemite and use a Logitech mouse. Lates versions of all CC-apps.

    Still having this issue after an update...
    I review a lot of architectural drawings, which requires a lot zooming in/out to see details... Up until this last Acrobat Pro (11) update I was able to press option (Mac) and use the scroll wheel to zoom in and out... That convenient feature is now missing... I jacked around with several preferences and Page Display settings with no luck... I am hoping there is a checkbox hidden somewhere that I need to click on... Any clues????
    Thanks...

  • Firefox does not work with yahoo mail, why ???

    for some reason firefox does not work with the new Email window on yahoo.com All the other browsers work with yahoo mail just fine!! Are you working on a fix???

    ''ralphieboy [[#question-1022015|said]]''
    <blockquote>
    for some reason firefox does not work with the new Email window on yahoo.com All the other browsers work with yahoo mail just fine!! Are you working on a fix???
    </blockquote>
    I have had the problem of Yahoo! mail freezing (my computer freezing) with Firefox right after I boot up my computer and sign into my Yahoo! mail account. I have to either shut down my computer or use Control + Alt and press Delete to eventually bring up the Task Manager option. Then, once the choice for Task Manager comes up, I can click on cancel and Yahoo! mail and my computer have "un-frozen." I have followed all the recommendations for updating Firefox, clearing caches, checking if an Add-On is the problem, etc., as well as all the recommendations on Yahoo! help pages. Nothing has improved the situation to date. Firefox info says the problem is with Yahoo! Yahoo! says it is a browser problem. I just want the problem to be fixed.

  • Menu Parameter does not work with MS SQL Server

    I need to create a “Menu Parameter” from a “List of Values supporting "All" and multiple selection. This parameter happens to be a list of funds. The DB is SQL Server.
    We have a stored function that takes a comma separated list of funds as a parameter. SQL Server 2005 does not support array lists as bind parameters to stored procs/functions so we do not have a choice.
    The Menu parameter is effectively a bind parameter but I cannot use it directly due to the sql server limitation mentioned above. I really only have 2 choices:
    1) Oracle could generate the comma separated list like many BI tools do. This does not seem to be an option but it could not hurt to ask is this is available.
    2) Convert the bind variable to a comma separated list prior to passing it into the function. This is what I have tried to do below. This also has a problem in that the @liststr variable goes out of scope during execution. I see the error in the BIPublisher logs. This query works fine in Toad and Aqua Data Studio but fails when I run the report complaining about an undefined variable @liststr.
    - Convert bind variable to comma separated list of values
    DECLARE @listStr VARCHAR(MAX)
    SET @liststr =
    SELECT COALESCE ( COALESCE(@listStr+',' ,'') + fgcode , @listStr)
    FROM FundGroup where fgcode in ('AOMF ALL')
    - Pass the csv into the function
    select *
    from PeriodPNLNoNAV('1/1/2012', '1/31/2012', @listStr, '')
    order by fgdesc

    Hi Martin.
    I try to resolve this problem ( sqlserver masking) but I can't found the OBE mentioned.
    You or anyone have examples about masking MS SQLServer, because in the Oracle documentation suggest that is possible but not "how do it", except the use of heterogeneous services.
    Thanks in advance.
    D.

  • ADF 12.1.2 - filtering in table does not work (not visible)

    Hi.
    When using ADF 12.1.2, in a RichTable based on a View Object which, in turn, is based on an SQL Query, table column filter is not being displayed. However, if View Object is based on an Entity Object, table column filter works just fine.
    Vadim.

    Again to back up what Timo says here, it's important you understand that Oracle Support is your primary mechanism for getting fixes out of Oracle.  It is a contract between your organization and Oracle to provide support.  These OTN forums have no SLA attached, and indeed are frequented by Oracle employees on a voluntary capacity (we like to help customers).  If you absolutely need a fix, you should go through Support.
    I know at this point some people like to get up on their soapbox and tell Oracle "how it should be", but that's ignoring the pragmatic reality, Support is the mechanism which Oracle has in place for you to get results to bug, fixes and other assistance.
    I hope I've been clear enough here gang.
    CM.

  • DB Toolbox List tables - does not work properly

    Hello All
    I have two databases: one "c:\a\aa.mdb" contains some tables inside
    second "c:\a\bb.mdb" contains no table.
    When I run the list tables command from DB toolbox SEPARATELLY the tables are listed in proper way, i.e. one has tables, second does not.
    But when I build a vi which returns the table list, and call it twice the result is wrong. Both database seems to have all tables, even though the second does not contain any tables.
    I attachment you will find the packed example.
    Two databases with udl files (change if unpacked to different directory than c:\a\).
    The vi "two vi tables.vi" shows the problem. It calls "find tables.vi" to return the tables in database.
    You can see th
    at when DB List tables is called in the main vi it works fine. But when it is called two times inside the loop it returns false results.
    Can anybody comment on this.
    For those who are afraid of unpacking zip files I enclose pictures.
    thank you in advance
    Pawel
    Attachments:
    list_tables.zip ‏36 KB
    diagram.gif ‏22 KB
    front_pannel.gif ‏37 KB

    Pawel,
    I apologize for the delayed response to your first question. I am currently working on the problem in order to determine a more permanent solution. These forums are a very important resource for not only helping our customers but also for improving our products!
    With regards to your other question I believe the problem is one of data flow programming. Each table creation will take a certain amount of time to complete depending on the size and nature of the rows and columns being inserted. Unless you programmatically control the data flow, the �DB Tools Execute Query.vi� does not necessarily know when each table has been created. Since control is handed off to the database program, the �DB Tools Create Table vi� is forced to wait
    until the database program returns control.
    To programmatically control the flow of data you would need to use either a case structure with a while loop (suggested) or a sequence structure. These structures are critical in cases where execution of a previous section of code must be completed before subsequent code portions are to execute. I have attached an exaple that may prove useful.
    The wait method is actually a good way to time data flow but in this case may not be the best solution if you want your table creations to be dynamic over time (you may be forced to change the wait for larger table creations, for instance). If you know that your table creations will never change then using a wait method may be an acceptable solution.
    I hope this information helps out some. If not please post back with some sample code or more detail on your issue. Good Luck!
    Craig H.
    National Instruments
    Attachments:
    Create_Table_Example.zip ‏26 KB

  • Flashback table does not work in 10.2?

    I thought that you can undo a drop and recover any table with FLASHBACK TABLE feature which comes with 10.2 by default (i.e. not special setting up is required). But I get this error when I try to do it.
    ORA-00439: feature not enabled: Flashback Table
    I used FLASHBACK TABLE <table name> BEFORE DROP;

    Ahmer Mansoor wrote:
    Dear Channa,
    Please make sure that the parameter recyclebin is on, if not then do the following.
    SQL> ALTER SYSTEM SET RECYCLEBIN=ON SCOPE=BOTH;
    Well, you must check before posting a statement that whether its working or not. Your reply is actually wrong in every manner. First, the parameter is a static parameter and can't be changed by the option BOTH. It has to be spfile and will be requiring a restart of the db. Please see below,
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> alter system set recyclebin=off;
    alter system set recyclebin=off
    ERROR at line 1:
    ORA-02096: specified initialization parameter is not modifiable with this
    option
    SQL> alter system set recyclebin=off scope=both;
    alter system set recyclebin=off scope=both
    ERROR at line 1:
    ORA-02096: specified initialization parameter is not modifiable with this
    option
    SQL> alter system set recyclebin=off scope=spfile;
    System altered.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area  263639040 bytes
    Fixed Size                  1373964 bytes
    Variable Size             205523188 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                6410240 bytes
    Database mounted.
    Database opened.
    SQL> show parameter recyclebin
    NAME                                 TYPE        VALUE
    recyclebin                           string      OFF
    SQL>Second, there is no relation between the parameter's value being OFF/On and the message that the OP is receiving. If the parameter is set to OFF, this would be the message,
    SQL> conn aman/aman
    Connected.
    SQL> create table test_tab(a number);
    Table created.
    SQL> drop table test_tab;
    Table dropped.
    SQL> flashback table test_tab to before drop;
    flashback table test_tab to before drop
    ERROR at line 1:
    ORA-38305: object not in RECYCLE BIN
    SQL> show parameter recyclebin
    NAME                                 TYPE        VALUE
    recyclebin                           string      OFF
    SQL> select * from V$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>HTH
    Aman....

  • .click on row works with php table - does not work with javascript table.

    Howdy,
    I've run into a very interesting problem today, and I hope you'll be able to help me.
    I have a page in which the top is php to read a table from the server, and post the table as the html page is being built.
    The data come up as a table, and each row is clickable, that click moving the user to a different page, based on the row clicked.
    Here are the relevant parts of the php code:
    <?php
    echo "<table id='patienttable' cellpadding=5px border=0 font-size=16px>";
    echo "<tr><th width='30'>"."ID#"."</th><th width='100'>"."Last Name"."</th><th width='100'>"."First Name"."</th><th width='100'>".
    "Middle Name"."</th><th width='80'>"."DOB"."</th><th width='50'>"."Zip"."</th><th width='50'>"."Gender"."</th><th width='100'>".
    "Phone"."</th></tr>";
    while ($row = mysqli_fetch_array($result))
    blah blah blah
    echo "<tr><td id='localid'>".$localid. "</td><td>".$lastname. "</td><td>".$firstname. "</td><td>".$middlename."</td><td>".$dob."</td><td>".$physzip. "</td><td>".$gender."</td><td>".$phone1.       "</td></tr>";
      echo "</table>";
    ?>
    And here is the code to click on a row:
    $("#patienttable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = "root.php"}
    EVERYTHING works great - no problems - working now for about 2 months.
    Today I started to build something similar, BUT! I cannot read from the database at the top of the page, I must do an ajax query, call the db, and post the data in a table;
    Here is the boring, fairly straight-forward javascript code:
    $.ajax({
        type: "POST",
        url: "findpatientbackend.php",
        data: {letterslastname: lastname},
        dataType : 'json',
        success: function(result) {
      $("#div1").html("");
            if(result.length >= 1)
       {var output = "";
             $("div1").html("<table id='findtable'>");
              $.each(result, function(index, value) {
                                                     output += "<tr><td width='100px'></td><td id='localid' width='100px'>"
                 + value.localid + "</td><td width='100px'>"
                 + value.lastname + "</td><td width='100px'>"
                 + value.firstname + "</td><td width='100px'>"
                 + value.middlename + "</td><td width='100px'>"
                 + value.dob + "</td></tr>";
                $("#div1").html(output);
             $("div1").html("</table>");  
        error : function() { alert("error on return"); }
    And here is the click row code, almost EXACTLY like the one above:
    $("#findtable tr").click(function() {
           var passthis = $(this).find("#localid").html();
           $.post("php/setsessionvariable.php",
                  {sessionval: passthis},
         function(e) {window.location.href = '../root.php'}
    All the "stuff" loaded onto the page just fine, BUT, absolutely nothing happens when I click a row.
    Playing around this afternoon, I did a "View Source" on both pages, and saw something VERY interesting;
    1 - The table written by PHP is present, can be seen, and therefore is "clickable" to the jquery .click function.
    2 - The table written by javascript is INVISIBLE! I cannot see it in the source view (but I can see it on the screen) and therefore the .click function can't see it either.
    Questions:
    1. How can I make the table written in javascript "clickable" - how can I make the javascript table "visible"?
    2. Could it be the use of ".html" to post the table to the div? Is there another way?
    And again, I thank you in advance for any help.

    I found the solution to my problem, and perhaps my comments here will help others.
    Thinking a bit more, I wrote a separate javascript routine that created a table, allowed it to be styled, and allowed it to be clickable.
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" type="text/javascript"></script>
    <style>
    #findtable {
    width:200px;
    background-color:#CFD3FE;
    margin:10px auto;
    text-align:center;}
    </style>
    <body>
    <div id="puttablehere"></div>
    <script>
    $(document).ready(function () {
    var output = "<table id='findtable'>";
    for (var i = 0; i<15; i++) {output += "<tr><td width='100px'>X</td><td id='localid' width='100px'>X</td></tr>";}
    output += "</table>";
    $("#puttablehere").html(output);
    $("#findtable tr").click(function(e) { alert("it works!"); });
    </script>
    </body>
    </html>
    The initial code I posted was creating the table the wrong way.
    You have to create the WHOLE table at the same time, and post it all at once.
    The code above does that.
    My learning points are:
    1. To create a table in javascript, and post it with a $("#puttablehere").html(output); call, you must put the ENTIRE table into that single string variable called "output" (or whatever you want to call it).
    2. Everytime you call a jqeury .html function like this: ---("#puttablehere").html(output); -- It COMPLETELY over-writes the whole div/tr/td block that it is pointed at.
    3. If you create a table in javascript (client side) you cannot see it with "View Source" - because what is posted in the table is AFTER the DOM is loaded.
    Creating a table with php server side - you CAN see, because it is posted with the DOM.
    So I thank you for your ideas, and I hope this may help another noob, such as myself, in the future.
    Adios!

  • Email button does not work while in "faces"-why?

    As in the subject line, above, if I find pictures of a particular person, using "faces," then select some of them for mailing, the "email" button on the toolbar is grayed-out.
    This defeats the value of a potentially great feature.

    You're limited to what you can do in Faces view. Emailing, exporting or printing the image is not allowed. Why? No one knows for sure but there are work around's.
    If it is only one image you want to share you can right click on the image and select Show in Project. That will take you to the project where the image is and from there you can share it.
    If it's more then one image you can collect them in an album (select all the images and do New Album) or else flag each image and then go to the Flagged album and work from there.
    regards

Maybe you are looking for

  • Question related to EEWB

    Dear Experts, We have extended the Service Contract Transaction by using the Easy Enhancement Workbench (EEWB). As the result of the generation, we can view our custom fields in a "Custom Fields" tab in the Service Contract. We'd like to display thos

  • IPhoto vs Canon's Digital Photo Professional for RAW

    Greetings, Quick question after not finding much while searching the forums: I'm currently using a MBP C2D, 2.33/2G ram, all updated software. Just got a Canon Rebel XTi, finally putting aside my Canon 35mm (for now anyway). Can someone offer feedbac

  • Javascript in AIR, bind function undefined

    I'm creating an HTML/Javascript based AIR app, but getting the error that 'bind' (a standard JavaScript function) is undefined. Since bind is being used in a 3rd party library this pretty much kills my hopes of using it unless I wanted to hack throug

  • Light white lines appear raise at the bottom of screen ..wht to do??

    Light white lines appear raise at the bottom of screen ..wht to do??

  • Oracle 9i Dataguard automatic failover

    Hi Gurus, I wanted to setup automatic failover from primary to physical standby database in oracle 9i . Could you please advice me what are necessary things required for this setup. Right now we are manually doing the activity. thanks in advance rega