0

I have declared a div in abc.html as,

 <div id="ICD" dojoType="dijit/layout/ContentPane" closable="false"
                                style="background-color: #F4F4F4;font-size: 11px; overflow:overlay"
                                onDblClick="dbClickGraphical" align="center">

and i'm using href to load another HTML into this div

dijit.byId('ICD').set('href', "zzz.html");

But This,zzz.html loads after second click/time

  • Can you create a JSFiddle with the problem demonstrated? (often times you'll find the problem when trying to make one). – leigero Sep 17 '14 at 06:37
  • So basically you want page1.html to load in
    and then load page2.html to said
    , but it is taking 2 click to load?
    – Katler Sep 17 '14 at 06:44
  • Look at [this](http://stackoverflow.com/questions/17636528/how-do-i-load-an-html-page-in-a-div-using-javascript) and see if you can change your code to something like that. – Katler Sep 17 '14 at 06:46
  • yes.. it s taking 2 click to load - skibbi_bizzle – user3924682 Sep 17 '14 at 06:57
  • 1
    well you have it set to (onDblClick="dbClickGraphical") – Katler Sep 17 '14 at 07:11
  • as commented by @skibbi_bizzle you need to use `onClick` if you want to fire on a single click instead of `onDblClick` which will fire on `double clicks`. – frank Sep 17 '14 at 08:24

0 Answers0