Re: [jQuery] Re: New Forums

2010-01-23 Thread Octavian Rasnita

From: Shawn sgro...@open2space.com
Karl said it best - we can't please everyone.  Unless someone were to sit 
down and write a tool to integrate/synch a forum (Zoho in particular


And he is right. Unfortunately the ones that will be unpleased and will have 
even more accessibility issues as before are exactly some people with 
disabilities that already have many enough issues using a computer.


Octavian





Re: [jQuery] Re: New Forums

2010-01-23 Thread Octavian Rasnita
But each time you want to post a new message, you will need to go to the 
forum, login, and then try to sent the message, which I don't even know how 
accessible it is, because friendly it is not for sure.


While for sending an email I just need to press Control+N in OE and I can 
start typing the message.


So the forum is definitely much less accessible and friendly.

Octavian

- Original Message - 
From: John Arrowwood jarro...@gmail.com

To: jquery-en@googlegroups.com
Sent: Friday, January 22, 2010 11:13 PM
Subject: Re: [jQuery] Re: New Forums



Silly thought:

What if the forums were 'published' to the mailing list, and the mailing
list were made read-only?  That is, every time a post is published on the
forum, it is automatically sent to the mailing list.  Then, in the footer 
of
the message is a link to reply to the post, which when clicked takes you 
to

the forum in such a way that the user can immediately reply to that post.

The mailing list could be set up so that nobody except the forum 'bot' 
could

post to it, which would make spam go away.  People that have accessibility
issues or just prefer to get their information via their email client 
could
continue to read things that way.  And you would have all of the benefits 
of

the forum.

Best of both worlds.  Make everybody happy.  I know it would make me
happier.

On Fri, Jan 22, 2010 at 1:05 PM, Octavian Rasnita 
orasn...@gmail.comwrote:



From: MorningZ morni...@gmail.com
Besides, as Richard pointed out, the mailing list right here will
still exist, it just won't be moderated/managed by the people it was
before..

That would be good, because at least for a period there would still be an
accessible source of information for JQuery.

Octavian





--
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/





Re: [jQuery] how to get href value

2010-01-23 Thread Andrei Eftimie
 $(document).ready(function() {
        $(a).click(function(event) {
                alert( You clicked a link to  + this.href );
                return false;
        });
 });

This method is very slow.

Try using event delegation:

$(document).ready(function() {
$(document).click(function(event){
if ($(event.target).is('a') {
 alert( You clicked a link to  + event.target.href);
 return false;
}
});
});



-- 
Andrei Eftimie
http://eftimie.com
+40 758 833 281

Punct
http://designpunct.ro


Re: [jQuery] Abridged summary of jquery-en@googlegroups.com - 30 Messages in 9 Topics

2010-01-23 Thread traoux
Bonjour,

je suis absent du 21 janvier au 8 février. 

En cas d'urgence veuillez téléphoner à l'agence au 04.92.45.18.05.

Merci et à bientôt !

Thierry Raoux




[jQuery] Re: how to get href value

2010-01-23 Thread Greg Tarnoff

Actually all of these are slow. The last example will run anytime you
click the page. You only want to run this if they click an A element.
So attach a click event to A.   Try this:

$(document).ready(function(){
$('a').click(function(){
  alert($(this).attr('href'););
});
});
only do the e.preventDefault(); if you don't want it to go somewhere.

I use this method all the time to get the HREF, always putting it into
a variable, and affect the page. Usually for things like sliding
panels. By putting in #myid it remains accessible when JS isnturned
off.


On Jan 23, 4:30 am, Andrei Eftimie k3liu...@gmail.com wrote:
  $(document).ready(function() {
         $(a).click(function(event) {
                 alert( You clicked a link to  + this.href );
                 return false;
         });
  });

 This method is very slow.

 Try using event delegation:

 $(document).ready(function() {
     $(document).click(function(event){
         if ($(event.target).is('a') {
              alert( You clicked a link to  + event.target.href);
              return false;
         }
     });

 });

 --
 Andrei Eftimiehttp://eftimie.com+40 758 833 281

 Puncthttp://designpunct.ro


Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-23 Thread Bugman1400

href=javascript:void(0); onclick='$.get(do.php,{ cmd: approve, id: ?
echo $rrows['id']; ? } ,function(data){ $(#approve? echo $rrows['id'];
?).html(data); });' ? });'Approve
-- 
View this message in context: 
http://old.nabble.com/This-code-is-too-complex-for-a-noob%2C-can-someone-break-this-down.-tp2728s27240p27286206.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.



Re: [jQuery] Re: how to get href value

2010-01-23 Thread Amos King
Greg, I'm not sure how your's is much diffrent then the original.

On Sat, Jan 23, 2010 at 7:04 AM, Greg Tarnoff greg.tarn...@gmail.comwrote:


 Actually all of these are slow. The last example will run anytime you
 click the page. You only want to run this if they click an A element.
 So attach a click event to A.   Try this:

 $(document).ready(function(){
 $('a').click(function(){
  alert($(this).attr('href'););
 });
 });
 only do the e.preventDefault(); if you don't want it to go somewhere.

 I use this method all the time to get the HREF, always putting it into
 a variable, and affect the page. Usually for things like sliding
 panels. By putting in #myid it remains accessible when JS isnturned
 off.


 On Jan 23, 4:30 am, Andrei Eftimie k3liu...@gmail.com wrote:
   $(document).ready(function() {
  $(a).click(function(event) {
  alert( You clicked a link to  + this.href );
  return false;
  });
   });
 
  This method is very slow.
 
  Try using event delegation:
 
  $(document).ready(function() {
  $(document).click(function(event){
  if ($(event.target).is('a') {
   alert( You clicked a link to  + event.target.href);
   return false;
  }
  });
 
  });
 
  --
  Andrei Eftimiehttp://eftimie.com+40 758 833 281
 
  Puncthttp://designpunct.ro




-- 
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com


Re: [jQuery] This code is too complex for a noob, can someone break this down.

2010-01-23 Thread Amos King
submits a row to the server and then updates the content of the approve row
to what is returned from the server.

On Sat, Jan 23, 2010 at 9:06 AM, Bugman1400 trae.be...@coachmanridge.comwrote:


 href=javascript:void(0); onclick='$.get(do.php,{ cmd: approve, id:
 ?
 echo $rrows['id']; ? } ,function(data){ $(#approve? echo $rrows['id'];
 ?).html(data); });' ? });'Approve
 --
 View this message in context:
 http://old.nabble.com/This-code-is-too-complex-for-a-noob%2C-can-someone-break-this-down.-tp2728s27240p27286206.html
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




-- 
Amos King
http://dirtyInformation.com
http://github.com/Adkron
--
Looking for something to do? Visit http://ImThere.com


[jQuery] Re: Select tab from link

2010-01-23 Thread inidaho
Newbie.  I have multiple tabs instances on a single page.  They each
have a different ID and each set of tabs has 5 tabs.  If I am trying
to go to a specific tab via link within a specific set of tabs but it
is updating them all.  I figure I need a .this command somewhere but
haven't been able to work.  The code I am using now updates all of the
tabs to position 0 for all instances.

Current code
$('.goabout').click(function() {
   $(.tabs).tabs('select', 0);
   return false;
   });
Can anyone help me with selected .this tab.  Thank you.

On Jan 17, 3:10 pm, MorningZ morni...@gmail.com wrote:
 if your link follows the pattern of having it's ID as linkXX where
 XX is the zero-based index of atab, then the live binding will
 pick up any newinstancesof such links in your AJAX responses/
 additions

 btw, i had a typo... lit.length should be hit.length

 On Jan 17, 11:06 am, CMI_Guy market...@cmilc.com wrote:



  MorningZ, Thanks for your reply. Something was missing from your
  syntax so I made one small change to your script:

  $(document).ready(function(){
          var $tabs= $(#tabs).tabs();
          $(a[id^='link']).live(click, function() {
                  var hit = this.id.match(/^link(\d+)$/);
                  if (hit  lit.length == 2) {
                         $tabs.tabs('select', hit[1]);
                         return false;
                  }
          });

  });

  But, I must admit I know next to nothing aboutjquerylive events. Can
  you help me understand what markup I would need to put on a a href
  link to make this script work. I would love to be able to simplify my
  method for allowing text links on the page to interact with thetabs.
  Much Thanks!!

  On Jan 16, 9:38 pm, MorningZ morni...@gmail.com wrote:

   There's no need to repeat the code...  you can even do it with .live
   so it'll work if there's 1 or 100tabs

   $(document).ready(function(){
           var $tabs= $(#tabs).tabs();
           $('a[id^='link').live(click, function() {
                   var hit = this.id.match(/^link(\d+)$/);
                   if (hit  lit.length == 2) {
                          $tabs.tabs('select', hit[1]);
                          return false;
                   }
           });

   });

   On Jan 16, 5:59 pm, CMI_Guy market...@cmilc.com wrote:

StephenJacob,

Sloppy fix. But works.

script type=text/javascript
$(document).ready(function(){
        var $tabs= $(#tabs).tabs();
        $('#link0').click(function() { // bind click event tolink
                $tabs.tabs('select', 0); // switch to firsttab
                return false;
        });});

$(document).ready(function(){
        var $tabs= $(#tabs).tabs();
        $('#link1').click(function() { // bind click event tolink
                $tabs.tabs('select', 1); // switch to secondtab
                return false;
        });});

$(document).ready(function(){
        var $tabs= $(#tabs).tabs();
        $('#link2').click(function() { // bind click event tolink
                $tabs.tabs('select', 2); // switch to thirdtab
                return false;
        });});

$(document).ready(function(){
        var $tabs= $(#tabs).tabs();
        $('#link3').click(function() { // bind click event tolink
                $tabs.tabs('select', 3); // switch to fourthtab
                return false;
        });});

$(document).ready(function(){
        var $tabs= $(#tabs).tabs();
        $('#link4').click(function() { // bind click event tolink
                $tabs.tabs('select', 4); // switch to fifthtab
                return false;
        });});

/script

div id=tabs
        ul
            lia href=users-admin.phpAdministrators/a/li
            lia href=users-standard.phpUsers/a/li
            lia href=users-notify.phpProcess Users/a/li
            lia href=users-activity.phpUser Activity/a/li
            lia href=db-backup.phpDatabase Backup/a/li
        /ul
/div

TEXT LINKS elsewhere on page that activate thetabs.

a href=users-standard.php id=link0Administrators/a
a href=users-standard.php id=link1Users/a
a href=users-notify.php id=link2Process Users/a
a href=users-activity.php id=link3User Activity/a
a href=db-backup.php id=link4Database Backup/a- Hide quoted text 
-

   - Show quoted text -


[jQuery] Re: how to get href value

2010-01-23 Thread MorningZ
or how it's slower  say there's 100 a on the page (which
wouldn't be too uncommon for say, a blog site), that's 100 event's
wired up sitting in ready to go... using event delegation, one
single event is wired up and if a user clicks somewhere (and really,
how much clicking does a web page actually get?), it does a single if
statement asking was this a link?


On Jan 23, 10:52 am, Amos King amos.l.k...@gmail.com wrote:
 Greg, I'm not sure how your's is much diffrent then the original.

 On Sat, Jan 23, 2010 at 7:04 AM, Greg Tarnoff greg.tarn...@gmail.comwrote:





  Actually all of these are slow. The last example will run anytime you
  click the page. You only want to run this if they click an A element.
  So attach a click event to A.   Try this:

  $(document).ready(function(){
  $('a').click(function(){
   alert($(this).attr('href'););
  });
  });
  only do the e.preventDefault(); if you don't want it to go somewhere.

  I use this method all the time to get the HREF, always putting it into
  a variable, and affect the page. Usually for things like sliding
  panels. By putting in #myid it remains accessible when JS isnturned
  off.

  On Jan 23, 4:30 am, Andrei Eftimie k3liu...@gmail.com wrote:
$(document).ready(function() {
       $(a).click(function(event) {
               alert( You clicked a link to  + this.href );
               return false;
       });
});

   This method is very slow.

   Try using event delegation:

   $(document).ready(function() {
       $(document).click(function(event){
           if ($(event.target).is('a') {
                alert( You clicked a link to  + event.target.href);
                return false;
           }
       });

   });

   --
   Andrei Eftimiehttp://eftimie.com+40758 833 281

   Puncthttp://designpunct.ro

 --
 Amos Kinghttp://dirtyInformation.comhttp://github.com/Adkron
 --
 Looking for something to do? Visithttp://ImThere.com


[jQuery] Two search kriteria

2010-01-23 Thread Frank Becker

Hi all,

first of all I'm sorry if this posting is hard to read. English is not 
my mother tongue.


I'm new to jQuery and jQuery-Autocomplete. I want to create an 
intelligent input form like


Name: 
ZIP: ___
City: 
Street: _

If the ZIP-code is entered the city is filled automatically. That works. 
What I want is an autocompletion for street. In my database I have a 
list of all streets and the appropriate ZIP-codes

e.g.

34128 / A-Road
34128 / B-Road
34128 / B-Street
34128 / C-Street

If the ZIP-Code is 34128 and the first key pressed in the street-field 
is a B, then only B-Road and B-Street should be shown in the 
autocomplete list.


I have the following code fragment, taken from the demo (json.html) and 
adapted to fit my needs.


$(#street).autocomplete('search.php?what=streetadd='+$('#zip').val(), 
{ ...



search.php receives $_GET[q] the input of the user, in $_GET[what] what 
to search for (street, ZIP, ...) and in $_GET[add] is stored an 
additional parameter (ZIP in this case).


The problem is, that I cannot send the value of the ZIP-code to 
search.php. I tried with the example above and with


$(#street).autocomplete('search.php?what=streetadd='+form.ZIP.value, 
{ ...


In this case, the additional parameter $add contains form.ZIP.value and 
not 34128.


If I write
$(#street).autocomplete('search.php?what=streetadd=34128', { ...

everything works fine.


Thank you in advance for your help and hava a nice weekend.
--
Frank Becker



[jQuery] MarkItUp image upload

2010-01-23 Thread brian
I've just created an improved image widget for the MarkItUp editor[1].
Instead of being prompted for an existing URL for the src attribute, a
file upload form is created. The form target a hidden iframe. An
online script should return the URL, as well as the final width 
height. When the iframe has loaded, the dta is used to create the img
tag. Voila!

You can see the code here:

http://pastebin.ca/1763467

This example requires both jquery.loading  jquery.json (and a
'cancel' button image). I fully expect that others might want to do
things a little differently.

b

[1] http://markitup.jaysalvat.com/home/


Re: [jQuery] Two search kriteria

2010-01-23 Thread John Arrowwood
Give your Zip field an ID, then use $('#zip').value() instead of
form.ZIP.value.  Or maybe it's .value without parenthesis, I don't remember,
and I'm not in the mood to go look it up for you.  :)  But bottom line,
don't use 'form.ZIP'.  That's the part that isn't working.

On Sat, Jan 23, 2010 at 4:17 PM, Frank Becker
computersac...@beckerwelt.dewrote:

 Hi all,

 first of all I'm sorry if this posting is hard to read. English is not my
 mother tongue.

 I'm new to jQuery and jQuery-Autocomplete. I want to create an
 intelligent input form like

 Name: 
 ZIP: ___
 City: 
 Street: _

 If the ZIP-code is entered the city is filled automatically. That works.
 What I want is an autocompletion for street. In my database I have a list of
 all streets and the appropriate ZIP-codes
 e.g.

 34128 / A-Road
 34128 / B-Road
 34128 / B-Street
 34128 / C-Street

 If the ZIP-Code is 34128 and the first key pressed in the street-field is a
 B, then only B-Road and B-Street should be shown in the autocomplete list.

 I have the following code fragment, taken from the demo (json.html) and
 adapted to fit my needs.

 $(#street).autocomplete('search.php?what=streetadd='+$('#zip').val(), {
 ...


 search.php receives $_GET[q] the input of the user, in $_GET[what] what to
 search for (street, ZIP, ...) and in $_GET[add] is stored an additional
 parameter (ZIP in this case).

 The problem is, that I cannot send the value of the ZIP-code to search.php.
 I tried with the example above and with

 $(#street).autocomplete('search.php?what=streetadd='+form.ZIP.value, {
 ...

 In this case, the additional parameter $add contains form.ZIP.value and not
 34128.

 If I write
 $(#street).autocomplete('search.php?what=streetadd=34128', { ...

 everything works fine.


 Thank you in advance for your help and hava a nice weekend.
 --
 Frank Becker




-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/


[jQuery] Re: how to get href value

2010-01-23 Thread Greg Tarnoff

By click event on the document it may register faster, but every time
it is clicked it will run the function.
With the click on the A only when that is clicked will the action
happen. I find this to be smoother. If your webpage has a form, there
is a lot of clicking. Also rich interfaces have lots of clicks that
may not be tied to A elements anyway.

It isn't much different than the original, but I haven't had much luck
getting .html.href to work in the past.
On Jan 23, 11:26 am, MorningZ morni...@gmail.com wrote:
 or how it's slower  say there's 100 a on the page (which
 wouldn't be too uncommon for say, a blog site), that's 100 event's
 wired up sitting in ready to go... using event delegation, one
 single event is wired up and if a user clicks somewhere (and really,
 how much clicking does a web page actually get?), it does a single if
 statement asking was this a link?

 On Jan 23, 10:52 am, Amos King amos.l.k...@gmail.com wrote:



  Greg, I'm not sure how your's is much diffrent then the original.

  On Sat, Jan 23, 2010 at 7:04 AM, Greg Tarnoff greg.tarn...@gmail.comwrote:

   Actually all of these are slow. The last example will run anytime you
   click the page. You only want to run this if they click an A element.
   So attach a click event to A.   Try this:

   $(document).ready(function(){
   $('a').click(function(){
    alert($(this).attr('href'););
   });
   });
   only do the e.preventDefault(); if you don't want it to go somewhere.

   I use this method all the time to get the HREF, always putting it into
   a variable, and affect the page. Usually for things like sliding
   panels. By putting in #myid it remains accessible when JS isnturned
   off.

   On Jan 23, 4:30 am, Andrei Eftimie k3liu...@gmail.com wrote:
 $(document).ready(function() {
        $(a).click(function(event) {
                alert( You clicked a link to  + this.href );
                return false;
        });
 });

This method is very slow.

Try using event delegation:

$(document).ready(function() {
    $(document).click(function(event){
        if ($(event.target).is('a') {
             alert( You clicked a link to  + event.target.href);
             return false;
        }
    });

});

--
Andrei Eftimiehttp://eftimie.com+40758833 281

Puncthttp://designpunct.ro

  --
  Amos Kinghttp://dirtyInformation.comhttp://github.com/Adkron
  --
  Looking for something to do? Visithttp://ImThere.com


[jQuery] Re: how to get href value

2010-01-23 Thread MorningZ
 but I haven't had much luck getting .html.href to work in the past.

nor should you have *any* luck, since that is totally bad syntax



[jQuery] Dynamic Selects

2010-01-23 Thread Steffan A. Cline
I am wondering if I'm missing something in my code.

I have a select that is populated via
$(#mySelect).load(something.html). This page of course returns a bunch
of option value=xxX/option. I have verified that the code is
populated correctly via viewing the source.

After the .load() I try to set the selected value via .val(something).

The option I am trying to select is there. It's as if the .val(xxx) does not
work on a select that is populated this way. Is there something I am
missing? There has to be a work around.

Suggestions?


Thanks

Steffan

---
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline  
stef...@execuchoice.net Phoenix, Az
http://www.ExecuChoice.net  USA
AIM : SteffanC  ICQ : 57234309
YAHOO : Steffan_Cline   MSN : stef...@hldns.com
GOOGLE: Steffan.Cline Lasso Partner Alliance Member
---





Re: [jQuery] Dynamic Selects

2010-01-23 Thread Steffan A. Cline
Ok. I figured it out. It is a race issue. I needed to wait for the data to
load. I did not realize that load() had a callback.

Solution:

$(#province).load(/async/async_provinces.lasso?cc= + val,
function() {$(#province).val(provincecode);});


Thanks

Steffan

---
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline  
stef...@execuchoice.net Phoenix, Az
http://www.ExecuChoice.net  USA
AIM : SteffanC  ICQ : 57234309
YAHOO : Steffan_Cline   MSN : stef...@hldns.com
GOOGLE: Steffan.Cline Lasso Partner Alliance Member
---



 From: Steffan Cline stef...@hldns.com
 Reply-To: jquery-en@googlegroups.com
 Date: Sat, 23 Jan 2010 21:42:15 -0700
 To: jquery-en@googlegroups.com jquery-en@googlegroups.com
 Subject: [jQuery] Dynamic Selects
 
 I am wondering if I'm missing something in my code.
 
 I have a select that is populated via
 $(#mySelect).load(something.html). This page of course returns a bunch
 of option value=xxX/option. I have verified that the code is
 populated correctly via viewing the source.
 
 After the .load() I try to set the selected value via .val(something).
 
 The option I am trying to select is there. It's as if the .val(xxx) does not
 work on a select that is populated this way. Is there something I am
 missing? There has to be a work around.
 
 Suggestions?
 
 
 Thanks
 
 Steffan
 
 ---
 T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
 Steffan A. Cline 
 stef...@execuchoice.net Phoenix, Az
 http://www.ExecuChoice.net  USA
 AIM : SteffanC  ICQ : 57234309
 YAHOO : Steffan_Cline   MSN : stef...@hldns.com
 GOOGLE: Steffan.Cline Lasso Partner Alliance Member
 ---