scriptaculous is a UI framework built on top of prototype, you can find
information about scriptaculous at http://script.aculo.us/. But here in this
context, I think scriptaculous is not relevant. prototype is enough for this
statement to function correctly:
$('rating').update('Thanks for rating this quiz')
On Sun, Mar 21, 2010 at 5:57 AM, Zahid <[email protected]> wrote:
> thenks for u answers..
>
> @scott: ya rating is the id of the div which i want to populate.
>
>
> I am using prototype.js .....how can i know whether iam using
> scriptaculous or not ? is it written anywhere ?
>
> On Mar 19, 2:47 am, Scott <[email protected]> wrote:
> > is (rating) being set somewhere or is that the id of the element? if
> > it is the id then you will need to put single quotes around it
> > ('rating')
> >
> > If you are using prototype/scriptaculous $('rating') is a shortcut of
> > document.getElementById('rating')
> > Also another shortcut is calling update on the element instead of
> > setting the innerHTML.
> >
> > $('rating').update('Thanks for rating this quiz');
> >
> > On Mar 18, 1:26 pm,Zahid<[email protected]> wrote:
> >
> >
> >
> > > Hi I am trying to use this code to update element in html but it
> > > does'nt seems to work...please help me out:
> >
> > > function addToFavorite(quizSeq)
> > > {
> > > new Ajax.Request('/my/user-quizzes/processRequest',
> > > {
> > > method:'get',
> > > parameters: { action:'addtofavorite', quiz_seq:quizSeq},
> > > onSuccess: function(transport){
> > > var response = transport.responseText || "no response text";
> > > document.getElementById(rating).innerHTML = "Thanks for rating
> > > this quiz";
> > > },
> > > onFailure: function(){
> > > alert("Failed");
> > > }
> > > });
> >
> > > }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<prototype-scriptaculous%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.