mmn007 | 1 Apr 2012 07:50
Picon

Newbie question

Hello folks,

I am very new to dojo (one day into using it), and I was trying to do a
basic example based on the hello world example. 
I was trying to use dojo.js locally, but firebug kept on complaining that
dojo was not found. Hence I used the  and got rid of that problem. 
Now I am trying to apply the claro theme on the body (please find my html
attached), however the rendering of the button or the combobox is not
happening. They are showing up with the default look and feel for Mac OS.
I checked on Safari as well, with the same result.

I have spent a couple of hours already and I am sure I am missing something.
Can some one please help me?
I have verified that all the static urls in the file are accessible by
checking with firebug. No errors on firebug console either.

http://dojo-toolkit.33424.n3.nabble.com/file/n3874773/test.html test.html 
Regards,

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Newbie-question-tp3874773p3874773.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
(Continue reading)

Patabugen | 1 Apr 2012 09:18
Picon
Favicon

Zend_Server (or similar) providing data for DataGrid

Hey All,

I'm using Dojo 1.7 with Zend Framework 1.11.

I'd like to have a dojox.grid.DataGrid fed by PHP (eventually to be editable
and changes saved through PHP too). However I'm having a hard time finding a
good way to communicate between the two.

I'm used to using Zend_Server and jQuery's ajax() methods and though I like
the Dojo Datastores very much I can't figure out how to make the two play
nice, it seems like I have to have the data store's URL return some raw
JSON.

Does anyone have any examples/suggestions/hints that might help me sleep
this week? :)

--
Sami

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Zend-Server-or-similar-providing-data-for-DataGrid-tp3874841p3874841.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
(Continue reading)

fbcarter | 1 Apr 2012 21:30
Picon

Re: Newbie question

try //ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dijit/themes/claros.css 

etc...

Unless you have a folder setup on your local server for
/static/dojoroot/dijit/themes/claro/document.css then it will not find it. I
mention this because dojo downloads would tend to come as /dojo/dijit......

There may be a setup or mapping problem locally.

-----
Farley
Any argument is viable, until logic and reality set in.
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Newbie-question-tp3874773p3875762.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Noldus Reijnders | 2 Apr 2012 02:06
Picon
Favicon

innerHTML not updated of parent node when using dojo.create()

When I build a DOM structure using dojo.create() it doesn't update the innerHTML and outerHTML property of the parent node: the former stays empty and the latter contains only its own tags. I need the entire DOM code as a string to be able to store it on the server so this is a problem. I tried to recreate the HTML code from the object but untill now to no avail.

The dom structure is created top-down, so I start with the outer container and work my way to the inner elements. Each node is created similar to this:
parentNode = dojo.create({tagName}, null, parentNode);

after which the children are created with the parentNode as the parent node (parentNode starts as an empty element with tagName "base").

After the entire structure is created the base-tag looks as follows (removed most properties for readability):

HTMLBaseElement
  1. ...
  2. childNodesNodeList[1]
    1. 0HTMLUnknownElement
    2. length1
    3. __proto__NodeList
  3. childrenHTMLCollection[1]
  4. ...
  5. innerHTML""
  6. innerText""
  7. ...
  8. outerHTML"<base></base>"
  9. outerText""
  10. ...

The child nodes look similar.

Is there a way to get dojo.create to update the inner- and outerHTML of the parent node while creating the elements? Or is there a way to recreate the HTML code as a string from an object?

Noldus

________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
MMN | 2 Apr 2012 05:48
Picon

Re: Newbie question

Thanks a lot for the quick response. I tried this and it started working. So I cleaned up my browser cache, restarted the machine and this time my static links also started working.

Thanks again.

On Mon, Apr 2, 2012 at 1:00 AM, fbcarter <fbcarter <at> gmail.com> wrote:
try //ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dijit/themes/claros.css

etc...

Unless you have a folder setup on your local server for
/static/dojoroot/dijit/themes/claro/document.css then it will not find it. I
mention this because dojo downloads would tend to come as /dojo/dijit......

There may be a setup or mapping problem locally.

-----
Farley
Any argument is viable, until logic and reality set in.
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Newbie-question-tp3874773p3875762.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest



--
--
It’'s a fact, taller people sleep longer in bed.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
saidh | 2 Apr 2012 08:05
Picon

View port auto height

Hi,Is there any way to apply auto height to the view port(html/body)?My page
contains a number of tabs. Each tab contains multi level accordion
containers. Now scoll bar comes in each accordion panes and some inner
accordion content is not viewable. So how can i apply auto height property
to the view port according to the height of accordions.?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/View-port-auto-height-tp3876878p3876878.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

mortelee | 2 Apr 2012 09:56
Picon

No scrolling when creating ScrollableView dynamically

Hi 

I want to create a scrollableview dynamically. 

I used the following snippet 

function t2(key) { 
    var html = '<tr class="exam" data-parentrow="' + key+ '">'; 
    html += '<td></td>'; 
    html += '<td>'; 
    html += '<div data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:\'top\', splitter:false">'; 
    html += '<div id="exam_view1" dojoType="dojox.mobile.ScrollableView"
scrollDir="h" height="50px" keepScrollPos="true">'; 
    html += '<div id="examsContainer">'; 

    var size = 30; 
    for (i = 0; i < size; i++) { 
        html += '<div class="navigation_button2"></div>'; 
    } 
    html += '</div></div></div></td></tr>'; 
    return html; 
} 

css: 
#examsContainer { 
    width:100000000px; 
    height:50px; 
    list-style:none; 
} 

However the horizontal scrollbar does not work. 

When I place the snippet directly in the html file it works well. 

Can anyone help me to fix this? 

Regards 

Marco Ortelee

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/No-scrolling-when-creating-ScrollableView-dynamically-tp3877005p3877005.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Eric Durocher | 2 Apr 2012 10:17
Picon

Re: No scrolling when creating ScrollableView dynamically

Hi,

First, do you really want to use a dojox.mobile.ScrollableView? The
dojox.mobile widgets are designed specifically to build web
applications running on mobile devices. Since you are talking about
scrollbars, I would guess you are more targeting a desktop app...

Second, you do not say what you do with the html returned by your
function. The HTML must be processed by Dojo to have widgets created
and started (see dojo/parser). Another way would be to create all your
dynamic content programmatically.

    Eric

2012/3/31 mortelee <mortelee <at> live.nl>:
> Hi
>
> I'm new to dojo and I want to create a scrollableview dynamically.
>
> I used the following snippet
>
> function t2(key) {
>    var html = '<tr class="exam" data-parentrow="' + key+ '">';
>    html += '<td></td>';
>    html += '<td>';
>    html += '<div data-dojo-type="dijit.layout.ContentPane"
> data-dojo-props="region:\'top\', splitter:false">';
>    html += '<div id="exam_view1" dojoType="dojox.mobile.ScrollableView"
> scrollDir="h" height="50px" keepScrollPos="true">';
>    html += '<div id="examsContainer">';
>
>    var size = 30;
>    for (i = 0; i < size; i++) {
>        html += '<div class="navigation_button2"> imgs/ExamTile.jpg </div>';
>    }
>    html += '</div></div></div></td></tr>';
>    return html;
> }
>
> css:
> #examsContainer {
>    width:100000000px;
>    height:50px;
>    list-style:none;
> }
>
> However the horizontal scrollbar does not work.
>
> When I place the sippet directly in the html file it works well.
>
> Can anyone help me to fix this?
>
> Regards
>
> Marco Ortelee
>
> --
> View this message in context: http://dojo-toolkit.33424.n3.nabble.com/No-scrolling-when-creating-ScrollableView-dynamically-tp3873916p3873916.html
> Sent from the Dojo Toolkit mailing list archive at Nabble.com.
> ________________________________________________________
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
>
> Dojo-interest <at> mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

mortelee | 2 Apr 2012 10:35
Picon

Re: No scrolling when creating ScrollableView dynamically

Eric

Sorry for the mix-up, but I'm creating a mobile web app. I ment that the
horizontal scrolling is not working. Indeed you don't have scrollbars...
How do I process the HTML...I cannot find a good example on
http://dojotoolkit.org/reference-guide/1.7/dojo/parser.html#dojo-parser .
Otherwise I have to create the dynamic content programmatically

Marco

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/No-scrolling-when-creating-ScrollableView-dynamically-tp3873916p3877061.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Eric Durocher | 2 Apr 2012 10:56
Picon

Re: No scrolling when creating ScrollableView dynamically

There are examples at the bottom of the page:

http://dojotoolkit.org/reference-guide/1.7/dojo/parser.html#examples

Basically you can pass a toplevel node to the parse() function, this
will parse recursively everything under this node.

    Eric

2012/4/2 mortelee <mortelee <at> live.nl>:
> Eric
>
> Sorry for the mix-up, but I'm creating a mobile web app. I ment that the
> horizontal scrolling is not working. Indeed you don't have scrollbars...
> How do I process the HTML...I cannot find a good example on
> http://dojotoolkit.org/reference-guide/1.7/dojo/parser.html#dojo-parser .
> Otherwise I have to create the dynamic content programmatically
>
> Marco
>
> --
> View this message in context: http://dojo-toolkit.33424.n3.nabble.com/No-scrolling-when-creating-ScrollableView-dynamically-tp3873916p3877061.html
> Sent from the Dojo Toolkit mailing list archive at Nabble.com.
> ________________________________________________________
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
>
> Dojo-interest <at> mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-interest <at> mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


Gmane