ajax – I'm Knight https://imknight.net From Freelancer to Bootstrapper Mon, 16 Jan 2017 14:12:43 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 Tips for using jQuery Load https://imknight.net/development/tips-for-using-jquery-load/ https://imknight.net/development/tips-for-using-jquery-load/#respond Tue, 14 Jun 2011 17:16:46 +0000 https://imknight.net/?p=2386 jQuery is one of my favorite JavaScript framework, I started my ajax experience by using xajax and I even ajaxed one of the open source project – Lilina , then I try to learn...

The post Tips for using jQuery Load appeared first on I'm Knight.

]]>
jQuery is one of my favorite JavaScript framework, I started my ajax experience by using xajax and I even ajaxed one of the open source project – Lilina , then I try to learn about mooltools , but I can never manage it, I thought my ajax path is closed , until I start using jQuery .

My latest 2 project involved lots of jQuery , which remind me the old day when I start working on ajax and I even digging out some of the ajax tips that I already forgotten, so just want to share some of the basic tips for one of the basic jQuery function – load .
[unordered_list style=”tick”]

  • You can load partial content , example the file that I going to load might have 2 div , I can just load the second part of content, which allow me to put all these partial content in a single file.
    $('#content').load('contact.html #div2');
  • You should always load the content with dynamic number at the end of url , this prevent the browser cache the content, this is pretty obvious on IE , you might miss it if you using Firefox or Chrome.
    $('#content').load('contact.html/'+new Date().getTime()
  • Remember to make use of call back function , this allow you to perform a follow up action when the content is finishing loading. If not your next action might start before the content is complete loaded.
    $('#content').load('contact.html'+new Date().getTime(), function() { alert('Load was performed.');})
  • You can’t load a remote content/image which is out of your domain, the content won’t load and you will see some error message on Firefox/Chrome console, but you can trick it by loading piece of html with remote image.
    $('#content').load('<img src="remote img url">');
  • The above method won’t work if you need to perform a follow up action once the image finish loading, the alternative solution is this.
    $('#content > img').attr('src', img).load(function() { alert('Image Load was performed.'); }
  • One weird thing happen for above method on Firefox, it seem like Firefox will actually load twice for this code , compare to other browser which only load once, so I added a counter for Firefox browser to resolved this.

[/unordered_list]

Share with me in the comments if you have any extra tips for using jQuery load !

The post Tips for using jQuery Load appeared first on I'm Knight.

]]>
https://imknight.net/development/tips-for-using-jquery-load/feed/ 0
Ajax WordPress Theme is Out ! https://imknight.net/wordpress/ajax-wordpress-theme-is-out/ https://imknight.net/wordpress/ajax-wordpress-theme-is-out/#comments Sun, 13 Nov 2005 12:42:38 +0000 https://imknight.net/2005/11/13/ajax-wordpress-theme-is-out/ I been away for 2 day just came back from jb and i found the ajax wordpress theme – bloxpress is out ! if you want you can download it  or play with the...

The post Ajax WordPress Theme is Out ! appeared first on I'm Knight.

]]>
I been away for 2 day just came back from jb and i found the ajax wordpress theme – bloxpress is out !

if you want you can download it  or play with the demo  and don’t forget to join in the domain list if you plan to use this theme.

so far i think the theme is quite good, it can be drag and drop all the block , drag some service example like flickr and notes to put as a block on the themes , the whole theme seem like an application, but the downsite its i feel the theme seem like on heavy load, i think that might be due to lots of ajax at the background.

P/S i just try this theme on this blog and it seem not so heavy load as compare to the demo i try, but this raise another question, it the theme heavy load due to lots of visitor ? althought not so heavy load but i believe it should be able to be more lightweight ..

The post Ajax WordPress Theme is Out ! appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/ajax-wordpress-theme-is-out/feed/ 12
Ajax Winamp Remote Control https://imknight.net/web-o-matic/ajax-winamp-remote-control/ https://imknight.net/web-o-matic/ajax-winamp-remote-control/#comments Tue, 25 Oct 2005 13:03:46 +0000 https://imknight.net/?p=603 Ajax has been a hot topic recently and now someone develop a plugin which allow you to remote control winamp … by browser ! give it a try this plugin , remote control the...

The post Ajax Winamp Remote Control appeared first on I'm Knight.

]]>
Ajax has been a hot topic recently and now someone develop a plugin which allow you to remote control winamp … by browser ! give it a try this plugin , remote control the winamp on your personal computer by your notebook .. hahah sound silly ..

It utilizes AJAX (Asynchronous Javascript & XML) techniques to create a remarkably realistic self-updating facsimile of the Winamp interface right in browser

ajaxamp.jpg 

The post Ajax Winamp Remote Control appeared first on I'm Knight.

]]>
https://imknight.net/web-o-matic/ajax-winamp-remote-control/feed/ 2
Ajax-ed Lilina Release https://imknight.net/project/ajax-ed-lilina-release/ https://imknight.net/project/ajax-ed-lilina-release/#comments Mon, 12 Sep 2005 14:42:55 +0000 https://imknight.net/2005/09/12/ajax-ed-lilina-release/ As i mention before , i ajaxed lilina-head , finally i clean out the code and able to release it a demo is able to view here , you can download to give it...

The post Ajax-ed Lilina Release appeared first on I'm Knight.

]]>
As i mention before , i ajaxed lilina-head , finally i clean out the code and able to release it

a demo is able to view here , you can download to give it a try ..

i add in these since last demo

  • adding the loading image to show the script is loading
  • added back the furl bookmark icon
  • update delicious and furl icon
  • polish the code

boringest did mention its a bit slow for the loading, i realiase only for the first time loading is slow, after that seem ok, do email me if any bug found ..

i don’t add in too much thing, other then ajaxed the lilina, but after this version i start to change the whole lilina in my own way .. maybe call it Jaxlina ? hehe

The post Ajax-ed Lilina Release appeared first on I'm Knight.

]]>
https://imknight.net/project/ajax-ed-lilina-release/feed/ 23
Ajax-ed Lilina https://imknight.net/project/ajax-ed-lilina/ https://imknight.net/project/ajax-ed-lilina/#comments Sun, 04 Sep 2005 02:33:58 +0000 https://imknight.net/?p=543 When i talk about my project list long time ago, boringest mention about doing ajax on lilina-head . Since i was playing a bit on xajax that time , i actually testing to apply...

The post Ajax-ed Lilina appeared first on I'm Knight.

]]>
When i talk about my project list long time ago, boringest mention about doing ajax on lilina-head .

Since i was playing a bit on xajax that time , i actually testing to apply the ajax on lilina-head , at first i just testing to add a feed by ajax , after that i was thinking how about ajax-ed the front-end of lilina-head ?

so the project start , i break the whole front page into small function .. after that rebuild all in a class and build the ajax-ed lilina , this is my demo, once i clean out the code , i will put up the package for download.

todo list 

  • build loading logo – this been mention in mistake of Ajax
  • tweak the code – now the demo site is holding 20++ feed, it seem like the max once over the limit the whole thing become very slow

pls feedback to me if you found any bug, this is my first ajax project, i m still quite new on this.

The post Ajax-ed Lilina appeared first on I'm Knight.

]]>
https://imknight.net/project/ajax-ed-lilina/feed/ 4