Changes between Initial Version and Version 1 of Ticket #14668, comment 6


Ignore:
Timestamp:
Feb 25, 2012, 1:50:38 PM (9 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14668, comment 6

    initial v1  
    2121
    2222
    23 OK, sounds like you are asking for an enhancement that dojox.layout.!ContentPane or dijit.layout.!ContentPane be able to handle URL's with anchors.    If so you could open a ticket to that effect, but not sure if we are interested in implementing that or not.
     23OK, sounds like you are asking for an enhancement that dojox.layout.!ContentPane or dijit.layout.!ContentPane be able to handle URL's with hashes.    If so you could open a ticket to that effect, but not sure if we are interested in implementing that or not.
    2424
    2525However you could do it yourself, something like this, although I haven't tested it:
     
    2828dijit.byId("tab_normen").set("href", href.replace(/#.*/, "")).then(function(){
    2929   if(href.test(/#/)){
    30        var target = href.replace(/.*#/);
    31        dojo.scrollIntoView(dojo.query("a[name="+target+"]",
     30       var hash = href.replace(/.*#/);
     31       dojo.scrollIntoView(dojo.query("a[name="+hash+"]",
    3232             dijit.byId("tab_normen").containerNode)[0]);
    3333   }