dialog: setting width...

dialog: setting width...

FYI -
I'm getting some height and width values for a dialog via some div attributes.  

eg:  myWidth = $('#mydiv').attr('targetwidth');

The dialog code can handle the new height fine however when setting the width I get:

"Error in parsing value for 'width'. Declaration dropped."

This can be fixed by changing the width to an integer before passing it to dialog as in:

myWidth = parseInt( $('#mydiv').attr('targetwidth'));



Thanks,
ed