Bug Tracker

Modify

Ticket #6332 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Not a jQuery core bug.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.