[jQuery] selectedClass option in jQuery UI 1.7.2

2009-12-06 Thread Donny Kurnia
o all jQuery developer and jQuery UI contributor. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: format number

2009-10-04 Thread Donny Kurnia
x27;s original data type. That data can be displayed in any forms, any text, any format. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: format number

2009-10-04 Thread Donny Kurnia
runrunforest wrote: How can i make 1500 look like 15,000,000 and 1500.00 look like 15,000,000.00 ? You can use this: http://phpjs.org/functions/number_format:481 -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: jquery codeigniter upload question?

2009-10-03 Thread Donny Kurnia
enclosed by tag: $output = ''.json_encode($response_data).''; jQuery form plugins will handle the rest. You can process json response in the success function handler when initialize ajaxForm. I hope this will help you understand and use jquery form plugins. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Powerfull WYSIWYG editor with upload image capability

2009-09-18 Thread Donny Kurnia
language. I tried to port to django but encountered several problems. --rama You can use it in full javascript, it should be run regardless your backend language (PHP, Pythun, Ruby). You can even run it in html file. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http

[jQuery] Re: can i use .load to return HTML but not inject in to dom?

2009-07-29 Thread Donny Kurnia
e); return false; }); does anyone know of a way to do this? .load is actually a wrapping function for .get. You can use .get or even .ajax for more control. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: POST data not being sent

2009-07-28 Thread Donny Kurnia
also, after read http://funkatron.com/site/comments/safely-parsing-json-in-javascript/ I don't use dataType: 'json' anymore. I use JSON.parse(), so I can make sure that I parse the correct json response. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Form mailing script

2009-07-26 Thread Donny Kurnia
e the value passed into the processing script to select the correct email address so I am not publishing it on the web. You can handle that with a simple if in the server side. Has anyone done this and willing to give me some help and examples. regards Jason -- Donny Kurnia http://blog.abifathi

[jQuery] Re: Which editor is best for inplace HTML

2009-07-24 Thread Donny Kurnia
it. Fsck need http://www.webdesignbooth.com/15-really-useful-web-based-html-editors/ Using TinyMCE, you need to call save method before submit using form plugins. Hope this help. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: jQuery, ajax, json, php

2009-06-11 Thread Donny Kurnia
: false, data: {json: jsonStr}, success: function(data) { alert(data); } }); php page json_decode() -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: How to change Date Format in Jquery Plugin

2009-06-07 Thread Donny Kurnia
/datePickerDateFormat.html Other usage and options: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: BlockUI not always firing

2009-06-03 Thread Donny Kurnia
dataString, function(r){ ReloadPage(); l_processing = "no"; control = "no"; }); I Hope it work. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: BlockUI not always firing

2009-06-02 Thread Donny Kurnia
ot;login")" fires just fine, within the "if(l_processing == "yes")", but the BlockUI portion does not start. However, when control = "logout" BlockUI starts up just fine. I've done alerts and find that all variables being sent into the function are populating

[jQuery] Re: jQuery sIFR Plugin how does it work

2009-05-28 Thread Donny Kurnia
heohni wrote: I wasn't able to find some instructions / examples how to use this plug-in?! Is there any body who could help me out? http://jquery.thewikies.com/sifr/features You can find the example and documentation in the zip file. -- Donny Kurnia http://blog.abifathir.com

[jQuery] Re: getJSON problems

2009-05-23 Thread Donny Kurnia
nction, you must declare it at global scope, not inside the click callback function. Declare it befoce the $(document).ready -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: form submit during getJSON

2009-04-30 Thread Donny Kurnia
és tartsd szárazon a puskaport!".-- Cromwell Working normal in me. Maybe it's your system. Check your system for any trojan. -- Donny Kurnia http://blog.abifathir.com http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: What's the best way to pass parameters through jQuery's ajax?

2009-04-25 Thread Donny Kurnia
t; $_POST['param1], ... > > Is there a more elegant way to pass the parameters on the javascript > side? > Using malsup's form plugins http://malsup.com/jquery/form/ -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: very stupid question

2009-04-25 Thread Donny Kurnia
s file. It can be named with anything, as long as it loaded into html file with that name. If you have jquery-1.3.2.js file, you will load it into html file with -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: File uploads, Form plugin and XMLHttpRequest?

2009-04-24 Thread Donny Kurnia
or > another method that doesn't tamper with the responseText? > Are you using malsup's form plugins? In the server side processing, the json response must wrapped inside . You can see the the example php page in malsup's site. File upload didn't subm

[jQuery] Re: jQuery, Dreamweaver Templates, and Documents Produced Thereof

2009-04-21 Thread Donny Kurnia
d differently by Dreamweaver. By other application, it's ignored. jQuery is running in the browser. All DOM element is 'manipulate'-able. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: upload file

2009-04-16 Thread Donny Kurnia
ybs@gmail.com wrote: > I seach a simple way to upload file using ajax and jquery > http://malsup.com/jquery/form/ Other alternative is use flash uploader. One that I found interesting: http://www.uploadify.com/ -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.co

[jQuery] Re: Creating an ajax status

2009-04-16 Thread Donny Kurnia
html(' Loading ...'); $.post(url ,{param: "value"} ,function(r){ $('#status_div').html(r.message); } , "json"); }); You can adjust this according to your need. This is what I like to do in my code (and my client so far happy with it) :) -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: binding after .get()

2009-04-16 Thread Donny Kurnia
he needed js code in the returned response, so it's get inserted and executed with the new elements. The step 1 in my solution is my practice. If it lead to a lot code rewriting, don't do it for all element, but to the element that got returned from ajax request. > On Apr 16, 5:14

[jQuery] Re: binding after .get()

2009-04-16 Thread Donny Kurnia
pRequest. Writing js code near element that need it, beside maintain the unobtrusive, also made debugging it easier. I hope this will work with your case. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: $("button").Bind("click", function) Vs

2009-04-16 Thread Donny Kurnia
or > the full page to be loaded? > Or, make it hidden with css, then show it using jquery. Consider to optimize your page, so it load faster. Use lazyload to load big images, trim out it's size, use compression, etc. Other approach, use google technique for gmail, all the element is loa

[jQuery] Re: recommendation for lightbox

2009-04-16 Thread Donny Kurnia
l. For alert replacement, try http://abeautifulsite.net/notebook/87 -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Donny Kurnia
"name"=>($row['name'])); > } > $storeData = json_encode($data); > > I still get 'undefined' output :( > It seems that you will get multi row array with that php code. Try to fetch one row only, then store it with: $data['id'] = $

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Donny Kurnia
n I debug a javascript file? I only see the html code from my >> index.php. >> >> (I have lots of experience using debugger tool in Visual Studio) >> >> Steven >> >> On 16 Apr, 15:19, Donny Kurnia wrote: >> >>> Try running it in firefox

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Donny Kurnia
" plugin instead > }, "json"); > }); > }); > > If this is working, I should be able to get an alert message, right? > Try running it in firefox with firebug extention. Open the console tab in firebug to see your XMLHttpRequest request and response from the php. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: question about dealing with JSON callback

2009-04-16 Thread Donny Kurnia
email to mailing list, give that email the label you usually use for that mailing list. If somehow your email failed to reach mailing list, gmail will wend you an information email. So, don't worry about it. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Complete noob needs help setting up jquery in windows XP

2009-04-16 Thread Donny Kurnia
way to do it, then look for jQuery feature to solve that. Happy learning :) > Thanks, > -K > -- Assalamu'alaikum wr wb Wassalamu'alaikum wr wb -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: grabbing html and putting it back

2009-04-15 Thread Donny Kurnia
gt; not > completely but nearly > > > var mol_elements = $( '#molecules_holder' ).html(); > > $( "#molecules_holder" ).empty(); > > $( "#molecules_holder" ).append( mol_elements ); > > > /pär > That's should w

[jQuery] Re: Handling html with javascript in .html()

2009-04-15 Thread Donny Kurnia
Snef wrote: > > > Donny Kurnia schreef: >> Snef wrote: >>> When using $.ajax() i encounter some problems. >>> >>> With the ajax I'm calling a script that will return some html. When >>> echoing the returned data, I can see that

[jQuery] Re: how can I add to different elements inside a jQuery object?

2009-04-15 Thread Donny Kurnia
ed > jQuery object? > > many thanks > > /pär > You must swap the selector: $(".mol_row", elements).append(""+ molname +""); Read again the documentation about selector, there are second parameter to define the search scope. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Handling html with javascript in .html()

2009-04-15 Thread Donny Kurnia
Snef wrote: > When using $.ajax() i encounter some problems. > > With the ajax I'm calling a script that will return some html. When > echoing the returned data, I can see that everything is returned > including the javascript tags. > > When 'inserting' the returned data into a div on the screen

[jQuery] Re: Common Problem :: Access Restricted for URI

2009-04-05 Thread Donny Kurnia
,function(reply) { //CODE HERE }); This only work if the page also served by CodeIgniter's controller. If it from external page, you must put the complete url: http://domain.com//index.php/login/ajaxlogin I'm never had problems with CodeIgniter and AJAX call using jQuery. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Is there a way to use this function without clicking the link twice?

2009-04-05 Thread Donny Kurnia
ery, using either (document).ready(function() { or it short notation: jQuery(function($){ //DOM ready code here. }); The above lines can appear multiple time. I like to write it near the element that need the code, so it keeps the readability and keep the code tidy. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Too much recusion/Out of Memory

2009-04-02 Thread Donny Kurnia
> I got the same message in firebug. I'm only use Malsup's form plugins to submit one form via ajax, and some code to load ajax data as json. I'm still use jquery 1.2.6. I never had this message before in old version of firebug. I wonder whether this is firebug's bug, or something else. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Re: Check all and uncheck all like the one in gmail

2008-12-10 Thread Donny Kurnia
llBoxes.click(function(){ >var check = (allBoxes.length == allBoxes.filter > (':checked').length) ? 'checked' : ''; > $('#checkall').attr('checked', check); > }); > > cheers, > - ricardo > Wow, thanks a lot. This is exactly what I want to achieve. -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia

[jQuery] Check all and uncheck all like the one in gmail

2008-12-10 Thread Donny Kurnia
all")).length)); }); I'd like to know about my code efficiency. Is it efficient or have many redundant selector? Is there another short and efficient way to achieve the expected behaviour, beside using class of course :) TIA -- Donny Kurnia http://hantulab.blogspot.com http://www.plurk.com/user/donnykurnia