[jQuery] Re: Random problems with load()?????

2009-12-09 Thread PiotrJaniak
I don't know any jQuery method to debug load() but u can always use try and catch. However I think load() isn't probably the cause of problems. You should look for errors in javascript console - I bet you misspell some class name or sth. If not show us code;) On 9 Gru, 12:52, ximo wallas

[jQuery] Re: How to make ajax call to subdomain

2009-12-09 Thread PiotrJaniak
$.ajax({ url: http://api.example.com;, success: function(html){ }}); On 10 Gru, 01:02, Kyle Decot ow...@affinityskateboards.com wrote: How do i make a ajax call using $.ajax(); to a subdomain on my website. I'm calling $.ajax() fromwww.example.com the url for the call is

[jQuery] Re: Selecting all checked checkboxes: nothing seems to work

2009-11-17 Thread PiotrJaniak
Hi, I think that this is a syntax problem. Try this: $([name^='item']:checked).map(function() { }); it works for me. On 17 Lis, 11:11, ximo wallas igguan...@yahoo.com wrote: I'm using this selector: $('[name^=item]').map(function() {}); To access a group of checkboxes with names like:

[jQuery] Re: Ajax download file.

2009-11-16 Thread PiotrJaniak
Hi, i don't know how can you attach any other file but xml to HTTPresponse. I rather do sth like that: - load php file which return link to pdf - open new window with pdf file code: $.ajax({ type: POST, url: /Portfolio09/scripts/setLang.php, data: param, success:

[jQuery] Re: Ajax download file.

2009-11-16 Thread PiotrJaniak
Hi, i don't know how can you attach any other file but xml to HTTPresponse. I rather do sth like that: - load php file which return link to pdf - open new window with pdf file code: $.ajax({ type: POST, url: phpfile.php, data: param, success: function(html){

[jQuery] Re: Rounding numbers

2009-11-16 Thread PiotrJaniak
Hi, there is a search box in the top right of this page;) http://groups.google.com/group/jquery-en/browse_thread/thread/e819cef9e28502b0# On 16 Lis, 05:02, cfred fallreco...@gmail.com wrote: I am having trouble rounding numbers in the code below. I would like insulBlocks to round up to a

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-16 Thread PiotrJaniak
Hi, u should rethink all code. In my opinion the easiest way is to attach in each row of the output some hidden element like: input class=hidden-elem type=hidden value=?=$fld [id];?/ instead of your JavaScript code and in file a, in JavaScript section create function (use it as Ajax callback)

[jQuery] Re: Rounding numbers

2009-11-16 Thread PiotrJaniak
(parseInt($(#insulBlocks).html()) * . 55 * 100) /100); On 17 Lis, 01:16, cfred fallreco...@gmail.com wrote: Yes, I tried what other posts said without luck. Which is why I posted my code to see if someone would be kind enough to help. Thanks. On Nov 16, 5:34 pm, PiotrJaniak janiak.piot...@gmail.com

[jQuery] Re: Round numbers

2009-11-15 Thread PiotrJaniak
Hi, to round up results u can use Math.ceil(value); On 15 Lis, 16:10, factoringcompare.com firstfacto...@googlemail.com wrote: Hi, The below calculates a couple of textboxes and then allows for the user to click an up or down image to re calculate decreasing or increasing a number. Question

[jQuery] Re: Round numbers

2009-11-15 Thread PiotrJaniak
y = Math.Round(x); OR var y = Math.Ceil(x); On Sun, Nov 15, 2009 at 6:45 PM, factoringcompare.com firstfacto...@googlemail.com wrote: Hi, Great, I have a a go at putting into my code but can't can you suggest how? On Nov 15, 4:06 pm, PiotrJaniak janiak.piot

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-15 Thread PiotrJaniak
Hi, i think there is no need to use eval() function. I'm not sure if it works but i would do it like that: function requestCustomerInfo() { var sId = $(input#includi).val(); $(div#divCustomerInfo).load(page_b.php?query= + sId, FunctionFromBPage()); //or

[jQuery] Re: jquery, eval and javascript in Ajax response

2009-11-15 Thread PiotrJaniak
Hi, I think there is no need to use eval(); function. I'm not sure if this works but i would do it like that: function requestCustomerInfo() { var sId = $(input#includi).val(); $(div#divCustomerInfo).load(page_b.php?query= + sId, FunctionFromBPage()); //or

[jQuery] Re: jQuery newbie is looking for a hint. (dynamically add div tags to html :: plugin accordion)

2009-11-14 Thread PiotrJaniak
Hi, I don't really know if my solution is universal but in this case works fine: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en-us head meta http-equiv=content-type

[jQuery] Re: Please help - Table sorter does not seem to work

2009-11-14 Thread PiotrJaniak
Hi, apparently Tablesorter can't handle zeros in sorted table. Without any 0 value your code works fine. check out this thread: http://groups.google.com/group/jquery-dev/browse_thread/thread/d8e75a30f7ca3067 and this site: