User Profile

Collapse

Profile Sidebar

Collapse
hariomt
hariomt
Last Activity: Aug 10 '09, 02:44 PM
Joined: Jan 22 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • my mistake in writing the sample code here...
    the function is

    function removeProducts( ){
    alert(qArray);
    }
    See more | Go to post

    Leave a comment:


  • hariomt
    started a topic value not being stored in the array variable

    value not being stored in the array variable

    Hi,
    I am using a global variable qArray in js file.I have include this file in a jsp file.
    Now I am using a list<String> to populate the qArray.
    On click of a button on the jsp page I want to access the qArray but i am not able to do so.
    below is the code snippet:

    Code:
    // in abc.js
    qArray=new Array();
    function removeProducts(){
        alert(quoteProductsArray[0]);
    }
    ...
    See more | Go to post

  • hariomt
    replied to how to dynamically delete a row
    I am sorry, I did not get you.
    What do you mean by [code] tags?
    could you please explain.
    See more | Go to post
    Last edited by Dormilich; Jan 28 '09, 01:27 PM. Reason: explanation sent by PM

    Leave a comment:


  • hariomt
    replied to how to dynamically delete a row
    Code:
    function deleteSelectedRow()
     {
          var tbl= document.getElementById("tblAttrValues")
          tbl.deleteRow(this.parentNode.parentNode.rowIndex); 
    }
    See more | Go to post
    Last edited by acoder; Jan 28 '09, 11:15 AM. Reason: Added [code] tags

    Leave a comment:


  • hariomt
    replied to how to dynamically delete a row
    I have got the solution.
    See more | Go to post

    Leave a comment:


  • hariomt
    started a topic how to dynamically delete a row

    how to dynamically delete a row

    Hi,
    i am dyanamically creating rows.In which I have two columns. First column contains text box while second one contains a button. On click of this button I want to delete that row.
    The problem is my code I always deletes the first row.
    below is the code snipet:
    Code:
    function apendValues()
     {
         listAttrValues=true ;
      var tbl = document.getElementById('tblAttrValues');
      var lastRow = tbl.rows.length;
    ...
    See more | Go to post
    Last edited by pbmods; Jan 28 '09, 04:47 AM. Reason: Added CODE tags.

  • hariomt
    started a topic missing ) after argument list

    missing ) after argument list

    Hi,
    i have to create table's rows dynamically.
    I am using bellow code snipet...

    Code:
    function copySelectedAttr()
        {
            
              var attrValue= document.getElementById('fromEntityAttrBox').options[document.getElementById('fromEntityAttrBox').selectedIndex].text;
    		var attrtype=document.getElementById('fromEntityAttrBox').value;
    	  var newRow = document.getElementById("tlbEntityAttr").insertRow(rowIndex);
    ...
    See more | Go to post
    Last edited by gits; Jan 25 '09, 11:02 AM. Reason: added code tags

  • hariomt
    replied to inner div's space is being shown
    i have found the cause of issue.
    Actually on second div I have two input type buttons. The value of the buttons is taking more space than of div.
    is thre any way of displaying button's value in two lines?
    See more | Go to post

    Leave a comment:


  • hariomt
    replied to inner div's space is being shown
    i am copying the sample code here
    Code:
    <div id="manageCEAttribute" class="manageCE"style="display:none;top: -610px;">
    <table>some code goes here
     <input   type="button" name="deleteCE" onclick"delete">
         </table>
     <div id="deleteCEAttribute" class="deleteCE" style="display:none;">
    some code
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 22 '09, 12:28 PM. Reason: added [code] tags

    Leave a comment:


  • hariomt
    started a topic inner div's space is being shown

    inner div's space is being shown

    Hi,
    I am using two divs like.
    Code:
    <div id="d1">
    <button b1>
    <button b2>
    <div id="d2">
    <div>
    <div>
    when I click on button b1,i have to display div2 parallel to div d1. I have written style for that. Its working fine for that.
    The problem is div d1 too is showing empty space of size div d2.
    please help
    See more | Go to post
    Last edited by Dormilich; Jan 22 '09, 12:12 PM. Reason: added [code] tags
No activity results to display
Show More
Working...