Re: [jQuery] When / how did you find out about jQuery?

2006-09-27 Thread Mike Rubits

I spotted it I forget when, but I was poking around at the RIT ScheduleMaker
site he did a while ago, which is still the most useful thing for figuring
out classes up here. I dread to think how I'd have to get a good schedule by
hand.

I forget what revision it was on then, but it was pretty early on in things.
I was looking for an excuse to use JQuery somewhere because it was that
freakin' cool, and finally did last June on an internal site.


Sam Collett wrote:
 
 I've used it since at least January 2005 (at least that was the first
 time I emailed John about a bug when he was first working on it), but
 not as much as I do now.
 
 I first found out about his coding skills when following the addEvent
 coding contest (QuirksBlog -
 http://www.quirksmode.org/blog/archives/coding_techniques/contest/index.html)
 - which he won of course. Incidentally, jQuery doesn't use his winning
 code, but Dean Edwards' code (with a few modifications) and doesn't
 even use the W3c (or Microsoft's) method of adding events.
 
 You could still select elements by a CSS expression and do basic
 manipulation on the results (filtering, toggling, adding class names,
 adding content etc), and attach (but not execute) events as well as
 create plugins. It was also under an 'Attribution, Share Alike
 License' and contained no indication of SVN revision (it may not have
 even been under source control for all I know).
 
 It is bigger and better since then and from a glance over the source,
 pretty much a rewrite too.
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/When---how-did-you-find-out-about-jQuery--tf2345107.html#a6530203
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] editInPlace Plugin

2006-09-25 Thread Mike Rubits

Looks great! It would be a cool addition if there were a way to edit
everything inside a form; sort of like the ajaxSubmit feature but for
editing, and have one Submit button at the bottom. It's probably a bit out
of the scope of this plugin, but would be a cool idea nonetheless. At least
I'd use it, anything to clean up the mess of PHP pages for every single
action :)


wycats wrote:
 
 Hey guys,
 
 I finally got around to doing a bit of documentation on my editInPlace
 plugin. You can check it out at
 http://jquery.com/docs/Plugins/editInPlace/
 
 There are two major benefits of my plugin over the official one:
  * Gives submit and cancel buttons
  * Supports checkboxes and select boxes
 
 -- 
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/editInPlace-Plugin-tf2332202.html#a6490261
Sent from the JQuery mailing list archive at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Error Handling with AJAX

2006-09-18 Thread Mike Rubits

My understanding was that the plugin looked inside the form tag for the
action: form id=noteform action=taskaction.php method=post
and when you click submit, instead of doing an old fashioned submit, the
ajaxForm plugin kicks in, reads action= from the form tag, and does it via
AJAX.

I have a similar form on another page that works perfectly:

form id=newsform action=addnews.php method=post
labelTitle:/labelinput type=text name=title style=width:
400px;/
labelArticle:/labeltextarea name=article style=width: 400px;
height: 200px;/textarea
input type=submit value=Submit id=submit2/br/br/
/form

$(#newsform).ajaxForm(#news); being used to initialize it. You click on
submit, it uploads the contents of the form to addnews.php, and dumps the
output into the news div.

The only thing that differs between the two as far as I can tell is the form
in my problematic example is being called from AJAX load. (the ajaxForm is
being run in the callback for the page being loaded.)

If anyone would like to look at the actual page on the server, let me know
and I can send over a link. If I get some time tomorrow, I'd like to see if
I can replicate it on a page from scratch.


Klaus Hartl wrote:
 
 Does your form contain an input field with the id action?
 
 In your example I haven't spotted the place where you access the action 
 attribute...?
 

-- 
View this message in context: 
http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6358565
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Error Handling with AJAX

2006-09-17 Thread Mike Rubits

Yet another feature about FireBug I didn't realize :)

I've found the rather obvious source of the problem, not sure if it's a
JQuery bug, but it's odd nonetheless. It's not getting the form action
correct:
POST http://192.168.0.3/modules/tasks/%5Bobject%20HTMLInputElement%5D

The ajaxForm is being called from the callback function of an ajax load:

function callTask(id) {
$('#content').load(showtask.php,{id: id},function(){
$('#detail').css('display','block');
$('#tasks').css('display','none');
$(a.addNote).click(function(){
$(#noteform).ajaxForm(#notes);
$('#notecontainer').css('display','block');
$('#notelink').css('display','none');
});
});
}

and the form HTML is like so: form id=noteform action=taskaction.php
method=post

so for whatever reason, it's returning the action as an object rather than a
string. ajaxSubmit does the same thing. Any suggestions at what could be
causing this mixup?


Matt Stith wrote:
 
 in case you dont know, FireBug is a firefox extention. You can find it
 pretty quick on google.
 
 On 9/17/06, Yehuda Katz [EMAIL PROTECTED] wrote:

 Get Firebug and turn on Debug XMLHttpRequests.


 On 9/17/06, Mike Rubits [EMAIL PROTECTED] wrote:
 
 
  Currently I'm using $(#loading).ajaxError(function(){ to display an
  alert
  box when an AJAX error occurs. Is there anyway I can get more detailed
  info
  about what the error it returned is? I'm currently trying to make my
 way
 
  through a problem with a form, and am not quite sure where to start as
  all I
  know right now is that there is indeed an error.
 
  Any help would be greatly appreciated.
 
  Mike
  --
  View this message in context:
  http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6352667
  Sent from the JQuery forum at Nabble.com .
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 



 --
 Yehuda Katz
 Web Developer | Wycats Designs
 (ph)  718.877.1325

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6354951
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Error Handling with AJAX

2006-09-17 Thread Mike Rubits

How is it returning XML at all? The only thing it's returning is a 404 error
code. It's supposed to post to the action attrib of the form, instead it's
posting to /modules/tasks/[object htmlInputElement] instead of
taskaction.php.


Matt Stith wrote:
 
 AJAX is supposed to return XML, so its doing what its made to do.
 
 On 9/17/06, Mike Rubits [EMAIL PROTECTED] wrote:

 Yet another feature about FireBug I didn't realize :)

 I've found the rather obvious source of the problem, not sure if it's a
 JQuery bug, but it's odd nonetheless. It's not getting the form action
 correct:
 POST http://192.168.0.3/modules/tasks/%5Bobject%20HTMLInputElement%5D

 The ajaxForm is being called from the callback function of an ajax load:

 function callTask(id) {
  $('#content').load(showtask.php,{id: id},function(){
  $('#detail').css('display','block');
  $('#tasks').css('display','none');
  $(a.addNote).click(function(){
  $(#noteform).ajaxForm(#notes);
  $('#notecontainer').css('display','block');
  $('#notelink').css('display','none');
  });
  });
 }

 and the form HTML is like so: form id=noteform action=taskaction.php
 method=post

 so for whatever reason, it's returning the action as an object rather
 than a
 string. ajaxSubmit does the same thing. Any suggestions at what could be
 causing this mixup?


 Matt Stith wrote:
 
  in case you dont know, FireBug is a firefox extention. You can find it
  pretty quick on google.
 
  On 9/17/06, Yehuda Katz [EMAIL PROTECTED] wrote:
 
  Get Firebug and turn on Debug XMLHttpRequests.
 
 
  On 9/17/06, Mike Rubits [EMAIL PROTECTED] wrote:
  
  
   Currently I'm using $(#loading).ajaxError(function(){ to display
 an
   alert
   box when an AJAX error occurs. Is there anyway I can get more
 detailed
   info
   about what the error it returned is? I'm currently trying to make my
  way
  
   through a problem with a form, and am not quite sure where to start
 as
   all I
   know right now is that there is indeed an error.
  
   Any help would be greatly appreciated.
  
   Mike
   --
   View this message in context:
  
 http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6352667
   Sent from the JQuery forum at Nabble.com .
  
  
   ___
   jQuery mailing list
   discuss@jquery.com
   http://jquery.com/discuss/
  
 
 
 
  --
  Yehuda Katz
  Web Developer | Wycats Designs
  (ph)  718.877.1325
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 

 --
 View this message in context:
 http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6354951
 Sent from the JQuery forum at Nabble.com.


 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/

 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-Handling-with-AJAX-tf2287092.html#a6357248
Sent from the JQuery forum at Nabble.com.


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Problem with .height/.css?

2006-08-25 Thread Mike Rubits
I've been out of the loop on the list here for a little while, and I've
recently thrown on the latest SVN JQuery. Running into some odd problems.

I've got something like the following:

$(.edit).click(function(){
$(body).append(div id='overlay'/diviframe id='edit'
src='http://www.google.com'/iframe);
$(window).scroll(function(){
$(#overlay).top(window.pageYOffset + 'px');
$(#edit).top(window.pageYOffset +  100 + 'px');
});
});

which is intended to be a one-shot lightbox style deal (Thickbox seems good,
but overkill for what I wanted.)

However when I change..

$(#overlay).top(window.pageYOffset + 'px');

to

$(#overlay).height(window.pageYOffset + 'px');

so that the effect works a little bit smoother, I'm greeted with nothing:
the overlay div just sits there. Same if I were to use .css(height, etc)

I've also tried using the center plugin which is back by including it in the
head, and copying and pasting it at the end of my SVN build, but I'm also
yet unable to get that one to work too on a div that is not being appended
to the page

Basically, am I missing something stupid here in my 2-3 months of JQuery
rustiness? Any help would be appreciated!

Mike Rubits
Web/Graphic Designer, d8d.org
E-Mail: [EMAIL PROTECTED]  ICQ: 4029304



___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/