Adding a javascript or HTML button to a custom List page

Hi everyone,
I am using SharePoint 2013 (Office 365 hosted) and have come across a feature I want to implement, but have no idea how.
I want to add a button, that when click, would take the user to a certain URL. I want to add the button to the bottom of my List page, after the last record. Attached is a picture for example:
As shown, I want to add a button where it says "insert button here". Now I have messed a little with SharePoint Designer 2013 and when I go to "List and Libraries", I click on my particular List. It then opens the following page, where
I can open a particular .aspx file, which in turn I can edit. I assume I want to open up Allitems.aspx
The code for the AllItems.aspx is below. I assume I have to add the button somewhere. Please help!
<%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
<SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> -
<SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
<asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
<SharePoint:RssLink runat="server"/>
</asp:content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
<SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
<SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
<SharePoint:ModifySettingsLink runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
<div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=35" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
<WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
<WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="True" InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" NoDefaultStyle="" ViewGuid="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" EnableOriginalValue="False" DisplayName="All Items" ViewContentTypeId="" Default="TRUE" ListUrl="" ListDisplayName="" ListName="{C9D8E425-1521-4EFE-8A59-4EE9FE481482}" ListId="c9d8e425-1521-4efe-8a59-4ee9fe481482" PageType="PAGE_DEFAULTVIEW" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="TestTestListB" FrameType="Default" SuppressWebPartChrome="False" Description="" IsIncluded="True" ZoneID="Main" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" TitleUrl="/Lists/TestTestListB" DetailLink="/Lists/TestTestListB" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_54e1fa61_ff1f_4dfb_ac73_19bb62886f54" ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><ParameterBindings>
<ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
<ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
<ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
<ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
<ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
<ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" /><ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" /><ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" /></ParameterBindings>
<DataFields>
</DataFields>
<XmlDefinition>
<View Name="{54E1FA61-FF1F-4DFB-AC73-19BB62886F54}" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" Type="HTML" DisplayName="All Items" Url="/Lists/TestTestListB/AllItems.aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=35" ><Query><OrderBy><FieldRef Name="ID"/></OrderBy></Query><ViewFields><FieldRef Name="LinkTitle"/><FieldRef Name="CheckFlag"/><FieldRef Name="vamd"/><FieldRef Name="ID"/><FieldRef Name="lnhz"/><FieldRef Name="_x0032_222"/><FieldRef Name="Hyperlink"/><FieldRef Name="Hyperlink2"/><FieldRef Name="CreateWorkflowHyperlink"/><FieldRef Name="reusable"/><FieldRef Name="reusable2"/><FieldRef Name="_x0072_u4"/><FieldRef Name="_x0072_u5"/><FieldRef Name="_x0072_u6"/></ViewFields><RowLimit Paged="TRUE">30</RowLimit><Aggregations Value="Off"/><JSLink>clienttemplates.js</JSLink><XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="Standard"/></View></XmlDefinition>
</WebPartPages:XsltListViewWebPart>
</ZoneTemplate></WebPartPages:WebPartZone>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
<SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
</asp:Content>
<asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
<SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
<ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
</asp:Content>

Hi,
Beside the modification of list view, I would like to recommend to add a Content Editor Web Part (CEWP) at the bottom of the page. To do that:
1. Add Content Editor Web Part (CEWP) and change the zone index to 2.
2. Insert Embed Code to Content Editor Web Part (CEWP). A hyper-link <a> element would look like:
<a href="http://www.microsoft.com/">Insert hyper-link here</a>
Miles LI TechNet Community Support

Similar Messages

  • How to Suppress HTML Button on WCC Check-in Page

    Hi,
    On the WCC checkin page there is an HTML button. When I attempt to add an asset to DAM, and click the HTML button before initial check-in I get this error
    Unable to execute service DC_CACHE_CHECKIN_NEW and function checkDocRules.
    The error was caused by an internally generated issue. The error has been logged.
    Is there a way to suppress the HTML button? I really have no use for it. Or is this a settings error on me WCC server?
    Thank you,
    Randy

    It's not the function isn't developed. It's just that every object on the front panel has a corresponding object on the block diagram. Attached is an example of how to do it with two buttons.
    By the way, if you've run out of room on your panel, it probably means your interface is too crowded. If that is so, I suggest you add more pages to the tab to make your interface more clear.
    Try to take over the world!
    Attachments:
    stop.vi ‏19 KB

  • How can I add the Restore Previous Session button to a custom home page?

    Just lost my full post, so, sorry for the abruptness.
    Here's what I have:
    <pre><nowiki><?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html [
    <!ENTITY % htmlDTD
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
    %htmlDTD;
    <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
    %globalDTD;
    <!ENTITY % aboutHomeDTD SYSTEM "chrome://browser/locale/aboutHome.dtd">
    %aboutHomeDTD;
    <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
    %browserDTD;
    ]>
    <HTML>
    <button class="launchButton" id="restorePreviousSession">&historyRestoreLastSession.label;</button>
    </HTML></nowiki></pre>
    Any help would be appreciated.
    Thanks!

    If someone can tell me this forum's tags for posting code, I'll gladly correct my original post so you can correctly see the code that I'm using. >.<

  • Add attachment button to a custom new form SharePoint 2013

    I'm creating a new custom form using SharePoint Designer 2013.
    I would like to add a attachment button to be able to upload files and images. How can this be done?
    See code below
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir="ltr">
    <input type="file" name="fileupload0" id="onetidIOFile" size="56" title="Name"></input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type="button" value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" id="attachOKbutton" />
    <span id="idSpace"></span>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="New" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="New" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('i','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    Im getting error :
    Uncaught TypeError: Cannot read property 'value' of undefined
    form.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    OkAttachform.js?rev=PxBF2F2E04Ut1YUooXDAbg%3D%3D:1
    onclick
    Somewhere around this line:
    k=document.getElementsByName("RectGifUrl")[0];e.innerHTML='<span class="ms-delAttachments"><IMG SRC=\''+k.value+"'>&nbsp;<a href='javascript:RemoveLocal
    Thanks in Advance

    Create a custom list form or go to your NewForm.aspx using SharePoint Designer. Place the below code where you would like to insert the Attachment Field
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <h3 class="ms-standardheader">
    <nobr>Attach Files</nobr>
    </h3>
    </td>
    <td valign="top" class="ms-formbody" id="attachmentsOnClient" style="width: 434px">
    <span dir=”ltr”>
    <input type=”file” name=”fileupload0″ id=”onetidIOFile” size=”56″ title=”Name”> </input>
    </span>
    </td>
    <td width="100px" valign="top" class="ms-formbody">
    <input name="Button1" type=”button” value="Attach" onclick='OkAttach()' style="width: 6em;
    height: 1.7em" />
    <span id="idSpace"></span>
    </td>
    </tr>
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

  • HTML Button use an image instead of Text

    I have an HTML button in its own region called A_BUTTON, its current Button display attributes are
    sytle: HTML Button
    Attributes: name="A" class="where_clause_button"
    what it does is i use a dynamic action based off the where_clause_button jquery selector and use javascript to update a hidden field. I would now like to use the Oracle Logo for example as the image of the button instead of using a text label for it. I tried adding to the Attributes src="http://www.oracleimg.com/admin/images/ocom/hp/oralogo_small.gif". When i run it the button still works the same as before but without the image and retains its Text Label, in this case its A.
    the html it generates is for the button during runtime is:
    <input type="button" src="http://www.oracleimg.com/admin/images/ocom/hp/oralogo_small.gif" class="where_clause_button" name="A" onclick="apex.submit('');" id="A_BUTTON" value="A">
    How do i retain the functionality of this button but make it an image button?
    Edited by: Brobot on Feb 9, 2011 5:22 PM

    <li>Use a template based button and customize the template with the image.
    <li>Add appropriate JS code to the URL section(prefixing with "javascript:" ) and optionally add a some ID attribute for easy JS access.

  • HTML button - button attributes

    I have a 'submit' button on my form that is using the 'HTML' button style.
    I added the following to the 'button attributes' section:
    onclick="doSave();"
    When I view my source, I see 2 'onclicks' which makes the 2nd onclick get ignored.
    <input type="BUTTON" value="Submit" onClick="javascript:this.disabled=true; doSubmit('SUBMIT');" onclick="doSave();">
    What do I need to do to get this formatted correctly?

    Bob,
    Do you need it to do the items in the first on click also?
    You can change the button attributes so that:
    Target is a: URL
    URL Target: javascript:doSave();
    does that work for you?
    Message was edited by:
    TheJosh
    (fixed an error)

  • How can I submit the page from javascript in html header?

    I followed
    http://www.oracle.com/technology/products/database/htmldb/howtos/htmldb_javascript_howto2.html#client
    It says "doSubmit('Delete');" to submit the delete action.
    If I do the same in the java script that is embededed in html header, it does not work.
    I am assuming 'Delete' is the name of the button here.
    I also tried:
    document.forms[5].submit(); --> does not work
    document.formname.submit(); --> does not work
    I want to know:
         how I get the form name. I am assuming that this is the name in Name field in "Page definition" or is this page number?
         how to sumit a form from the javascript in html header

    sudheshna,
    function deleteConfirm(msg)
    should be
    function Confirmdelete(msg)
    cheers
    KIM

  • WAD: Add variable to a called javascript function on button group item

    Hi All,
    I need your expertise regarding the following problem:
    To increase performance, I've decided to hide all analysis tables. To set these tables to visible, there is a button to switch the state for each table.
    Because this function is needed for each table, the function has two parameters for the analysis item name and the new state.
    Unfortunately, I get an useless error message after calling the function.
    The function in script item looks like
    function switchTable(itemName, newState)
    The function is started by a button of a button group item as javascript and the following script function
    switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    If I enter a without parameters, that will call the function with these parameters, it works.
    But if i try this directly from the script function in the button parameters, the function will be called correctly, but an error occurs and the analysis item wasn't displayed or the sendCommand wasn't processed completely.
    I hope there is a way to call javascripts by a button with variables, otherwise I would have to create many functions with only an other item_ref.
    Many thanks in advance and points of course for any help.
    Regards,
    Tobias

    One short note:
    It's possible to trigger the same function by an html input form button with onlick switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    and this works.
    Has anyone an idea what's the problem with a normal button item of the button group item?
    Another possibility is a menu item. The functions were called, but errors were shown.

  • Javascript in HTML of Email Being Ignored

    The users of our application access the login page by first visiting a simple HTML page with virtually nothing but a link on the page. The user then clicks the link, and within the HTML of this page is javascript that makes the login page of the application open in a new window with no browser buttons, so that the users can navigate through the application using only the buttons we intend for them to use.
    This works quite well, but the problem I'm having is with emails we send out from the application. In the HTML for the emails we send, we have a a similar link to the login page for the application, just like the one on the aforementioned plain HTML page. If I take the HTML of the email and save it as a .html file outside of the context of the email, I can click this link and the application login page opens up with all the specification we've set with the javascript; no browser buttons, etc... However, when I cut and paste this exact HTML into the email we send out, when the user receives the email and clicks the link, the login page opens, but the window has browser buttons.
    I realize this may not be an issue with HTML DB, but I was hoping someone may have some insight into how this may be corrected. I don't know if this is an issue with our email application (Lotus Notes, which I hate), or what, but I hate to have to make the link in the email a link back to the original HTML page where the user then has to click yet another link just to get to the login page for the application.

    Carl,
    I didn't know you could do this. I checked the user guide for rel2 and shows this as p_attributes or "HTML tag attributes".
    I've coded it as:
    ch.CM_KEY,
    htmldb_item.checkbox(1,ch.chemical_key,
    'onclick="set_select_val(this)"') sel,
    I put in this in the query, but it comes back with one of those "query cannot be parsed. If you believe your query is syntactically correct...(ORA-06550: line 12, column 2: PLS-00103:Encountered the symbol "ONCLICK" when expecting one of the..." messages. I'm a bit hesitant to hit the apply changes button, as it usually is something in the query.
    Alex

  • Apex generating javascript to disable button onClick

    I have navigational buttons in a region to go, for example, to the "Next" page.
    APEX is including:
    onClick="javascript:this.disabled=true;"
    as part of the "Next" buttons attributes.
    So that after the user clicks the "Next" button and goes to the next page,
    if they click the browsers Back button, the "Next" button is indeed disabled.
    The Next button is disabled in FireFox but remains enabled in IE. Thus causing
    confusion for the user using FireFox.
    So I'd like to have APEX not generate this javascript at all.
    Is there a way to turn that off? Some switch on the page/region/button that I'm
    not seeing?
    Or is this just the old browser back button problem?
    Thanks in advance.

    I have processes that make calls to packages on the back-end so I don't know if importing it into the Oracle Apex hosted environment will work.
    This may or may not help but these are the page by page steps I took in creating these buttons.
    1- Click the "Create" button icon in the "Buttons" area in the "Page Rendering" column.
    2- "Select a region for the button:" (Gave it an existing region to reside in).
    3- Choose: "Create a button in a region position"
    4- Give it a Name and a Label. Click "HTML Button". Leave the default "Submit Page and Redirect to URL".
    5- Choose a Region Position, Sequence, Alignment (under "Button Attributes" is where I assigned it a style but NOT for this button).
    6- Choose a page to branch to.
    7- Click "Create button". (no display condition chosen if you clicked the Next button).
    8- Run Page
    9- View the Source
    There it is:
    <input type="BUTTON" value="Test" onClick="javascript:this.disabled=true; doSubmit('TEST');" >
    and it also creates the Branch that redirects to the page I specified based on the buttons name (I think it uses name, still a little new to this).
    so i dunno. 8-( Just wondered if that sequence of events seems normal.

  • Jquery + json generate html buttons with condition

    Hi all,
    My need is to generate buttons with conditions described in json. Help me please, I’m newbie.
    Here is my json code (it is valid, but does not work with html code below) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "Conditions": [
                        "ConditionText": "1 == 1",
                        "ButtonText": "Text1",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
                        "ConditionText": "2 == 2",
                        "ButtonText": "Text2",
                        "Visible": true,
                        "Colors": {
                            "FontColor": "#FFFFFF",
                            "BGColor": "#00FF00"
                        "Size": {
                            "Width": 200,
                            "Height": 50
                        "Icon": {
                            "FileName": "Smile.png",
                            "Width": 16,
                            "Height": 16
                        "Url": {
                            "UrlAddress": "http://www.google.com",
                            "OpenNewWindow": true
                        "JavaScriptAction": {
                            "Text": "alert('ok');"
    html code:
    <html>
    <head>
    <title>SMButtons</title>
    [removed][removed]
    [removed]        
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('weekendtask.json', function(data) {
            var buttons = data.Buttons;
               $.each(buttons, function(key, val)
                        $('<li><input type="button" value="'+ val.ButtonText +'"/></li>').appendTo('#ulObj');
       [removed]
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    </ul>
    </div>
    </body>
    </html>
    Also I would like to show here my working code (generating html buttons from json without condition).
    json code (it works) :
        "Caption": "Module caption",
        "IconsDirectory": "C://Images/",
        "Buttons": [
                "TText": "google",
                "JavaScriptAction": "alert('google')"
                "TText": "microsoft",
                "JavaScriptAction": "alert('microsoft')"
                "TText": "yahoo",
                "JavaScriptAction": "alert('yahoo')"
    html code (it works) :
    <html>
    <head>
    <title>SMButtons</title>
    <script src="jquery/jquery-1.4.2.js"></script>
    <script type="text/javascript">                 
    //When document loaded.
    $(document).ready(function(){  
    // Get data from file as JSON
                $.getJSON('Module.json', function(data) {
                // Set json data from file to variable 'persons'
        var buttons = data.Buttons;
        var icondir = data.IconsDirectory;
        // For each item of variable person append to ul list
               $.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' value='"+ val.TText +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        $('<li><input type="button" onClick="'+ val.JavaScriptAction +'" value="'+ val.TText +'"/></li>').appendTo('#ulObj');
        //var knop = data.Knop;
        // For each item of variable person append to ul list
               //$.each(buttons, function(key, val)
                        //$("<li><input type='button' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#aaa');
    //$("<li><input type='button' style='"+ val.Style +"' onClick='"+ val.Url +"' value='"+ val.Text +"'/></li>").appendTo('#bbb');
                        //style="height: 25px; width: 100px"
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
                        //$('<li><input type="button" onClick="'+ val.action +'" value="'+ val.Text +'"/></li>').appendTo('#aaa');
       </script>
    </head>
    <body>
    <br>
    <br>
    <div>
    <ul id='ulObj'>
    <li>1</li>
    </ul>
    </div>
    <br>
    <div>
    <ul id='aaa'>
    <!--<li>1</li>-->
    </ul>
    </div>
    <!--<button type="submit" style="height: 95px; width: 550px"> </button>-->
    <!--background: url('img/submit_button.jpg'); background-position: center; background-repeat: no-repeat;  background-color:Transparent;-->
    <div>
    <ul id='bbb'>
    <!--<li><img src="img/submit_button.jpg"/></li>-->
    <!--<li>Button caption</li>-->
    </ul>
    </div>
    </body>
    </html>

    What you are saying makes great sense. It's just the mechanics behind what you've said that I'm unclear about.
    <p>
    Are you saying to create another button within the same region with the same attributes/position, so they overlay each other? Then set the conditions on both buttons?
    <p>
    If I understand the above correctly, then how do I set the conditions? I guess I'm asking where do I place the SQL statement and how does the results relate to the button conditions?
    <p>
    Thanks for the help,
    David

  • Is javascript in HTML e-mail possible ?

    Hi mates,
    I'm trying to send an HTML e-mail with a piece javascript code which is an Action handler for the buttons in the HTML mail.
    Using MailPackage in my mapping, I made sure that javascript and html code is rendered in the output XML message.
    But in my mailbox, in the source of my HTML email I dont see the javascript code.
    Is there anyway I can get the javascript in the email using receiver mail adapter?
    Appreciate ur inouts.
    thx in adv
    praveen

    Praveen,
    Since it is possible that a script based virus can spread very easily thro' such emails, most of the email clients as well as corporate email servers filter out scripts in Html emails. You will have to tweak a bit with the security settings of your default email client as well as get this clarified from your network / email admins.
    -- Amol

  • How is it possible to insert the .html button into the header?

    Hello everybody!
    My site is [link removed - promotion is not permitted here] But I have one more site as well. I'm a newbie still in this matter and learn everything by myself, so, I need some help, guys. I would like to create the same header like in my site and insert the html button in the picture. Should I use Photoshop for this purpose or another tools? And it would be nice also to make links in the infographics as well. How should I be?
    Thanks. Appreciate your help

    Just use JavaScript!
    http://www.crowderassoc.com/javascript/backbutton.html

  • How to add a value(text) from javascript to html:option tag .....

    How to populate the <html:option> tag dynamically
    I have a tree view, in tree view tag ( <layout:maeuItem> tag i have written "onclick " event )
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick="return copyVal(this)">
    <script language="javascript" type="text/javascript">
                   function copyVal(obj){
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   document.getElementById('agrovoc').value =document.getElementById('agrovoc').value + xyz+'\n';
                   </script>Here "xyz" contains the Term ( the term clicked in the tree view) now i want add these terms ( clicked in tree view) into <html: option> tag.... how to do this.. plz give me some ideas
    <html:select  property="agrovocbuffer" size="10" >
                        <html:option value="" styleId="agrovoc1"></html:option>
                        </html:select>

    Hi,
    i have tried with this, it's works fine... but when i click on the next page ( i mean 2 or 3 page etc ) the content of <html:option> are erasing (deleting).. i wanted those terms wht i have selected in the 1st page to remain in <html:option> when i click on 2 nd page also...
    Tree view code
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick=" copyVal(this)">JavaScript
    <script language="javascript" type="text/javascript">
                    var i=0;     
                    var myArray=new Array();
                   function copyVal(obj){
                        var flag=0;     
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   while (xyz != null) {
                   for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==xyz){flag=1;alret("The Term is already selected.");}
                   if(flag!=1){
                   document.getElementById('agrovoc').options[i] =new Option(xyz,xyz);
                   myArray=xyz;
                   i++;
                   //alert(i);
                   xyz=null;
                   function del(){
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  firstBox = document.getElementById('agrovoc');
                                  selectedOption = firstBox.options[firstBox.selectedIndex].value;
                                  selected = firstBox.options[firstBox.selectedIndex].index;
                                  //alert(selected);
                                  for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==selectedOption){myArray[l]="";}
                                  firstBox.options[firstBox.selectedIndex] = null;
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  for(var x=selected;x<oc.length;x++,selected++)
                                  document.getElementById('agrovoc').options[x] =new Option(firstBox.options[selected].value);
                                  i=oc.length;
                   </script>
    <html:select> code<div align="left" id="hopt">     
                   <td valign="top">
                   <logic:present name="hcount">
                        <html:select property="agrovocbuffer" size="15" styleId="agrovoc" multiple="true" style="width:200px;" >
                        <html:option value="" ></html:option>
                        </html:select><html:button property="button" onclick="del()"> DEL</html:button>
                   </logic:present>
                   </td>
                   </div>
    And all the above code is in <html:form> tag & i have written a custom pagination page
    Now i want  all terms which are in <html:option> remain  in options when i goto 2 nd page..
    how to do this? In the DOM inspector i'm getting the options, but when see the source HTML there are no <html:options>.. when click on the 2 page link the terms which are in <html:option> are not going to the "Action" class ..  :(
    how to do this .. any idea plz..?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to pass parameters to javascript from HTMLB Button Click

    Hi Experts,
    I am using a HTMLB Button, I need to pass parameters to JavaScript onClientClick.
    Whether we can pass parameters to javascript function from HTMLB button.
    I tried to pass parameters to javascript in onClientClick, but on load of the page it is saying that its a Syntax error.
    This is the code that i have created Script
    Note: The parameters and the Button are dynamically created. Also there are n Numbers of buttons created.
    Please help me in this regard to solve the issue. If there are any error in syntax please let me know.
    Thanks & Regards,
    Palani

    Rather than using SQL loader, you could just use similar syntax in an external table definition. It both cases, the file may need to be at the OS level.
    http://www.psoug.org/reference/externaltab.html
    If your file is stored in an Apex table's clob column, you can just loop through the individual lines (but then need to parse the lines yourself). See clob2line here http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:285215954607#388438800346703098
    Or you can dump the clob to the OS first (using utl_file or dbms_lob), and then read it back using external table, taking advantage of your control file definition. sqlloader has the disadvantage of needing user/pass usually.
    http://www.psoug.org/reference/dbms_lob.html
    http://www.psoug.org/reference/utl_file.html

Maybe you are looking for

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on. The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimu

  • Creating new folders in Mail

    Greetings.. How does one create new folders under the inbox for organizing purposes? I was expecting to be able to create a "new folder" within any other folder, but all I can find is smart folders, and some other strange option which results in this

  • Could not find Factory: javax.faces.context.FacesContextFactory

    I'm trying to start a new JSF with facelets app from scratch using JSF 1.2.06 on Tomcat 6.0.10 but I can't even get the app to start. I get this when I try to start the app: java.lang.IllegalStateException: Application was not properly initialized at

  • Installation Error (15)

    Hi everybody! I have a problem installing adobe edge animate cc. My Laptop runs a Win7 Premium SP1 and fulfills all other system requirements. When i try to install the creative cloud desktop app i get the adobe application manager which i hope is st

  • Short cut key!!!help

    I have a menu like File --> Open, Exit. I want to set the Exit menuitem to have a short cut key like 'ctrl-x'. How can I do that?? I'm using JMenu as the menu bar. Thank you.