Posts

Javascript variable into php variable

You can do it by setting url variables or session variables.   one way to do this is to pass the url like this <SCRIPT LANGUAGE=' JavaScript '> <!-- // var name="Dave"; var number=100; document.write('<a href="another_page. php ?name='+name+'&number='+number+'">another page</a>'); // --> </SCRIPT> from  http://www.iwdp.co.uk/pfv/javascript_to_php_PFV.htm then get the variables using  php <? php  $var1 = $_GET['name']; $var2= $_GET['number']; ?> you can do this via GET, POST, SESSION You could do this all on the same page if you wanted to by calling a  javascript  function that sets these variables and then  php  gets them.

aboutme

Learn about me

Gaia Flash Framework: Speed up Development for All Flash Sites

Image
For all you flash developers out there this is a real treat.  Gaia  is a flash framework that can speed up development drastically for your all flash sites. I can't wait to try and use this in on a project. It gives you a simple way to handle the navigation, transitions between pages, preloading and deeplinking.  Talk about a time saver. That's half a website right there. Oh…did I mention that it also handles  SEO . It uses an  XHTML  file that serves as both the  data source and the embed page for each page in your site.  The way the site is structured seems logical, and doesn't seem to get in your way of building a great web site. Here is a video that walks you through the framework :  Gaia Screencast Here is their website:  Gaia Website Here is the download page:  Gaia Download For those of you that have used this framework before, we would love to here your input on it.

What is AJAX

AJAX  offers users a seamless way to work with your interface, no waiting for whole pages to load.   jQuery  has a set of tools to make it super simple to implement.  We will walk you through how to use  jQuery  to connect to  PHP  so you can step up your user interface. What is AJAX plainly means that instead of waiting for the whole page to load, you can load only what you need to.   So if you only need to update one small text part of your site,  you don't have to worry about loading everything else on that page Working Example :  http://www.devirtuoso.com/2009/07/beginners-guide-to-using-ajax-with-jquery/

Overcoming Flash Validation Issues

Flash embedding that is compliant with the web standards has always been an issue as the code runs very long and it is very difficult to place Flash reliably. So, how to overcome validation issues of Flash object on a web page? Use jQuery's document ready function (JavaScript which is triggered when the DOM is loaded) . Have a look at the below code: jQuery Part $(document).ready(function(){ if ($.browser.msie) { $('#flashdiv').html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ width="468″ height="60″><param name="movie" value="yourflashfile.swf" /><param name="wmode" value="transparent"/></object>'); } else { $('#flashdiv').html('>object type="application/x-shockwave-flash" data="yourflashfile.swf" wmode="transparent" width="468″ height="60″></object>'); } }); Note: Please use the above code i...

CSS IMAGE PRELOADING...

 After placing the css in your stylesheet, insert this just below the body tag of your page: "". Whenever the images are referenced throughout your pages they will now be loaded from cache #preloadedImages { width : 0px ; height : 0px ; display : inline ; background-image : url ( path/to/image1.png ) ; background-image : url ( path/to/image2.png ) ; background-image : url ( path/to/image3.png ) ; background-image : url ( path/to/image4.png ) ; background-image : url ( ) ; }

Handy Tools for Websites Analysis

Image
Do you want to know what is your reputation across the web? If YES, than this post is dedicated to you. In this article you can find 11 tools for analyzing your website's reputation – stats, feeds, rankings etc. 1.  Quantcast Quantcast is one of the 3 major websites dedicated to website traffic and audience. Quantcast provides publishers, marketers and agencies unmatched capabilities to measure, organize, discover and transact based on directly-measured traffic and inferred audience data. 2.  Compete Compete is a site similar to Quantcast. Compete's ranking is based on the stats of +2.000.000 US citizens – this means that Compete is not so accurate outside of US. Anyway – check out Compete for your ranking and compare your results with your competitors'. 3.  Alexa Alexa is one of the first ranking websites with advanced data regarding target population, country rank and others. The problem with these statistics is that they are provided based o...