User Profile

Collapse

Profile Sidebar

Collapse
rupak
rupak
Last Activity: Dec 11 '08, 07:25 AM
Joined: Jan 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rupak
    started a topic How to use JavaScript array in xsl

    How to use JavaScript array in xsl

    I want to use a array created in javascript whoes value is drived from a xml file by DOM.

    now i want to use that array to creat the google chart by calling that array value in the imge source path.

    Code:
    var valueArray = new Array();
    var myId = document.getElementById("GraphThisTable");
    var rows = myId.getElementsByTagName("tr");
    for(i = 1; i != rows.length; i++)
    {
    var cols =
    ...
    See more | Go to post
    Last edited by acoder; Dec 11 '08, 10:27 AM. Reason: changed quote to code tags

  • rupak
    started a topic Naming Array dynamically from an Array

    Naming Array dynamically from an Array

    I want to creat new list of an arrays whoes name are defined from an arry it self. Thus generating arrays dynamically from an array.

    Ex:

    Code:
    var myarray=new Array("DefaultArray1_1","DefaultArray1_2","DefaultArray2_1","DefaultArray2_2");
    for (i=0; i < myarray.length; i++)
    {
    myarray[i] = new Array();
    myarray[i]= ["1","2","3","4"];
    ...
    See more | Go to post

  • rupak
    started a topic Background image with CSS on Hover effect

    Background image with CSS on Hover effect

    I have an mouseover effect with css on hover, which change the image on hover through Css.

    It works with IE fine but have problem with Mozilla, as the background image not coming full on hover. If i add padding-top:10px; in Css it comes fine with Mozilla but IE padding is to much.

    Can you help me with the same
    Code:
    a
    {
    background-image: none;
    padding: 10 0 0 0;
    height:24px;
    ...
    See more | Go to post

  • rupak
    replied to How to handle Missing Child Element
    in XML
    You have helped me with removing the last line, thanks for the help.

    Now my requirement has changed bit further.

    Presently my O/p is as below:

    first floor OPEN
    second floor CLOSE
    third floor OPEN
    fourth floor not found

    Now I want to show O/p:

    first floor OPEN

    with
    Prev. & Next Button
    On click of them will move to ...
    See more | Go to post

    Leave a comment:


  • rupak
    started a topic Using XML DOM output in HTML
    in XML

    Using XML DOM output in HTML

    I am using the xml file as given below

    Code:
    <?xml version="1.0"?>
    
    <propertyfolio>
      <property_group description="abc">
        <property ref="1" name="One">
                <unit id="2147365895" />
          <units>
            <unit property_ref="1" ref="1" description="description of One"
    ...
    See more | Go to post

  • rupak
    replied to Javascript for different Browser
    Code:
    <property ref="1">
    <units>
            <unit property_ref="1" ref="1" description="description" search_name="Tower House" address_line_1="TEMPORARY ID  Unit 1    -   Converted li" building_name="Tower House" road_number="25-32" road_name_1="Bloomsbury Street" road_name_2="" town="LONDON" county="" postcode="WC1B
    ...
    See more | Go to post

    Leave a comment:


  • rupak
    replied to Javascript for different Browser
    I have gone to the link you provided, i tried it but it did't work out. It is due to DOM coding in mozilla....
    See more | Go to post

    Leave a comment:


  • rupak
    replied to Javascript for different Browser
    Actuall it is DOM code which is not working, so can you give the code for writing the DOM in mozilla.
    See more | Go to post

    Leave a comment:


  • rupak
    replied to Javascript for different Browser
    The code i am putting is in DIV and when i wirte any thing in div it work in morzilla but text in document.write does not work in mozilla thus the div text is not diplayed in morzilla but visible in IE

    Code:
    <div id='div1' style="display:none;">
    <form name="tcol">
    <script type="text/javascript">
    xmlDoc=loadXMLDoc("PMA_Portfolio.xml");
    var x=xmlDoc.getElementsByTagName("units/unit");
    ...
    See more | Go to post

    Leave a comment:


  • rupak
    started a topic Javascript for different Browser

    Javascript for different Browser

    Hi!

    I have been using javascript in HTML Page to write some text in a div, by using document.write( ""); which work perfectly in IE Browser, but not in mozilla.

    Can you please tell me what code should i use so that work in all the Browser.
    See more | Go to post

  • rupak
    replied to Checkboxes from an array
    Thanks it has worked out.
    See more | Go to post

    Leave a comment:


  • rupak
    replied to Checkboxes from an array
    Actually there are lots of checkboxes which are default checked and then have two buttons
    SAVE and CANCEL

    Once the user changed the present condition of the checkboxes it need to be stored, thus on SAVE we store the modified condition in an array.

    Else if user modified the present condition wrongly and then want to keep the previous one he need to CANCEL it. And then do the correct modification and SAVE them....
    See more | Go to post

    Leave a comment:


  • rupak
    replied to Checkboxes from an array
    Actually i want to store the checkboxes selected on Save button, and on modification of cehckxboxes want to Cancle so the previous set will be checked again, means previous condition will be retrived.

    Code:
    <script language="javascript">
    var ids = [];
    var preids = [];
    var PreviousItems= new Array();
    function cancel()
    {
    for (var i=0; i<arry.length; i++) 
    document.tcol.g
    ...
    See more | Go to post

    Leave a comment:


  • rupak
    started a topic Checkboxes from an array

    Checkboxes from an array

    i want to chech thoes chekboxes which are sored in an array,

    i.e. there is an array PreviousItems[] = [col1,col2,,col4 ,,,col7,,,,col1 1,col12,,]

    want to checked thoes checkboxes in the form whoes id are stored in array PreviousItems.

    i.e.
    [HTML]<input type='checkbox' name='coffee' id='col1' value='Unit' checked />
    <input type='checkbox' name='coffee' id='col2' value='Unit' checked...
    See more | Go to post
    Last edited by acoder; Feb 22 '08, 09:06 AM. Reason: Added code tags

  • Yes you got the problem, the code on Edit is

    [CODE=javascript]<script type="text/javascript">
    function toggleview(elem ent1)
    {
    element1 = document.getEle mentById(elemen t1);
    if (element1.style .display == 'block' || element1.style. display == '')
    element1.style. display = 'none';
    else
    element1.style. display = 'block';
    }
    </script>[/CODE]
    See more | Go to post
    Last edited by acoder; Feb 13 '08, 12:25 PM. Reason: Added code tags

    Leave a comment:


  • this does not solve my problem,

    as i had an Edit Button onclick it show and hide a div, which has all the checkboxes with submit button.

    With tabuler columns.

    Once we select the checkboxes Click on Submit Button then store all the checked checkboxes and hide the div

    then the stored checkboxes show the respective column in ntable.

    Again on Click Edit it should show all the...
    See more | Go to post
    Last edited by acoder; Feb 12 '08, 07:27 PM. Reason: Added code tags

    Leave a comment:


  • It is already available at

    http://www.fiendish.demon.co.uk/html...tablecols.html...
    See more | Go to post
    Last edited by acoder; Feb 12 '08, 10:50 AM.

    Leave a comment:


  • it should be done with Javascript.
    See more | Go to post

    Leave a comment:


  • Yes need to refresh the page, thus only current set of the checkboxs will be stored on Save Button Clicked. Thus showing thoes colums only
    See more | Go to post

    Leave a comment:


  • How can i proceed with the code for the same with the modified id for table cell ie. tcol1, tcol2.
    [HTML]<form>
    <input type='checkbox' name='coffee' id='col1' value='Address'/>
    <input type='checkbox' name='coffee' id='col2' value='Name'/>
    <input type='checkbox' name='coffee' id='col3' value='ID'/>
    <input type='checkbox' name='coffee' id='col4' value='UserName '/>
    <input type='checkbox'...
    See more | Go to post
    Last edited by acoder; Feb 12 '08, 08:46 AM. Reason: Added code tags

    Leave a comment:

No activity results to display
Show More
Working...