| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 CRAZY MOFUKKA 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2006 
				
				
				
					Posts: 3,296
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Carrying the Nats Variable in XSL - Javascript Gurus Please Help
			 
			Ok, so I have learned xsl over the last few weeks and I am putting a new tour together that utilizes xsl for the themeing engine. XSL is a client side programming language where php is a server side programming language. With that being said, I am having a difficult time finding the right javascript to carry the variable from the nats url to my links within the tour. Anyone got a resolution for this? 
		
	
		
		
		
		
		
	
	For those of you who are going to tell me to allow php to be run on my xsl documents, that has already been approached. Doesn't work...... I am all ears and thanks for your time guys.....  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jul 2001 
				Location: Currently Incognito 
				
				
					Posts: 13,827
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 The xml file, should really be a php file.. just named .xml 
		
	
		
		
		
		
			You can set that in your htaccess file with this. Code: 
	Options -indexes <Files xml> ForceType application/x-httpd-php </Files> 
				__________________ 
		
		
		
		
	
	It's all disambiguation ![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 CRAZY MOFUKKA 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2006 
				
				
				
					Posts: 3,296
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 tour pages are encoded .php files, template files are .xsl files used by the system, cool if i hit you up on icq?  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2007 
				Location: Chatsworth, CA 
				
				
					Posts: 1,964
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 XSL is not a client side language.  It can be run anywhere.  It's homoiconic so you can even run XSL in XSL. 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2002 
				Location: Las Vegas 
				
				
					Posts: 6,504
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Code: 
	<script>
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  }
  alert('Query Variable ' + variable + ' not found');
}
</script>
				__________________ 
		
		
		
		
	
	112.020.756  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2002 
				Location: Las Vegas 
				
				
					Posts: 6,504
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 oh btw, for all the coders out there... 
		
	
		
		
		
		
			www.experts-exchange.com is the best thing since sliced bread for when you get stuck on a problem 
				__________________ 
		
		
		
		
	
	112.020.756  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |