www.webdeveloper.com
Results 1 to 2 of 2

Thread: how to pass a hash table from perl to javascript function?

  1. #1
    Join Date
    May 2012
    Posts
    2

    how to pass a hash table from perl to javascript function?

    hello all, plaese tell me how can i pass a hash table to the javascript from a perl function as an arguments?

    i'm trying as below...in perl function hash table sent as an argument, in javascript it is receiving as below....but its not working,,,,
    Code:
     HashRowUnit=argv[1];  
      
        alert('size of hash table ' +HashRowUnit.length); 
      
      
    for (var k in HashRowUnit) {   
    if (HashRowUnit.hasOwnProperty(k)) {  
    alert('key is: ' + k + ', value is: ' + HashRowUnit[k]);} }

  2. #2
    Join Date
    May 2012
    Posts
    2
    At least tell me how can i sent array to javascript from per onclick event..???

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles