Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-28-2009, 06:07 AM   #1
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
smart javascript bastards ---->

i'm trying to use this script here, it's a jquery thing that pretties up forms http://www.no-margin-for-errors.com/...ttyCheckboxes/

so i follow the instructions which say to include the jquery and prettycheckboxes js files in the head section

then it says:

Then you need to initalize prettyCheckboxes.


Code:
$(document).ready(function(){
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
i looked at the source of the demo page, that code isn't in there. i looked in the js file, prettycheckboxes - not there. where do i put it?
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:16 AM   #2
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
Put the left leg in, put the right leg out, put the right leg in, and shake it all about.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:17 AM   #3
ScriptWorkz
Confirmed User
 
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
Quote:
Originally Posted by Mutt View Post
i'm trying to use this script here, it's a jquery thing that pretties up forms http://www.no-margin-for-errors.com/...ttyCheckboxes/

so i follow the instructions which say to include the jquery and prettycheckboxes js files in the head section

then it says:

Then you need to initalize prettyCheckboxes.


Code:
$(document).ready(function(){
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
i looked at the source of the demo page, that code isn't in there. i looked in the js file, prettycheckboxes - not there. where do i put it?
you can put it in your head tag between some script tags, or in it's own js file and include it with a script tag...

Code:
<script type='text/javascript'>
<!--
$(document).ready(function(){
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
//-->
</script>
Code:
<script type='text/javascript' src='/path/to/file.js'></script>
also, i think $('input[type=checkbox],input[type=radio]').prettyCheckboxes(); should be $('input[@type=checkbox],input[@type=radio]').prettyCheckboxes(); if it's not too early and i'm mistaken

Last edited by ScriptWorkz; 02-28-2009 at 06:18 AM..
ScriptWorkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:17 AM   #4
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by who View Post
Put the left leg in, put the right leg out, put the right leg in, and shake it all about.
i asked for smart bastards not old bastards
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:18 AM   #5
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
Quote:
Originally Posted by ScriptWorkz View Post
you can put it in your head tag between some script tags, or in it's own js file and include it with a script tag...

Code:
<script type='text/javascript'>
<!--
$(document).ready(function(){
	$('input[type=checkbox],input[type=radio]').prettyCheckboxes();
});
//-->
</script>
Code:
<script type='text/javascript' src='/path/to/file.js'></script>
ok thanks BUT why in the source of the demo page can't i find that initialization code?
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:20 AM   #6
fallenmuffin
Confirmed User
 
fallenmuffin's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 8,170
he has it on that page... its at the bottom before his tracking code ;)

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#checkboxDemo input[type=checkbox],#radioDemo input[type=radio]').prettyCheckboxes();
$('.inlineRadios input[type=radio]').prettyCheckboxes({'display':'inline'});
});
</script>
fallenmuffin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:24 AM   #7
Mutt
Too lazy to set a custom title
 
Mutt's Avatar
 
Industry Role:
Join Date: Sep 2002
Posts: 34,431
arghhhhhh - i need sleep - i didn't see it down there.

thanks!
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
Mutt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-28-2009, 06:27 AM   #8
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
Quote:
Originally Posted by Mutt View Post
arghhhhhh - i need sleep - i didn't see it down there.

thanks!
I hope the hokey pokey will cheer you up. Look I'll hold you hand and let's do it together!
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.