View Single Post
Old 07-10-2007, 02:03 PM   #1 (permalink)
JohnnyOhhh
Recruit
 
Join Date: Jul 2007
Posts: 2
JohnnyOhhh is on a distinguished road
Help Please!: form populated link with javascript?

Ok, so... Im in the middle of putting together a gadget for windows sidebar and everything upto this point has gone very smoothly (although time consuming). Now I have run into a road block. I would like to avoid using php if at all possible... if I were to use php this is what the code would look like:

Code:
<?php
$cat = $_POST['category'];
$subcat = $_POST['category'];

include ('/resources/' . $cat . '/' . $subcat . '/index.html');
$cat;
$subcat;
?>
then just have the link manifest itself, unfortunately I have NO idea how to do this in javascript and as I am developing a windows "gadget" I would prefer to have it run completely locally.

Last edited by JohnnyOhhh; 07-10-2007 at 02:05 PM. Reason: (I would prefer not to have to get everyone to load PHP onto their machines for my gadget to work!)
JohnnyOhhh is offline   Reply With Quote