o all jQuery developer and
jQuery UI contributor.
--
Donny Kurnia
http://blog.abifathir.com
http://hantulab.blogspot.com
http://www.plurk.com/user/donnykurnia
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
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
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
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
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
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
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
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
: 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
/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
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
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
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
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
é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
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
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
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
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
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
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
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
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
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
l. For alert replacement, try http://abeautifulsite.net/notebook/87
--
Donny Kurnia
http://hantulab.blogspot.com
http://www.plurk.com/user/donnykurnia
"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'] = $
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
" 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
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
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
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
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
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
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
,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
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
>
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
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
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
40 matches
Mail list logo