hawk gao | 20 Aug 10:00

How to add a dom node into html pag by Dojo?

Hi, all,
I'm new in Dojo. I only found dojo.byId() to get node, but didn't find any way to add node.
Thanks
Hawk
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Jette Derriche | 19 Aug 14:43

Sorting by name in a dijit.Tree?

Hi

I would like to know if there is a method for sorting children by name,
in a dijit.Tree. 

I have figured out how to programmatically add a new child. But I would
also like to sort the children after adding the new child, so that new
'child d' appears after 'child c'.

This is my json data:

{
  identifier : 'name',
  label : 'name',
  items : [
    {
      name: 'mother',
      children: [
        {name : 'child a'},
        {name : 'child b'},
        {name : 'child c'},
        {name : 'child e'},
        {name : 'child f'}
      ]
    }
  ]
}

This is how I add a new child... 

function addItem(itemName) {
   var newItem = dataStore.newItem({ name : itemName });
   var childParent;
   dataStore.fetchItemByIdentity({
     identity : 'mother',
       onItem : function (item,request) { childParent = item; }
   });
   var allChildren = dataStore.getValues(childParent,"children");
   dataStore.setValues(childParent,"children",
                       allChildren.concat(newItem));
}

Kind regards,
Jette

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Chen Kankan | 19 Aug 05:08

Puzzle in InlineEditBox

Dear Sir or Madam:

     Thank you for your gaze, now I have some confusion in "dijit.InlineEditBox". My code as bellow:

 

<span dojoType="dijit.InlineEditBox" id="myInlineEdit" onChange="myHandler(this.id,arguments[0])" renderAsHtml="false">

  <input dojoType="dijit.form.TextBox" id="textValue" value="Edit me - I trigger the onChange callback"></span>

 

The function behave normal, a TextBox widget containing the text "Edit me - I trigger the onChange callback" appears when I click the text, but the only unsatisfactorily point is that the appeared text is not the normally text, the content as follow:

<INPUT id=textValue value="Edit me - I trigger the onChange callback" dojoType="dijit.form.TextBox" _zipIdx="1">

 

     I have no idea why this situation happened, and whether my fault or the bug.

     Ultimately, I am expecting for your help. Thank you! (PS: I am so sorry if my bad English puzzle you!)

 

 

 

 

Best Regards

chen kankan

 

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Arend van der Veen | 18 Aug 16:28

Grid Widget

Hi,

On my grid widgets, the scroll bars are displayed even if scrolling is
not required.   I was wondering what is involved in hiding scroll bars
if they are not needed.  Is there a style that controls this?

Thanks in advance,
Arend
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Aisha Zafar | 18 Aug 05:56

Please help me regarding password validator

hi friends,
I am facing some problem regarding password validator of dojo. my problem is that i can access all of the form fields of signup form on the php page(backend file to submit the fields in database) via post method except password field. Keep in mind that i cant access password field via any method post/get. my html code is
<form name="signup" id="signup" dojoType="dijit.form.Form" onsubmit="javascript: return check_form_validation(this.id);" method="get" action="try2.php">
<div dojoType="dojox.form.PasswordValidator" required="true" jsId="valid6" name="password" >
   
        <label for="pw d" class="firstLabel">Password *</label><input type="password" id="pwd" name="pwd" pwType="new" onchange="alert('Hello');"/><br /><br />
        <label for="rtpwd" class="firstLabel">Retype Password *</label><input type="password" id="pwd2" pwType="verify" />
        </div><br /><button dojoType="dijit.form.Button" id="frmsubmit" type="submit">Create My Account</button><button dojoType="dijit.form.Button" id="frmreset" type="reset">Reset</button></form>
and my php code is

<?php
echo "User Id = ".$_GET['uid'];
echo "First Name = ".$_GET['fname'];
echo "Last Name = ".$_GET['lname'];
echo "Date Of Birth = ".$_GET['dob'];
echo "Gender = ".$_GET['gender'];
echo "Country = ".$_GET['countries'];
echo "State = ".$_GET['states'];
echo "City = ".$_GET['city'];
ech o "Zip = ".$_GET['zip'];
echo "Address = ".$_GET['address'];
echo "Question = ".$_GET['squestion'];
echo "Answer = ".$_GET['sanswer'];
echo "Password = ".$_GET['password'];
?>
Please help me to access password, i will be really thankful to you.
Thanks in advance
Aisha

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Maulin Shah | 17 Aug 19:04

grid event

i am working with latest svn of the grid. is there a way to know when  
it is done rendering? i don't see an event, or even an obvious method  
i could attach to. perhaps "showMessage", but that seems hackish. I  
want to create the grid offscreen, and then animate its entrance onto  
the screen once it is done loading/rendering. any ideas?
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Deno Vichas | 15 Aug 23:37

error message

Can somebody clue me into what this error is about? 

 

[Exception... "Cannot convert WrappedNative to function" nsresult: "0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)" location: "JS frame :: http://localhost:8080/ads/js/dojo-1.1.1/dojo/dojo.js.uncompressed.js :: anonymous :: line 486" data: no] message=Cannot convert WrappedNative to function

 

Here’s the code that’s generating it.

 

var towData2 = {

            identifier:'towId',

            items:[

                  { towId:'1', towWarning:'', towError:'' }

            ]

      };

 

var towStore = new dojo.data.ItemFileReadStore({data: towData2});

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
Maulin Shah | 15 Aug 20:54

Grid label attribute

is there a way with DataGrid to display an items "label" (i.e.  
getLabel), other than creating a cusom "get" for the column?
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Arend van der Veen | 15 Aug 20:25

Grid Columns

Hi All,

I am new to dojo.  I am using dojox.Grid and was wondering if it is
possible to hide column headers?

Thanks in advance,
Arend
_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Maulin Shah | 15 Aug 17:51

PNG transparency in IE6

It seems that the standard dojo themes don't use PNG transparency much  
because of IE6 lack of support for them. I've just come across this  
issue myself, and it turns out there is a pretty cool open source fix  
out there, and I've dojo-ized it, so it is pretty easy to use PNG  
transparency in any browser with a simple  
dojo.require("myNameSpace.util.png"). Just thought I'd post it here if  
there is any interest.

http://blog.medryx.org/2008/08/15/transparent-pngs-on-ie-with-dojo/

-maulin

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest

Mike Howarth | 15 Aug 17:38

Menu Flicker Issues


I was wondering if anyone can help me. I'm trying to integrate some html
designs in a Websphere Commerce implementation which uses Dojo (0.4.1) as
the default JS library.

When integrating the designs, I've noticed that the drop down navigation on
the site flickers very noticably in IE. After trawling through the css and
then back tracking through some of the includes the root of the problem
appears to be the Dojo framework's inclusion on the page. Soon as its
commented out everything appears to work fine.

I've searched the list but haven't really come across anything concrete to
suggest what it could be.

Is this a known issue with Dojo? Has anyone experienced this previous. Is
anyone able to point me in the right direction to debug effectively?

Happy to post up the html to Dpaste or similar if anyone could spare me a
few minutes. Any help would be greatly appreciated.

--

-- 
View this message in context: http://www.nabble.com/Menu-Flicker-Issues-tp18999219p18999219.html
Sent from the Dojo mailing list archive at Nabble.com.

_______________________________________________
FAQ: http://dojotoolkit.org/support/faq
Book: http://dojotoolkit.org/docs/book
Forums: http://dojotoolkit.org/forum
Dojo-interest <at> dojotoolkit.org
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest


Gmane