Hello Experts,
When i try to use json converstion for Array it works perfectly in
local machine,
But when i deployed to server it says this error message which i
detected on firebug
I've two datas on DB
Model - Codes
Codes
1 - First
2 - Second
3 - Third
Here I have a code like this
Controller
name = "%#{params[:id]}%"
@codes = Code.find(:all, :condition => ["name like ?", name])
on View
<input type="text" id="input_id">
<a href="javascript:void(0);"
onclick="filter_this(document.getElementById('input_id'), <
[EMAIL PROTECTED]>);">Click Me</a>
and javascript code
function filter_this(myInput, codes) {
for(var i=0;i<codes.length;i++) {
var myid = codes[i].attributes;
var filter_divs = 'div' + myid.id;
document.getElementById(filter_divs);
}
}
This code works perfectly in local but in server it says myid has no
properties.
NOTE: I've included all necessary javascript codes.
Thanks in advance
Bala
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---