[jQuery] Plugin Best practices?

2009-05-21 Thread Donkeybob

I use three or four jquery plugins for a site. What's the best
practice in loading all of these files and how much does it slow down
an app? Do you reference them from another file to keep the page code
clean? Just a couple of questions to find out about . . . .

Thanks,
Rich


[jQuery] Re: how to include JQuery from a page loaded by AJAX?

2009-02-11 Thread Donkeybob

and also . . .do you have the jquery.js file linked in the new page?

On Feb 11, 1:22 pm, Donkeybob rip...@gmail.com wrote:
 when you say loaded by AJAX . . . .are you using another javascript
 framework to call this other page? if you have any other functions
 could something be conflicting with the jquery? . . .could you post
 your code that calls the page?

 On Feb 11, 12:04 pm, Davis ywk...@gmail.com wrote:

  Hello,

  I got a simple page ( html ) loaded by AJAX, but it seems JQuery
  inside that page didn't work, appreciate if anyone can give me some
  hints how to implement it.

  html content, just simply corners a DIV guestbook

  script type=text/javascript
  /* ![CDATA[ */
  {literal}

          jQuery(document).ready(function(){
          (function($){
                  $('#guestbook').corners({radio:5, outColor:'red'});
          })(jQuery);
          });

  {/literal}
  /* ]] */
  /script

  div id=guestbookGuestbook/div

  PS: I am using 1.2.6 JQuery

  many thanks/Davis.


[jQuery] Re: how to include JQuery from a page loaded by AJAX?

2009-02-11 Thread Donkeybob

when you say loaded by AJAX . . . .are you using another javascript
framework to call this other page? if you have any other functions
could something be conflicting with the jquery? . . .could you post
your code that calls the page?

On Feb 11, 12:04 pm, Davis ywk...@gmail.com wrote:
 Hello,

 I got a simple page ( html ) loaded by AJAX, but it seems JQuery
 inside that page didn't work, appreciate if anyone can give me some
 hints how to implement it.

 html content, just simply corners a DIV guestbook

 script type=text/javascript
 /* ![CDATA[ */
 {literal}

         jQuery(document).ready(function(){
         (function($){
                 $('#guestbook').corners({radio:5, outColor:'red'});
         })(jQuery);
         });

 {/literal}
 /* ]] */
 /script

 div id=guestbookGuestbook/div

 PS: I am using 1.2.6 JQuery

 many thanks/Davis.


[jQuery] Re: wanna implement some of facebook feature

2008-10-09 Thread Donkeybob

just by using the ole' google, i found these links:

http://www.appelsiini.net/projects/jeditable

http://davehauenstein.com/code/jquery-edit-in-place/

I haven't tried these but they should help a little.



On Oct 9, 9:49 am, Davis [EMAIL PROTECTED] wrote:
 hi,

 just would like to know if any jquery UI that can implement a facebook
 feature.

 as a facebook user, there is a text input area shown what are you
 doing right now? near top of the page for every logined user. so when
 mouse click inside that text, it will let you input text with a Post
 button as well and once if mouse click other area, it will change back
 to previous status.

 i would like to know any jquery UI can implement this kind of feature?
 it is very useful for user to input when they click a input area and
 restore back once mouse clicked other place ( without input any text
 inside the text area ).

 i hope someone can understand what is my question.
 many thanks in advance for any input.

 thanks/Davis.


[jQuery] Re: dealing with multiple forms having same id

2008-10-01 Thread Donkeybob
XHTML standards based development states that the id attribute must be
unique. So if you want you pages to have valid markup, use the class
attribute.

from w3c:
-
id = ID
The id attribute assigns an identifier to an element. The value of
this attribute must be unique within a document.

http://www.w3.org/TR/xhtml2/mod-core.html#adef_core_id
-



On Sep 29, 3:03 pm, Amardeep [EMAIL PROTECTED] wrote:
 HI Donkeybob

 can u please tell me what do u mean by invalid page ? r u saying it wont be
 a valid HTML page ??



 On Mon, Sep 29, 2008 at 10:26 PM, Donkeybob [EMAIL PROTECTED] wrote:
  as far as I know . . multiple id's is not allowed and would make your
  page invalid.

  On Sep 29, 11:40 am, ♫ cheskonov [EMAIL PROTECTED] wrote:
   Hi,
   i am a new customer in jQuery so the following may sound stupid .. the
   problem i am facing is as bellow:
   I am working in a site where i am dealing with multiple forms having
   same id and every this .. all the forms contain some radio buttons (no
   of buttons may vary) and one submit button .. now how do i find out
   which submit button is clicked . all the submit buttons are also
   having the same id anb everything . any help please :

   the html for my page is as follows :

   div class=boxcontent style=padding: 5px; height: 495px;
   id=div_poll
     form action=/effinfunny_beta/node/2015 method=post id=poll-
   view-voting
       div
         input name=nid id=edit-nid value=2015 type=hidden
         input name=current_nid id=edit-current-nid value=
   type=hidden
         table border=0 cellpadding=0 cellspacing=3 width=100%
           tbody
             tr
               td colspan=2h2 class=yellow_txtWhat's the best
   version of 'Zelda?'/h2/td
             /tr
             tr
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=0 class=form-radio
   type=radio
                   Legend of Zelda/label
                 /div
                 /span/td
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=1 class=form-radio
   type=radio
                   Majora's Mask/label
                 /div
                 /span/td
             /tr
             tr
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=2 class=form-radio
   type=radio
                   Twilight Princess/label
                 /div
                 /span/td
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=3 class=form-radio
   type=radio
                   The Wind Waker/label
                 /div
                 /span/td
             /tr
             tr
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=4 class=form-radio
   type=radio
                   Ocarina of Time/label
                 /div
                 /span/td
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form-item
                   label class=option
                   input name=choice value=5 class=form-radio
   type=radio
                   The Minish Cap/label
                 /div
                 /span/td
             /tr
             tr/tr
             tr
               tdnbsp;/td
               tdnbsp;/td
             /tr
             tr
               tdinput name=op id=edit-vote value=Vote
   class=form-submit legend_polls onClick=$('#edit-current-
   nid').val('2015');return false; type=submit
               /td
               tddiv class=form-radios/div
                 input name=form_token id=edit-poll-view-voting-form-
   token value=23b6d81824cd64e8c1e18c75b760f24c type=hidden
                 input name=form_id id=edit-poll-view-voting
   value=poll_view_voting type=hidden
               /td
             /tr
           /tbody
         /table
       /div
     /form
     form action=/effinfunny_beta/node/2017 method=post id=poll-
   view-voting
       div
         input name=nid id=edit-nid value=2017 type=hidden
         input name=current_nid id=edit-current-nid value=
   type=hidden
         table border=0 cellpadding=0 cellspacing=3 width=100%
           tbody
             tr
               td colspan=2h2 class=yellow_txtBest search engine/
   h2/td
             /tr
             tr
               tdspan class=fanart style=margin-bottom: 5em;
                 div class=form

[jQuery] Re: dealing with multiple forms having same id

2008-09-29 Thread Donkeybob
as far as I know . . multiple id's is not allowed and would make your
page invalid.

On Sep 29, 11:40 am, ♫ cheskonov [EMAIL PROTECTED] wrote:
 Hi,
 i am a new customer in jQuery so the following may sound stupid .. the
 problem i am facing is as bellow:
 I am working in a site where i am dealing with multiple forms having
 same id and every this .. all the forms contain some radio buttons (no
 of buttons may vary) and one submit button .. now how do i find out
 which submit button is clicked . all the submit buttons are also
 having the same id anb everything . any help please :

 the html for my page is as follows :

 div class=boxcontent style=padding: 5px; height: 495px;
 id=div_poll
   form action=/effinfunny_beta/node/2015 method=post id=poll-
 view-voting
     div
       input name=nid id=edit-nid value=2015 type=hidden
       input name=current_nid id=edit-current-nid value=
 type=hidden
       table border=0 cellpadding=0 cellspacing=3 width=100%
         tbody
           tr
             td colspan=2h2 class=yellow_txtWhat's the best
 version of 'Zelda?'/h2/td
           /tr
           tr
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=0 class=form-radio
 type=radio
                 Legend of Zelda/label
               /div
               /span/td
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=1 class=form-radio
 type=radio
                 Majora's Mask/label
               /div
               /span/td
           /tr
           tr
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=2 class=form-radio
 type=radio
                 Twilight Princess/label
               /div
               /span/td
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=3 class=form-radio
 type=radio
                 The Wind Waker/label
               /div
               /span/td
           /tr
           tr
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=4 class=form-radio
 type=radio
                 Ocarina of Time/label
               /div
               /span/td
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=5 class=form-radio
 type=radio
                 The Minish Cap/label
               /div
               /span/td
           /tr
           tr/tr
           tr
             tdnbsp;/td
             tdnbsp;/td
           /tr
           tr
             tdinput name=op id=edit-vote value=Vote
 class=form-submit legend_polls onClick=$('#edit-current-
 nid').val('2015');return false; type=submit
             /td
             tddiv class=form-radios/div
               input name=form_token id=edit-poll-view-voting-form-
 token value=23b6d81824cd64e8c1e18c75b760f24c type=hidden
               input name=form_id id=edit-poll-view-voting
 value=poll_view_voting type=hidden
             /td
           /tr
         /tbody
       /table
     /div
   /form
   form action=/effinfunny_beta/node/2017 method=post id=poll-
 view-voting
     div
       input name=nid id=edit-nid value=2017 type=hidden
       input name=current_nid id=edit-current-nid value=
 type=hidden
       table border=0 cellpadding=0 cellspacing=3 width=100%
         tbody
           tr
             td colspan=2h2 class=yellow_txtBest search engine/
 h2/td
           /tr
           tr
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=0 class=form-radio
 type=radio
                 google/label
               /div
               /span/td
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=1 class=form-radio
 type=radio
                 yahoo/label
               /div
               /span/td
           /tr
           tr
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=2 class=form-radio
 type=radio
                 msn/label
               /div
               /span/td
             tdspan class=fanart style=margin-bottom: 5em;
               div class=form-item
                 label class=option
                 input name=choice value=3 class=form-radio
 type=radio