Ticket #6332 (closed bug: invalid)
Error jQuery wth function eval()
| Reported by: | redstarsoft | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | unfiled | Version: | 1.4.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
<div class='windows'>
<div style="width:400px;" class="draggable ui-widget-content"> <p class="ui-widget-header">Primeira janela</p> <p class="ui-widget-content" id="r1">conteudo</p> </div> <div style="width:400px;" class="draggable ui-widget-content"> <p class="ui-widget-header">Segunda janela</p> <p class="ui-widget-content" id="r2">conteudo</p> </div> <div style="width:400px;" class="draggable ui-widget-content"> <p class="ui-widget-header">Terceira janela</p> <p class="ui-widget-content" id="r3">conteudo</p> </div>
</div>
3 div now my script.
$().ready(function(){
for(w=0;w<=$('.windows div').length;w++){
eval('$(".windows div:eq('+(w)+')").resizable({alsoResize:"#r'+(w+1)+'",minHeight:150,minWidth:200,maxHeight:500,maxWidth:920});');
}
});
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Not a jQuery core bug.