| 
	
 | 
 Posted by Jon on 05/03/06 00:55 
"Andy Jeffries" <news@andyjeffries.co.uk> wrote in message  
news:pan.2006.05.02.21.42.07.505570@andyjeffries.co.uk... 
> On Tue, 02 May 2006 13:47:08 -0700, Regenuluz wrote: 
>> I'm pretty sure AJAX would be the best choice here. And the only one I  
>> can 
>> think of, where you don't have to reload the entire page. 
> 
> You could also use a regular Javascript data structure within <script> 
> tags dynamically printed/echoed using PHP, then filter the data structure 
> using Javascript to only display the relevant items. 
> 
> However, it could make page weight enormous, so it may not be possible 
> with your dataset (plus you may not like the idea of your dataset being 
> easily viewable, although anyone can read the AJAX source and pull it 
> using a script if they're interested so neither way is secure). 
> 
> I do, however, agree with Regenluz that AJAX would be the best solution, 
> but in case writing custom AJAX code is out of your realm of abilities, 
> there is the way I suggest above. 
> 
> Cheers, 
> 
> 
> Andy 
> 
> 
> --  
> Andy Jeffries MBCS CITP ZCE   | gPHPEdit Lead Developer 
> http://www.gphpedit.org       | PHP editor for Gnome 2 
> http://www.andyjeffries.co.uk | Personal site and photos 
> 
 
Yeah, that's definitely an option I considered - Bringing in all of the  
subcategories and running a case on the onchange event using the value  
they've passed in. But like you said, it makes the page pretty heavy having  
to bring in this data - plus, I need this same process to be run on a few  
different pages - and many times users aren't going to be updating the  
categories, so I just need them to stay the same but still be available. 
 
Looks like my options are down to: AJAX, making the category options a  
separate form/choice, or weighting my page down. 
 
AJAX might be out of my realm unfortunately - We do have some books, and I'm  
confident in my code, but I've never written any real-world stuff and I have  
until June 1 to have this project completed. Thanks for the info guys. If  
anyone else has suggestions, I'm always open :)
 
  
Navigation:
[Reply to this message] 
 |