Johnny G Junior's NoteBook Treasures: 2011

Saturday, December 31, 2011

Understanding JQuery STuff

Adventuring into JQuery.

1. Download Jquery...
2. Then to use it in your html. you need this in your <-head->





This will import it into your page.

3. you need to set up an area now to create a script. this will also go in your <-head->







4. Next this is a sample of a click caller. this goes in your <-script->

$(document).ready(function(){
$(this).addClass("price").click(function(){
alert("Hello World! "); });
});


this says... we register a "ready" event for the document.

use the class called "price" add a click to it and when clicked, pop up a message "Hello World!".

FIN!

Friday, October 28, 2011

Handy Click to call Html Tag


0000000000




All you have to do is change the 0's to the actual number you want and BOOM. You's a callin people.


FIN!

Monday, October 24, 2011

Mobile Website not going fullscreen??



The 2 codes below will make your Mobile html fullscreen.

Place this in this inbetween your "head" < head >< /head > tag

 <META name=viewport content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;">   



so what did we write?
The metatag "apple-mobile-web-app-capable" is a default behavior to use Safari to display web content. This will set the html to fullscreen.


So what is the metatag "Viewport"?
This tag is used to improve your presentation. Lets breakdown the parameters and see how its used.

content: set the content size.
Scale: by setting the scale to 1, the browser assumes the width and height is set by the device's height and width.

width: [NUMBER] default is 980. ("device-width" = Width of device. )
height: [NUMBER]("device-height"= Height of device)
minimum-scale: [NUMBER] default is .25. the min the site could be scaled.
maximum-scale: [NUMBER] default is 1.6. range 0-10.0. the max the site could be called up.
initial-scale: [NUMBER] the intial scale of the site.
user-scalable: [no/yes] default is yes. can the users scale the page.

Wednesday, August 10, 2011

where are you spaces? PHP / MYSQL

so you have an entry in your MYSQL database that has a space.

for example in your field named ProjectName you have the entry "Fire Cards".
when it gets returned into PHP, you may experience this:

result: Fire

you see that the entry is in mysql but for some reason its stops at the space. WHAT IS THE DEAL WITH THAT.. don't worry, here is your fix.

rawurlencode(); 

//  keeps the spaces in and turns it to %20

urldecode(); 

//  converts %20 to an actual space.


you used this like this. rawurlencode(THIS ITEM);

Heres how it works. if i want to find the result of ProjectName it would look like this.
 While($row = mysql_fetch_array($result)){  
   
 $projectName = rawurlencode($row['ProjectName']);  
   
 }  
   
 echo $projectName;  
   
 the result: Fire%20Cards  
   
 }  


Now to get it to display the space as a "space" add urldecode after you get it out of MYSQL with the rawurlencode.

 While($row = mysql_fetch_array($result)){  
   
 $projectName = rawurlencode($row['ProjectName']);  
   
 $projectName = urldecode($projectName);  
   
 }  
   
 echo $projectName;  
   
   
   
 the result: Fire Cards  
   
 }  


hope this saved your world from blowing up. Im out.

Thursday, July 21, 2011

After FX - Render Layers

So you have a big clip that you need to break apart. heres a really big time saver.


Big up's to the script writer.. WHAT WHAT!

Saturday, June 11, 2011

Shortcuts.

CTRL-Backspace - delete line + Vertex

Thursday, June 9, 2011

HD Formats - Center Cut Vs. Bars

Below is a 2 methods of converting HD to SD (Standard Def). You choose which one is appropriate for your production.