yes and no! Yes it calls the .js file from the browser and no your question is not stupid at all! ;-) Any further ideas?
regards
Andrew
On 11/07/06,
Jeroen Reijn <[EMAIL PROTECTED]> wrote:
Andrew,
another stupid questions, but what happens if you call the .js file from the browser. Does it return the .js file?
Reijn
Andrew Madu wrote:
> Hi Jeroen,
> yes the button attribute exists, I forgot to include it in the example I
> gave:
>
> <button dojoType="Button" widgetId="helloButton">Hello World!</button>
>
> On clicking the button, nothing happens! Any ideas anyone?
>
>
> regards
>
> Andrew
>
>
>
> On 11/07/06, *Jeroen Reijn* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] >>
> wrote:
>
> Hi Andrew,
>
> I'm not really into dojo yet and I do not really know if this is the
> right list to ask your questions,
> but from a logical point of view.
>
> I guess you will need a button within your page with the id of
> 'helloButton'?
> Like:
>
> <body>
> <input type="button" id="helloButton"/>
> </body>
>
> Regards,
>
> Reijn
>
>
> Andrew Madu wrote:
> > Hi,
> > just trying out dojo for the first time and am having problems
> with the
> > following script. Can anyone tell me why this doesn'r activate
> the alert
> > when clicking the button?:
> >
> > dojo.js:
> >
> > dojo.require("dojo.event.*");
> > dojo.require ("dojo.widget.*");
> > dojo.require("dojo.widget.Button");
> >
> > function helloPressed()
> > {
> > alert('You pressed the button');
> > }
> >
> > function init()
> > {
> > var helloButton = dojo.widget.byId('helloButton');
> > dojo.event.connect(helloButton, 'onClick', 'helloPressed')
> > }
> >
> > dojo.addOnLoad(init);
> >
> >
> > <html>
> > <head>
> > <title>Dojo: Hello World!</title>
> >
> > <!-- SECTION 1 -->
> > <script type="text/_javascript_" src="">> > dojo.js"></script>
> > </head>
> >
> > <body>
> > </body>
> > </html>
> >
> >
> > regards
> >
> > Andrew
>
> --
> Met vriendelijke groet,
> Kind regards,
>
> Jeroen Reijn
>
> Hippo
>
> Oosteinde 11
> 1017WT Amsterdam
> The Netherlands
> Tel +31 (0)20 5224466
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] >
> For additional commands, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] >
>
>
--
Met vriendelijke groet,
Kind regards,
Jeroen Reijn
Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel +31 (0)20 5224466
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
