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 12-22-2008, 09:47 PM   #1
Big_D
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.....
Big_D is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2008, 09:56 PM   #2
TheDoc
Too lazy to set a custom title
 
TheDoc's Avatar
 
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>
Then you can do your code, and spit the proper header content-type out. Allowing you to start and stop the needed php in the xml for the nats strings, or anything else code wise you want to do.
__________________
~TheDoc - ICQ7765825
It's all disambiguation
TheDoc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2008, 10:05 PM   #3
Big_D
CRAZY MOFUKKA
 
Industry Role:
Join Date: Jun 2006
Posts: 3,296
Quote:
Originally Posted by TheDoc View Post
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>
Then you can do your code, and spit the proper header content-type out. Allowing you to start and stop the needed php in the xml for the nats strings, or anything else code wise you want to do.
no go man.....

tour pages are encoded .php files, template files are .xsl files used by the system, cool if i hit you up on icq?
Big_D is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2008, 10:08 PM   #4
brandonstills
Confirmed User
 
brandonstills's Avatar
 
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.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2008, 10:44 PM   #5
tical
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
tical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2008, 10:45 PM   #6
tical
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
tical 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.