[jQuery] Packing script

2007-03-04 Thread Ámon Tamás
Hello,

Maybe off, sorry.

I made a little script, and I like to pack it. I try to use the js.jar 
what is in the svn version of jquery. I try with the next command:

java -jar ./build/js.jar ./build/build/pack.js szamolo.js  ./szamolo.pack.js

But, when I like to use the szamolo.pack.js instead of szamolo.js I get 
the following error:

missing ; before statement

Before packing, I put semicolon after every line.

How can I pack my script?

-- 
Ámon Tamás
http://linkfelho.amon.hu


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


[jQuery] jquery1.1 and modalContent problem

2007-01-15 Thread Ámon Tamás
Hello,

I try to upgrade my little project from jquery 1.04 to jquery 1.1 . 
(naturally with jquery.compat-1.0). And with modalContent I get the 
following error:

$(#modalContent).top is not a function (line 83). I think this is a 
jquery.compat error. Isn't it?

-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] jquery1.1 and modalContent problem

2007-01-15 Thread Ámon Tamás
Gavin M. Roy wrote:
 I'll work through the 1.1 issues in modalContent in the next few days 
 and release a version compatible with 1.1.

I changed every .top(something) declaration to .css('top', something) 
and now it is working.

 
 Gavin
 
 On 1/15/07, *mohd khairi* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Maybe change it to $('#modalContent')
 
 
 On 1/16/07, *Ámon Tamás*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:
 
 Hello,
 
 I try to upgrade my little project from jquery 1.04 to jquery 1.1 .
 (naturally with jquery.compat-1.0). And with modalContent I get the
 following error:
 
 $(#modalContent).top is not a function (line 83). I think this is a
 jquery.compat error. Isn't it?
 
 --
 Ámon Tamás
 http://linkfelho.amon.hu
 
 
 ___
 jQuery mailing list
 discuss@jquery.com mailto:discuss@jquery.com
 http://jquery.com/discuss/
 
 
 
 
 -- 
 Regards,
 Hairiemx
 http://www.hairiemx.com http://www.hairiemx.com
 ___
 jQuery mailing list
 discuss@jquery.com mailto:discuss@jquery.com
 http://jquery.com/discuss/
 
 
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


-- 
Ámon Tamás
http://linkfelho.amon.hu


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


[jQuery] dinamic content and document.ready()

2007-01-10 Thread Ámon Tamás
Hi all!

The code something like this:

--
script type=text/javascript
$('a.lightbox_a').click(function(){
 $(#bimages img).attr('src', $(this).attr('href'));
 $(#bimages).modalContent(null, 'show', 'slow');
 return false;
});

$(#limages).append('a href=smg.jpg class=lightbox_aimg 
src=lp.jpg/a');
/script

div id=limages
/div
--

Bur when I make dynamic content, the document.ready-s part is not 
working. How can make easily apply document.ready part to the dynamic 
content?


-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] dinamic content and document.ready()

2007-01-10 Thread Ámon Tamás
Christian Bach wrote:
 This can be a bit tricky, since there is no document.append event.
 
 Here is how i usually do it.
 
 script
 $(function() {
   doStuff();
 
   $(div).click(function() {
   // append a link to the document
   $(body).append('a href=#test/a');
   doStuff();  
   });
 });
 
 function doStuff() {
   $(a).click(function() {
   alert('a link has been pressed');
   });
 }
 /script

I try something same, but if I make this if click on a link it fired two 
times.

-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] jQuery 1.1a

2007-01-08 Thread Ámon Tamás
Hello,

I get the following error:

value has no properties jquery.js (line 292)
whith this:
$(form).attr({target: _target, action: _action});

In this line _target variable is null, but that was no problem in the 
latest version;

John Resig wrote:
 Hi Everyone -
 
 We've just pushed jQuery 1.1a live. This is a testing release - so
 your help would be appreciated in testing it out and finding any bugs.
 1.1 will be released this weekend (January 14th).
 
 Here's the quick-and-dirty on jQuery 1.1:
  * Its selectors are 10-20x faster than those in jQuery 1.0.4.
  * The documentation has been completely revamped.
http://docs.jquery.com/
  * The complexity of the API has dropped by 47%.
  * It has a ton of bug fixes.
  * It has a bunch of great new features.
  * … and it's still the small 19KB that you've come to expect.
 
 More information can be found here:
 http://jquery.com/blog/2007/01/08/jquery-11a/
 
 You can download the code here:
 http://jquery.com/src/jquery-1.1a.js
 
 And submit a new bug report here:
 http://jquery.com/dev/bugs/new/
 
 Please post any bugs that you find to the bug tracker, and any
 comments that you have to this thread, or to the blog post. Thanks!
 
 --John
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 
 


-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] ajaxSetup

2007-01-08 Thread Ámon Tamás
Andreas Wahlin wrote:
 Am I daft or what, I'm trying to change some global ajaxSettings like so
 
  $.ajaxSetup( {contentType: 'text/xml'} );
 
 but it seems to not work. $.ajaxSetup is not a function firebug tells  
 me ...
 

Where did you find this function? Maybe you can use the ajaxSettings 
Object to change this property.

-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-05 Thread Ámon Tamás
Hello,

I get the following error:

$(document).outerHeight is not a function (line 55)
Is this a bug or a feature?

(I have firefox 2.0)

Gavin M. Roy wrote:
 I've released 0.11 of the jquery-modalContent plugin with the following 
 changes:
  
 2006-12-19 patch from Tim Saker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   1) Keyboard events are now only permitted on visible elements belonging to 
 the modal layer (child elements). Attempting to place focus on any other page 
 element will cause focus to be transferred back to the first (ordinal) 
 visible child element of the modal layer.
 
   2) The modal overlay shading now covers the entire height of the document 
 except for a small band at the bottom, which is the height of a scrollbar (a 
 separate thread to be opened on this problem with dimension.js).
 
   3) I removed the code that disables and reenables the scrollbars.  This is 
 just a suggestion really, realizing it could be one of those little things 
 that causes fellow developers to become unnecessary foes ;=).  Personally, I 
 found it an annoying behaviour to remove a visible scrollbar causing the page 
 elements to shift right upon modal popup, then back after closure. If the 
 intent was to prevent scrolling it doesn't anyway since you can still page 
 down with the keyboard. Maybe it should be a boolean option passed in the 
 function signature?
 
 
 2007-01-03 gmr
   1) Updated to set the top of the background div to 0
   2) Add 50px to the background div (ugly hack until dimensions.js returns 
 the proper height
   3) Removed the .focus from the $('#modalContent .focus') selector since 
 that required something with a class of focus.
 
   4) Created a function for reaize and bound and unbound that so it doesnt 
 clobber other resize functions on unbinding.
   5) Created a function for binding the .close class and bound/unbound click 
 using it.  Close now will work on any clickable element including a map area.
 
   6) Renamed animation commands to match jQuery's.
 
 It is available at http://jquery.glyphix.com - Thank you to everyone who has 
 made suggestions and given feedback on the plugin to make it better.
 
 
 Regards,
 
 Gavin
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] jquery-modalContent Plugin 0.11 released

2007-01-05 Thread Ámon Tamás
Brandon Aaron wrote:
 On 1/5/07, Ámon Tamás [EMAIL PROTECTED] wrote:
 Hello,

 I get the following error:

 $(document).outerHeight is not a function (line 55)
 Is this a bug or a feature?
 
 Please make sure you have the dimensions plugin.
 http://jquery.com/dev/svn/trunk/plugins/dimensions/dimensions.js?format=txt
 

Ups. :) I forget it.

But I have an other problem. The content come dinamicaly from 
javascript. I make something like this:

-
var aa = document.createElement(a);
aa.href=javascript:void(0);;
aa.class=close;
$(aa).click(function(){jQuery.modalContent.modalContentClose();});
$(aa).html(Bezaras);
$(div).append(aa);
-

But it is not close the picture
$(aa).click(function(){jQuery.modalContent.modalContentClose();});

What I must to make with this line?

-- 
Ámon Tamás
http://linkfelho.amon.hu


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


[jQuery] File (image) upload

2007-01-03 Thread Ámon Tamás
Hello,

I like to upload an image from a form with ajax, but I don't know how it
is working. I know, I must to make an iframe, and I must to send the
file to this iframe and getting back the results, but I don't know how
it is working. I try to examine Drupal upload solution but it is to
difficult for me now. I only like a _very_ _litle_ example or tutorial
how it is working.

Thanks
-- 
Ámon Tamás
http://linkfelho.amon.hu


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


Re: [jQuery] File (image) upload

2007-01-03 Thread Ámon Tamás
Ámon Tamás wrote:
 Hello,
 
 I like to upload an image from a form with ajax, but I don't know how it
 is working. I know, I must to make an iframe, and I must to send the
 file to this iframe and getting back the results, but I don't know how
 it is working. I try to examine Drupal upload solution but it is to
 difficult for me now. I only like a _very_ _litle_ example or tutorial
 how it is working.

Hmmm it is a very-very easy thing, I must to change the form target to 
the iframe.

And other question. Are these an easy way to sending-responding from an 
eframe (like $.post())?

-- 
Ámon Tamás
http://linkfelho.amon.hu


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