I added safari-specific code to handle this.  I now do (something
like) this to create the dynamic SVG content.

function createSvgDynamic() {
  var context = svgContext({
  svgObjId : 'svgObj',
  elementIds : [
    'background',
    'testGroup'
  ],
  callbackFn : function(c) { // c is the initialized svg context
    drawDynamicSvgContent(c);
  }
}

$().ready(function() {
  $('#accordion').accordion({
    autoHeight: false
    change: function(event, ui) {
      if ($.browser.safari && 'svgHeader' == ui.newHeader.attr('id'))
{ // needed because Safari reloads the SVG!
        createSvgDynamic();
      }
    }
  });
  createSvgDynamic(); // create first time - may be able to check
browser and pane order to decide whether or not this is needed
}

Glenn


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to