Thursday, January 17, 2013
jQuery maintain position on postback / refresh
My friend asked me for a solution where he would be able to maintain scroll position on postback/refresh without altering the URL itself.
So I desited to make my first jQuery Plugin, it's very simple but it works:
maintainPosition
Labels:
javascript,
jquery,
project
Tuesday, December 18, 2012
Android mk808 wifi fix - solutions
I've had a lot of problems with WiFi drops on my mk808 and it had been bugging me a lot, I have tried "all" the solutions I could find, and my mk808 is finally running like a dream with stable WiFi.
This is the fixes I've tried, ordered by the easiest to do:
This is the fixes I've tried, ordered by the easiest to do:
Monday, October 1, 2012
Multiple ssl sites on one ip iis 7
I found this great tool which enables you to change the host header without using the command prompt
http://www.simplygoodcode.com/2012/09/configure-iis-ssl-host-header-using-ui.html
Wednesday, September 12, 2012
Saturday, December 31, 2011
Thursday, August 18, 2011
Center a new popup window even on dualscreen with javascript
function PopupCenter(url, title, w, h) { // Fixes dual-screen position Most browsers Firefox var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; var left = ((width / 2) - (w / 2)) + dualScreenLeft; var top = ((height / 2) - (h / 2)) + dualScreenTop; var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); // Puts focus on the newWindow if (window.focus) { newWindow.focus(); } }
Labels:
javascript,
programming
Wednesday, January 19, 2011
Viber app - Free calls/sms on your mobile phone
This app allows you to call "free" to any other viber users - you need a data package, but who haven't got one ;)
The app will come for Android soon, and another great upcoming feature is the free sms app, you can see much more on: http://www.viber.com/
I can't wait to get it on my Android phone, if you have tried the product, pleas leave a comment, pros/cons?
Update: It is finally here, I have just testet texting and calling, this could get big!
The app will come for Android soon, and another great upcoming feature is the free sms app, you can see much more on: http://www.viber.com/
I can't wait to get it on my Android phone, if you have tried the product, pleas leave a comment, pros/cons?
Update: It is finally here, I have just testet texting and calling, this could get big!
Thursday, January 13, 2011
Welcome to my new blog!
I've decided to convert my dotnetblogengine to a blogspot blog, and I have bought a new name for the blog, in the same process.
The reason I bought a new domain name, is because i wanted something shorter, and i was able to make it quite short and with my initials in it TF, the x represents the unknown parameter.
Why i choose blogspot is because nearly all my other products is google, and they work very well together, so it was a natural choice, another selling point was that I don't have to "mange" my own application anymore.
The blog is far from done yet! ..I will give it a new design soon, and much more to come. I will also start blogging a bit more again, the reason why i haven't blogged this much recently, is because I was very tired of the "trouble" I had to go to, just to write a blog.
All posts older than this, is directly imported from my old blog frostyzone.net.
The reason I bought a new domain name, is because i wanted something shorter, and i was able to make it quite short and with my initials in it TF, the x represents the unknown parameter.
Why i choose blogspot is because nearly all my other products is google, and they work very well together, so it was a natural choice, another selling point was that I don't have to "mange" my own application anymore.
The blog is far from done yet! ..I will give it a new design soon, and much more to come. I will also start blogging a bit more again, the reason why i haven't blogged this much recently, is because I was very tired of the "trouble" I had to go to, just to write a blog.
All posts older than this, is directly imported from my old blog frostyzone.net.
Labels:
private
Wednesday, December 15, 2010
jQuery Treeview persist preSelected
This is another addition to the jQuery treeview plugin, developed by Jörn Zaefferer
My old addition to the script can be found here Ignore query in jQuery treeview persist location (i think it has been handled in his version too)
It is still a "problem" with persist, this time I output the menu with the item already selected by the class selected.
But when this is done, it wont expand to the item I have pre selected, that is why I made this little addition:
i just copied the location method and replaced this:
The only thing left to do is to add the class preSelected to the selected item, when you output the treeview.
My old addition to the script can be found here Ignore query in jQuery treeview persist location (i think it has been handled in his version too)
It is still a "problem" with persist, this time I output the menu with the item already selected by the class selected.
But when this is done, it wont expand to the item I have pre selected, that is why I made this little addition:
case "preSelected": var current = this.find("a.preSelected"); if ( current.length ) { // TODO update the open/closed classes var items = current.addClass("selected").parents("ul, li").add( current.next() ).show(); if (settings.prerendered) { // if prerendered is on, replicate the basic class swapping items.filter("li") .swapClass( CLASSES.collapsable, CLASSES.expandable ) .swapClass( CLASSES.lastCollapsable, CLASSES.lastExpandable ) .find(">.hitarea") .swapClass( CLASSES.collapsableHitarea, CLASSES.expandableHitarea ) .swapClass( CLASSES.lastCollapsableHitarea, CLASSES.lastExpandableHitarea ); } } break;
i just copied the location method and replaced this:
var current = this.find("a").filter(function() { return this.href.toLowerCase() == location.href.toLowerCase();with var current = this.find("a.preSelected")
The only thing left to do is to add the class preSelected to the selected item, when you output the treeview.
Labels:
javascript,
jquery,
plugin,
programming
Thursday, August 12, 2010
Tranformice - tips & tricks
I've been playing this very addictive game for a while now: http://transformice.com/en/ ..it is very simple, get to the cheese and then into the hole.
But there is some ways you can improve your chances to get the cheese first, here are some videos and stuff:
But there is some ways you can improve your chances to get the cheese first, here are some videos and stuff:
Labels:
humor
Wednesday, July 28, 2010
Hilarious youtube error message
I got this message when i played around with the audio tracks, on one of my Youtube video.
This is one of the most hilarious error messages I have ever seen!
Labels:
humor
Thursday, July 8, 2010
Youtube Leanback - The perfect party jukebox
People with a little media center like me, will be happy for YouTubes newest initiative: Leanback
It is possible to see a little explanation here:http://www.youtube.com/watch?v=bITse42LpKA
So people can quickly do youtube searches without it all stops when the song is finished, canon solution!
It is possible to see a little explanation here:http://www.youtube.com/watch?v=bITse42LpKA
So people can quickly do youtube searches without it all stops when the song is finished, canon solution!
Labels:
tools
Wednesday, April 28, 2010
HTC Desire tips & tricks
Add these folder to the SD card and put the music you want for notifications, ringtones and alarms:
- media/audio/notifications
- media/audio/ringtones
- media/audio/alarms
If you want to have more of the features the Nexus One have, this is a awesome blog: http://nimbu.amorvi.com/
Labels:
mobile
Got my HTC Desire
I finally got my HTC Desire from telmore, and i must say it's an awesome mobile phone!
But there is some tips and tricks that is good to know, and I'll blog some of them I found useful
But there is some tips and tricks that is good to know, and I'll blog some of them I found useful
Thursday, March 4, 2010
jQuery carousel lite with dynamic paging
sorry for the missing description. I will might but it on later
http://groups.google.com/group/jquery-en/browse_thread/thread/9fec8a1746945bd2
Still needs to be able to select current when using prev/next
Resources
http://www.gmarwaha.com/jquery/jcarousellite/http://groups.google.com/group/jquery-en/browse_thread/thread/9fec8a1746945bd2
index.htm
<script src="jcarousellite_1.0.1.min.js" type="text/javascript"></script> <ul class="paging"></ul>
// build links var itemArray = new Array(); $('.carousel ul').each(function(i) { var carouselNavDivs = $('ul.paging'); $(carouselNavDivs[i]).append('<li class="prev"><a><<</a></li>'); $(this).children().each(function(j) { itemArray[j] = "." + j; var linkNum = 0; linkNum = j + 1; $(carouselNavDivs[i]).append("<li class='" + j + "'><a>" + linkNum + "</a></li>"); }); $(carouselNavDivs[i]).append('<li class="next"><a>>></a></li>'); }); $(function() { $(".carousel").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", btnGo: itemArray, circular: false, visible: 1 }); });
jcarousellite_1.0.1.min.js
if (o.btnGo) $.each(o.btnGo, function(i, val) { $(val).click(function() { $.each(o.btnGo, function(i, val) { $(val).removeClass('active'); }); $(this).addClass('active'); return go(o.circular ? o.visible + i : i); }); });
Still needs to be able to select current when using prev/next
Labels:
jquery,
programming
Subscribe to:
Posts (Atom)