Html tables with javascript pop up windows

I have two tables with different table-id in html, that are as follows -
table-header - consists of dynamic week wise days + resources
table-data in with same nnumbers of columns...
                      for Img - http://i.stack.imgur.com/Gwvoq.png
The Assign Task is a Button in every cell of table-data , What I need is , whent I click any button, the Pop-up window ( Kendowindow which is I m using right now in Javascript preferably) should display respective Cell row's 1st cell i.e resource's name and Id and cell column's 1st cell i.e. Date string.
Please suggest the solutions.... Help is kindly appreciated.
P.S. -- Please don't suggest Kendo Grid or Scheduler, because I can't able produce this kind of format, If you can do pls share your code and procedure.

This forum is about JavaScript in PDF files, not in HTML pages.

Similar Messages

  • I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?

    I get an error stating cc cookies dir: cannot make folder / cookies: Permission denied (error 13) when I attempted to download the creative cloud installer on my Mac. Can anyone help with similar pop up window?  I'm trying to get a trial version of CS5. 

    You do not need to involve Creative Cloud to install/try the trial version of CS5...
    You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • How to convert html table with all its css properties into excel , by javascript or jQuery

    hi,
    <script type="text/javascript">
    //working java script
    function CreateExcelSheet()
    var x = Table1.rows
    var xls = new ActiveXObject("Excel.Application")
    xls.Workbooks.Add
    for (i = 0; i < x.length; i++) {
    var y = x[i].cells
    for (j = 0; j < y.length; j++) {
    xls.Cells(i + 1, j + 1).Value = y[j].innerText
    } xls.visible = true
    function write_to_excel()
    str = "";
    debugger;
    var mytable = document.getElementsByTagName("table")[0];
    var rowCount = mytable.rows.length;
    var colCount = mytable.getElementsByTagName("tr")[0].getElementsByTagName("td").length;
    var ExcelApp = new ActiveXObject("Excel.Application");
    var ExcelSheet = new ActiveXObject("Excel.Sheet");
    debugger;
    ExcelSheet.Application.Visible = true;
    for (var i = 0; i < rowCount; i++)
    for (var j = 0; j < colCount; j++)
    str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].innerText;
    ExcelSheet.ActiveSheet.Cells(i + 1, j + 1).Value = str;
    //new funtion
    function ExportToExcel(mytblId) {
    debugger;
    var htmltable = document.getElementById('Table1');
    var html = htmltable.innerHTML;
    window.open('data:application/vnd.ms-excel,' + encodeURIComponent(html));
    //new funtion 2
    function write_to_excel2() {
    str = "";
    debugger;
    var mytable = document.getElementById("Table1");
    var rowCount = mytable.rows.length;
    var colCount = mytable.getElementsByTagName("tr")[0].getElementsByTagName("th").length;
    var ExcelApp = new ActiveXObject("Excel.Application");
    var ExcelSheet = new ActiveXObject("Excel.Sheet");
    //ExcelSheet.Application.Visible = true;
    for (var i = 0; i < rowCount; i++)
    for (var j = 0; j < colCount; j++)
    debugger;
    // if (i == 0) {
    // str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("th")[j].innerText;
    str = mytable.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].innerText;
    ExcelSheet.ActiveSheet.Cells(i + 1, j + 1).Value = str;
    ExcelSheet.autofit;
    ExcelSheet.Application.Visible = true;
    DisplayAlerts = true;
    CollectGarbage();
    //csss
    function excelExportHtml(Table1, css1)
    debugger;
    if (css1) {
    var styles = [];
    //grab all styles defined on the page
    $("style").each(function(index, domEle) {
    styles.push($(domEle).html());
    //grab all styles referenced by stylesheet links on the page
    var ajaxCalls = [];
    $("[rel=stylesheet]").each(function() {
    ajaxCalls.push($.get(this.href, '', function(data) {
    styles.push(data);
    return $.when.apply(null, ajaxCalls)
    .then(function() {
    return "<html><style type='text/css'>" + styles.join("\n") + "</style>\n" + table.outerHTML + "</html>";
    else {
    return $.when({ owcHtml: Table1.outerHTML })
    .then(function(result) {
    return "<html>" + result.owcHtml + "</html>";
    //new
    function ExportToExcel() {
    $(document).ready(function() {
    $("#btnExport").click(function(e) {
    window.open('data:application/vnd.ms-excel,' + $('#Table1').html());
    alert("jhhklhhklhklh");
    //new
    $(document).ready(function() {
    debugger;
    $("[id$=myButtonControlID]").click(function(e) {
    window.open('data:application/vnd.ms-excel,' + $('div[id$=divTableDataHolder]').html());
    e.preventDefault();
    alert("k");
    function excel()
    {debugger;
    var tableToExcel = (function() {
    var uri = 'data:application/vnd.ms-excel;base64,'
    , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'
    , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) }
    , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, p) { return c[p]; }) }
    return function(table, name) {
    if (!table.nodeType) table = document.getElementById(table)
    var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML }
    window.location.href = uri + base64(format(template, ctx))
    </script>
    i have tried all the above java script and jquery to convert an html table to excel, data are exporting correctly but i want that css of the table should also implent to excel thats not happening,even the property defined inside td and tr aare not implementing
    in excel

    Hi avinashk89,
    Welcome to post in MSDN forums.
    This is not the right forum for your question. Please post in
    ASP.NET forums where you could get better support.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adding text to javascript pop up window

    I am opening a pop up windows with javascript from my Flash
    movie that works fine. Each opening window has a video in it. Now
    what I'd like to do is add text under/above the quick time movie
    inside the pop up windows. I'm not very savvy with programming and
    I've tried to look all over but can't find a simple direct answer,
    so any help would be greatly appreciated.
    Thanks!
    Here's the code I have inside the Flash movie:
    btn_rebecca.onRelease = function() {
    getURL("javascript:openNewWindow('Videos/rebecca.mov','thewin','width=500,height=400,toolb ar=no,scrollbars=no')");
    And here's the code I have in the html:
    <script language="JavaScript">
    function openNewWindow(URLtoOpen, windowName, windowFeatures)
    newWindow=window.open(URLtoOpen, windowName, windowFeatures);
    </script>

    An html document is an html document. If you create a
    document that has a line of text, then the QT movie, and then
    another line of text, you have the basic layout of the movie. If
    you just open this document in a browser, it will work as a normal
    html document. If you open that same page using the window.open()
    JS method, then you can define the chrome and size of the window.
    If you don't want to create all 20 pages and load then on
    your server, then you could write a JS function to write the
    content to an html document on the fly. You might do this by:
    1. Use window.open() to open up a blank html document,
    2. Use document.write() to write the html content that you
    want in that document.
    That way you can create as many custom windows with unique
    content as you want.
    If all of the content is static, then it really is a whole
    lot less work to just make the html documents and open them as
    needed.

  • Javascript Pop-up window

    Hello guys. PLEASE HELP ME!
    I have the Javascript for opening a page into a pop up window
    with no toolbars, scrollers etc….
    Here is the code that I enter in the html page itself in the
    HEAD tags:
    </style></head>
    <script language="JavaScript">
    function openNewWindow(URLtoOpen, windowName, windowFeatures)
    newWindow=window.open(URLtoOpen, windowName, windowFeatures);
    </script>
    Here is the code that I enter into a button from the flash
    movie:
    on (release) {
    getURL("\r\njavascript:openNewWindow('main.html','thewin',\\r\\n'width=1280,height=980,to olbar=no,scrollbars=yes')");
    What I am looking for is that I need the popup window to open
    not by specifying WIDTH and HEIGHT as above in my script, but I
    would like the html to extend and open on a percentage way thus to
    fit any monitor.
    I tried this but it wasn’t working:
    'width=100%,height=100%
    Or
    'width=default, height=default
    I hope someone has the clue for me regarding this issue.
    Thanks a lot for your efforts,
    Beko

    Here you go....
    <script type="text/javascript">
    <!--
    function popup(url)
    params += ', directories=no';
    params += ', location=no';
    params += ', menubar=no';
    params += ', resizable=no';
    params += ', scrollbars=no';
    params += ', status=no';
    params += ', toolbar=no';
    params += ', fullscreen=yes';
    newwin=window.open(url,'windowname', params);
    if (window.focus) {newwin.focus()}
    return false;
    // -->
    </script>
    <a href="javascript: void(0)"
    onclick="popup('popup.html')">Fullscreen popup window</a>
    Thanks & Regards
    Ankur Arora
    Project Leader(Flash and Flex)
    http://flashdeveloper.blogspot.com
    let your
    thoughts fly to others... you will become rich.

  • Help With Video Pop Up Window.

    Hi there Im very new to web design so please understand that I am a complete novice, so my understanding is limited. Any help would be most appreciated.
    Could anyone provide me with a piece of code I can put into the HTML snippet function that will allow me from a hyperlink that says "video" to open up this Vimeo video (see below) in a new window that is the exact dimensions of the given video.- Almost like a pop up.
    Many thanks to any help,
    - preferably I want the appearance of the video to be like the embedd code below regulates: to not include any additional text etc.
    <object width="255" height="143"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clipid=8695239&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;showportrait=0&amp;color=0&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clipid=8695239&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;showportrait=0&amp;color=0&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="255" height="143"></embed></object>
    also here is the link to the original page http://vimeo.com/8695239
    Thanks again, Robin.

    On this page you'll find code to open a page with video in a new window :
    http://www.wyodor.net/MoreEmbed/
    Click where it says :
    Here's a basic sample page with shaded background you can use for testing.
    Click to open a window with the pop-up code.

  • Issue with date pop-up window coming up continuously

    Hey all,
    We are experiencing some sort of weird Swing behavior in our
    application with a date pop-up window. When we update date
    values, a pop-up date selection window displays. Then we choose
    a date by either double clicking a date or clicking on a date
    and clicking OK. Well, on subsequent updates of dates in a
    specific table, it is prompting us to select the date 3-4 times
    before taking. In other words, the pop-up date selection window
    displays 3-4 time consecutively despite choosing a date each
    time before taking affect on the last selection.
    Looking at the code and the behavior, it seems the application
    is simply ignoring the fact that the event has been completed.
    has anybody experienced behavior like this? Any help would be
    appreciated. We are stumped.
    Need more information?
    Thanks in advance,
    Tim

    here's a snippet of the code that's generating the calendar
    dialog:
    when a "double click" is detected:
    public void mouseClicked(MouseEvent e)
    if(e.getClickCount() == 2)
    //consume event to prevent it from "contaminating" other
    mouse listeners
    e.consume();
    if (AbstractApplication.LOG_INFO)
    System.out.println("Calendar row double-clicked");
    CalendarDialog cd = AbstractApplication.getCurrentInstance
    ().getCalendarDialog();
    cd.init(fieldToModify);
    cd.setLocation(100, 100);
    cd.resetDefaultButton();
    cd.setVisible(true);
    which calls this in CalendarDialog:
    public void init(JTextComponent aFieldToModify)
    setFieldToModify(aFieldToModify);
    DateTime currentDate = validateTextDatePassedIn
    (getFieldToModify().getText());
    setDateAsText(currentDate.toString());
    //remove button listener
    if(OKButtonListener != null)
    getOKButton().removeActionListener(getOKButtonListener());
    //set new button listener, then pump in appropriate date info
    getOKButton().removeActionListener(getOKButtonListener());
    setOKButtonListener(new CommitToFieldListener());
    getOKButton().addActionListener(getOKButtonListener());
    if(currentDate != null)
    { initDateInfo(currentDate); }

  • Having problems with a pop up window when downloading

    Hi all,
    i developed a site in asp.net,
    everytime i click to download a file on the site, it opens a *blank window* and leaves it open, it only happens with safari, it works fine with the other popular browsers, with the others, it opens the download box directly.
    for safari it still downloads directly but the blank pop up window still stays open.
    im not a pro, but would like to fix this, i would be really greatul if someone could help me for this,
    Thanking you in advance!

    Thank you for your response Carolyn,
    but unfortunately it has more to do with coding compatibility, i put the target to blank as highlighted. it opens the window for all browsers and closes it automatically when the download starts, but with safari it stays open.
    here is the code for the download asp.net function,is there anything which needs to be put up there to be compatible with safari?
    i do hope that it is now clearer,
    thanking you again!
    <table border="0" cellspacing="0" cellpadding="0" style="margin-left:0;">
    <tr>
    <td width="185" height="89" align="center"></td>
    </tr>
    <tr>
    <td height="30" align="center" ><table width="100%" border="0" cellpadding="0" cellspacing="5">
    <tr>
    <td width="38%" align="right" ></td>
    <td width="62%" align="left" class="riqi">Campus</td>
    </tr>
    </table></td>
    </tr>
    </table>
    </td><td></td><td></td><td></td><td></td>
    </tr>
    </table>
    Message was edited by: positivologist

  • Please Help. How to access to an input field in a table with javascript

    Hi
    i�m trying to access to the content of an input field that is in an table with a javascript function in this way
    function Valida_Tabla()
    var centro = document.getElementById("form1:idcentro").value;
    alert("Centro es ["+centro+"]")
    var des = document.getElementById("form1:table1:0:textField2").value;
    alert("des ["+des+"]")
    The fisrt alert is ok and displays the value of a field that is in a table.
    The second alert is not displayed.
    Is the syntax wrong?
    what i�m doing wrong
    Please help

    The best bet is to look at the source of the generated HTML and then use the exactly generated ID in the HTML source. When I looked at the HTML source I see the ID of a textfied inside a table as
    form1:table1:tableRowGroup1:0:tableColumn1:textField1
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Creating a selectable HTML table with Sahrepoint list data dind

    Hi All,
    I m creating an app for sharepoint2013 , on my app I want to read data from SP list and display on something like HTML table/ grid view.
    What I have done is as follows.
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="TermList">
                        <thead>
                            <tr>
                                        <th>Start Date</th>
                                <th>End Date</th>
                                <th>Term Type(s)</th>
                                <th>Specialty</th>
                                <th width="12%">Sub Specialty</th>
                            </tr>
                        </thead>
                                            <tbody>
                            </tbody>
    </table>
    var context = SP.ClientContext.get_current();
    var user = context.get_web().get_currentUser();
    var Termsitems, web, hostcontext, currentusertitle;
    var hosturl;
    (function () {
    $(document).ready(function () {
        gethostdata();
        getUserName();
        $('#TermList').dataTable(
                        "sScrollY": 200,
                            This will enable jQuery UI theme
                        "bJQueryUI": true,
                            will add the pagination links
                        "sPaginationType": "full_numbers"
        getTermdetails();
    function gethostdata() {
        hosturl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
        context = new SP.ClientContext.get_current();
        hostcontext = new SP.AppContextSite(context, hosturl);
        web = hostcontext.get_web();
        context.load(web, 'Title');
        context.executeQueryAsync(onSiteLoadSuccess, onQueryFailed);
    function onSiteLoadSuccess(sender, args) {
        //   alert("site title : " + web.get_title());
    function onQueryFailed(sender, args) {
        alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace());
    function getQueryStringParameter(urlParameterKey) {
        var params = document.URL.split('?')[1].split('&');
        var strParams = '';
        for (var i = 0; i < params.length; i = i + 1) {
            var singleParam = params[i].split('=');
            if (singleParam[0] == urlParameterKey)
                return decodeURIComponent(singleParam[1]);
    // This function prepares, loads, and then executes a SharePoint query to get the current users information
    function getUserName() {
        context.load(user);
        context.executeQueryAsync(onGetUserNameSuccess, onGetUserNameFail);
    // This function is executed if the above call is successful
    // It replaces the contents of the 'message' element with the user name
    function onGetUserNameSuccess() {
    currentusertitle= user.get_title();
      $('#message').text('Hello ' + user.get_title());
    // This function is executed if the above call fails
    function onGetUserNameFail(sender, args) {
        alert('Failed to get user name. Error:' + args.get_message());
    function getTermdetails() {
        var Termlist = web.get_lists().getByTitle("TraineeTermsSPlist");
        context.load(Termlist)
        var camlQuery = new SP.CamlQuery();
        camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Title" />' +
                                 '<Value Type="Text"> + currentusertitle + </Value></Eq></Where></Query></View>');
        Termsitems = Termlist.getItems(camlQuery);
        context.load(Termsitems);
        context.executeQueryAsync(getTermdetailsQuerySuccsess, getTermdetailsQueryFails)
    function getTermdetailsQuerySuccsess(sender, args) {
        var listEnumerator = Termsitems.getEnumerator();
        var datatable = document.getElementById("TermList");
        while (listEnumerator.moveNext()) {
            var oListItem = listEnumerator.get_current();
            var startdate = listEnumerator.get_current().get_item('startdate');
            var enddate = listEnumerator.get_current().get_item('Enddate');
            var termtype = listEnumerator.get_current().get_item('TermType');       
            var Specialty = listEnumerator.get_current().get_item('Specialty');
            var Specialty = listEnumerator.get_current().get_item('Subspecialty');
            $("#TermList").append("<tr align='middle'  class='gradeA'>" +
                                      "<td align='left'>" + startdate +
    "</td>" +
                                      "<td align='left'>" + enddate + "</td>"
    +
                                      "<td align='left'>" + termtype + "</td>"
    +
                                      "<td align='left'>" + Specialty +
    "</td>" +
                                      "<td align='left'>" + Specialty +
    "</td>" + "</tr>");
    function getTermdetailsQueryFails(sender, args) {
        alert(' Error:' + args.get_message());
    Now what I want to do is allow user to select rows on the table. Once they select a row I want to get that selected row and search SP list based on the selected value.  Also I would like to make this table with search area to search records.
    Can someone please help me to do this, or are there any easy way to do this. Sample code or useful link much appreciate.
    Thank you very much.
    d.n weerasinghe

    Instead of writing in dive each and every time directly,
    just have a div in html, and inside the while loop
    write and store in the variable like
      output += "<li><a href='#' style='display:none'>" + usernames[i] + " </a> "
                         + "<table id='results' width='100%'>"
                         + "
    <tr style='border-bottom:1px silver solid;'>"
                         + "
    <td style='width:60px;height:70px;' >"
                         + "
    <img alt=\"profile pic\" src= '" + pictureuri[i] + "'  style='width:60px;height:60px;'/>"
                         + "
    </td>"
                         + "
    <td >"
                         + "
    <table style='height:100%'>"
                         + "
    <tr>"
                         + "
    <td style='padding-padding-vertical-align:top;height:10px' >"
                         + "
    <a href='" + personaluri[i] + "' classq='ms-bold ms-subtleLink' style='color: gray; font-size: 12px; font-weight: bold;'>" + tempnames[i] + "</a>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    <tr>"
                         + "
    <td  style='padding-vertical-align:top;height:50px;color:#ADAEAD;font-size:14px;' >" + deptNames[i]
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    </table>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "</table>"
                         + "</li>"
    and finaly oyutside the loop 
    $(#div).html(output);

  • HTML Table with alternative row color, Using SQL XML

    Hi,
    I want to send out an email and the email body contains a table with data. I am using SQL to create the HTML table and to populate values inside the table. Below is the code I have so far
    DECLARE
    @HTML NVARCHAR(MAX)
    IF (SELECT
    COUNT(*)
    from Employee])
    != 0
    Begin
    SET
    @HTML =
    '<html><style>
          tr:nth-of-type(even) {
          background-color:#ccc;
    </style><body><h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>'
    +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">'
    +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>'
    +
    CAST((
    Select
    td =
    col1, '',
    td
    = col2
    , '' from
    (Select ID as col1, Emp as Col2
    from
    Employee) E
    FOR XML
    PATH('tr'),
    TYPE
    AS NVARCHAR(MAX))
    + '</table><br>Thank you</br></body></html>'
    END
    select
    ISNULL(@HTML,'NoEmail')
    But I am having trouble generating alternative colors for each row (tr:nth-of-type(odd) is not working for me)
    Below is what the table should look like 
    Please help.
    Thank you for your help in advance. 

    Thank you for the response, I got the code to work.
    DECLARE @HTML NVARCHAR(MAX) ;
    IF (SELECT COUNT(*) from Employee]) != 0
    Begin
    SET @HTML = '<h1 style="font-family:Tahoma; font-size:12px;">Hi,</h1>' +
    'Below is the report'+
    '<br></br>'+
    '<table border="1" width="100%" style="border:1px solid #77bfe4;font-family:Tahoma; font-weight:normal; font-size:12px;" cellpadding="4" cellspacing="0">' +
    '<tr bgcolor="yellow" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td colspan="2"><center>Report</center></td></tr>'+
    '<tr bgcolor="Blue" style="font-family:Tahoma; font-weight:bold; font-size:12px;"><td><center>Col1</center></td><td><center>col2</center></td></tr>' +
    CAST(( SELECT CASE when (ROW_NUMBER() over (Order by Col1 DESC))%2 = 0 then '#E0E0E0' else 'white' END as "@bgcolor", '',
    td = col1, '',
    td = col2 , '' from
    (Select ID as col1, Emp as Col2
    from Employee) E
           FOR XML PATH('tr'), TYPE
    ) AS NVARCHAR(MAX)) + '</table><br>Thank you</br></body></html>'
    END
    select ISNULL(@HTML,'NoEmail')

  • How to create table with javascript and jquery in abap

    Hello masters,
    i want to create table using javascript and jquery.
    i know how to use these languages but i dont how to implement them to abap.
    regards.

    Look at the sample BSP application SBSPEXT_HTMLB
    also you can look at the below Blog..
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    <i>*Reward each useful answer</i>
    Raja T

  • Spry data set and html table with multiple images

    I use "Spry Data Set" in my Dreamweaver CS4 site. I need to make one html file (a product page) and all the product data comes from a separate html table.
    So, I have a html table that contains the product data and the images. Each row is one product.
    Column 1 contains a product name
    Column 2 contains product information
    Column 3 contains products thumbnail image 1
    Column 4 contains products thumbnail image 2
    Column 5 contains products large image 1
    Column 6 contains products large image 2
    This a simple example of the idea. In reality, there is lot more content.
    So the actual question is that:
    How can I show in the product page all the thumbnail images, but only one large picture at a time?
    And when the thumbnail is clicked the large picture changes accordingly.

    It depend entirely on what you want.
    One way would be to show a shadow box as per http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=shadowbox&search_exchange=&num =25&startnum=1&event=search&sort=0&interim_dummy_tmpfield=&Submit= or http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=lightbox&search_exchange=&sear ch_license=&search_rating=&search_pubdate=&Submit=Search&num=10&startnum=1&event=search&so rt=0&dummy_tmpfield=
    Another way is to have a master/detail area where the large image appears after clicking in the master area like this http://labs.adobe.com/technologies/spry/demos/products/index.html
    You could also use tooltips as in http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html.
    There are many more ways, but you need to make the desicion based on the layout of your page.
    Gramps

  • Find hidden column value in a dynamacally bind html table with Sharepoint list - Javascript

    I have following code. Now I want to get the hidden column value based on user selected row. I also want to highlight the entire row, not only the e.target.
    Can someone please help me.
    function getTermdetailsQuerySuccsess(sender, args) {
    var listEnumerator = Termsitems.getEnumerator();
    var datatable = document.getElementById("TermList");
    while (listEnumerator.moveNext()) {
    var oListItem = listEnumerator.get_current();
    //var firstName = listEnumerator.get_current().get_item('Title');
    //var secondName = listEnumerator.get_current().get_item('LastName');
    var termID = listEnumerator.get_current().get_item('ID');
    var startdate = listEnumerator.get_current().get_item('startdate');
    var enddate = listEnumerator.get_current().get_item('Enddate');
    var termtype = listEnumerator.get_current().get_item('TermType');
    var Hours = listEnumerator.get_current().get_item('Hours');
    var EdNone = listEnumerator.get_current().get_item('EdNoned');
    var Specialty = listEnumerator.get_current().get_item('Specialty');
    var Subspecialty = listEnumerator.get_current().get_item('Subspecialty');
    var Hospital = listEnumerator.get_current().get_item('Hospital');
    var DEMT = listEnumerator.get_current().get_item('DEMT');
    var Supervisor = listEnumerator.get_current().get_item('Supervisor');
    rowcount = rowcount + 1;
    $("#TermList").append("<tr style='border-bottom:1px silver solid' align='middle' class='gradeA'>" +
    "<td align='left' style='display:none'>" + termID + "</td>" +
    "<td align='left'>" + startdate + "</td>" +
    "<td align='left'>" + enddate + "</td>" +
    "<td align='left'>" + termtype + "</td>" +
    "<td align='left'>" + Hours + "</td>" +
    "<td align='left'>" + EdNone + "</td>" +
    "<td align='left'>" + Specialty + "</td>" +
    "<td align='left'>" + Subspecialty + "</td>" +
    "<td align='left'>" + Hospital + "</td>" +
    "<td align='left'>" + DEMT + "</td>" +
    "<td align='left'>" + Supervisor + "</td>" +
    "</tr>");
    $('#TermList').click(function (e) {
    var tr = $(e.target).parent().index() ;
    alert(tr);
    alert($(e.target).text()); // using jQuery
    // var Cells = tr.e.getElementsByTagName("td");
    $(e.target).addClass('row-highlight');
    var confirmationM = confirm("Do you want to edit this term deatils ?");
    if (confirmationM == true) {
    confirmation = "You pressed OK!";
    else {
    confirmation = "You pressed Cancel!";
    $(e.target).removeClass('row-highlight');
    $('#TermList').click(function (e) {
    var tr = $(e.target).parent().index() ;
    alert(tr);
    alert($(e.target).text()); // using jQuery
    // var Cells = tr.e.getElementsByTagName("td");
    $(e.target).addClass('row-highlight');
    var table = $("#TermList")[0];
    var cell = table.rows[tr].cells[1];
    alert(cell);
    var confirmationM = confirm("Do you want to edit this term deatils ?");
    if (confirmationM == true) {
    confirmation = "You pressed OK!";
    else {
    confirmation = "You pressed Cancel!";
    $(e.target).removeClass('row-highlight');
    d.n weerasinghe

    Hi,
    According to your post, my understanding is that you want to customize a table to display the list items.
    We can write CSS to customize the table style(background color, highlight, hover).
    The following is an example for your reference:
    Code:
    <style>
    #TermList table {
    border-collapse: collapse;
    margin-bottom: 2em;
    width: 100%;
    background: #fff;
    #TermList td, th {
    padding: 0.75em 1.5em;
    text-align: left;
    #TermList th {
    background-color: #31bc86;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    #TermList tbody tr:nth-child(2n-1) {
    background-color: #f5f5f5;
    transition: all .125s ease-in-out;
    #TermList tbody tr:hover {
    background-color: rgba(129,208,177,.3);
    #TermList .HiddenColumn {
    display:none;
    </style>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    ExecuteOrDelayUntilScriptLoaded(getAllListItems, "sp.js");
    $("#TermList tbody").click(function(e){
    //get hidden column value
    var hiddenColumn=$(e.target).parent().find(".HiddenColumn").text();
    alert(hiddenColumn);
    function getAllListItems(){
    var listName="CustomList01";
    var context = new SP.ClientContext.get_current();
    var web = context.get_web();
    var list = web.get_lists().getByTitle(listName);
    var query = SP.CamlQuery.createAllItemsQuery();
    allItems = list.getItems(query);
    context.load(allItems);
    context.executeQueryAsync(Function.createDelegate(this, this.getSuccess), Function.createDelegate(this, this.failed));
    function getSuccess() {
    var ListEnumerator = this.allItems.getEnumerator();
    while (ListEnumerator.moveNext()) {
    var currentItem = ListEnumerator.get_current();
    var itemID=currentItem.get_item("ID");
    var name=currentItem.get_item("Title");
    var email=currentItem.get_item("Email");
    $("#TermList tbody").append('<tr><td class="HiddenColumn">'+itemID+'</td><td>'+name+'</td><td>'+email+'</td></tr>');
    function failed(sender, args) {
    alert("failed. Message:" + args.get_message());
    </script>
    <table id="TermList">
    <thead>
    <tr>
    <th>Name</th>
    <th>Email</th>
    </tr>
    </thead>
    <tbody>
    </tbody>
    </table>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Help with DW pop-up window

    I am trying to get a po-up window when someone clicks the
    link on my site. I am not sure that I am doing this right. I
    created the pop-up using Behaviors but the link comes up in the
    main window as well as the pop-up. Here is the link if someone
    doesn't mind taking a look to see what I am doing wrong. Click on
    ABOUT to see the pop-up. Thanks.
    Mark

    No doubt you have the link in both the href attribute and the
    OpenBrWindow
    behavior. To fix this, change this -
    <a href="whatever.html" onClick="MM_openBrWindow(...)">
    to this -
    <a href="whatever.html" target="_blank"
    onClick="MM_openBrWindow(...);return
    false">
    Now you have a link that will work (almost correctly) whether
    your visitor
    has javascript enabled or not.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "forumnotifier" <[email protected]> wrote in
    message
    news:ee6i9s$695$[email protected]..
    >I am trying to get a po-up window when someone clicks the
    link on my site.
    >I
    > am not sure that I am doing this right. I created the
    pop-up using
    > Behaviors
    > but the link comes up in the main window as well as the
    pop-up. Here is
    > the
    > link if someone doesn't mind taking a look to see what I
    am doing wrong.
    > Click
    > on ABOUT to see the pop-up. Thanks.
    >
    > Mark
    >

Maybe you are looking for

  • How do I copy my iTunes library to a USB flash drive in a compatible MP3 format?

    I know it is as easy as clicking and dragging but my car stereo only supports only MP3 files. About half of my iTunes library is in that format (because I downloaded from an external source; Amazon, Datpiff, etc. but a lot of them that i copyed to iT

  • Lightroom 2.5 is crashing my entire OS....

    I recently rebuilt my entire pc with a quad core processor and 4GB of RAM.  I am still running windows XP 32 bit, however.  I have absolutely no issues of crashing from any other program.  I can process 50+ images in CS3 using the Topaz Adjust plug i

  • Can't get a book I purchased on iphone ibooks to show up on ibooks ipad

    I've updated software, synced both devices to itunes, turned on icloud, told ibooks to sync devices and the book i purchased on my iphone will not show up in ibooks on ipad. i've spent hours on this already. anybody? please help.

  • Error Installing iTunes 12.1.1 update

    Keep getting error "Key not valid for use in specified state" when installing 12.1.1 update. Anyone know how to resolve this? I have removed and reinstalled the current version in case some files were missing, but that did not help.

  • Hide Section where the data in section in NUll

    I have read a couple of threads but my issues still persists. I am using Business Object XI (infoview)  I want a report to show printers by the model of printer, I have created an object called Model which is based on 2 other fields (both have model