kabar916 Posted September 24, 2012 Share Posted September 24, 2012 Whats going on everyone. I cant figure out how to make second spry list to be dependent on the first, and the third spry field dependent on the second. The user must start on the first spry list. After selecting the year out of the dropdown list, spry list 2 becomes available and whatever is in this list is based on what was selected in the first list. Same goes for selection 3. For example: Lets say a user chooses the year 2009 from the first list, Option 2 will show a list of vehicle manufacturers that are within the category of 2009. The user chooses "Cheverolet". Option 3 will show a list of Cheverolet's vehicle models. The user then chooses the vehicles model and clicks "find parts". One thing to note, the complete page is not suppose to refresh, just the dependent spry list. The spry list are populated from a database in syql. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/ Share on other sites More sharing options...
ManiacDan Posted September 24, 2012 Share Posted September 24, 2012 Is there a reason you're using the word "spry"? Is that a web template that I'm not familiar with? This is ajax powered, most ajax tutorials focus on this exact topic (having a drop-down depend on values from another drop-down) Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380626 Share on other sites More sharing options...
Jessica Posted September 24, 2012 Share Posted September 24, 2012 Is there a reason you're using the word "spry"? Is that a web template that I'm not familiar with? I had that same question, I've seen several people using it lately and all I see on searching is an Adobe product? Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380633 Share on other sites More sharing options...
darkfreaks Posted September 24, 2012 Share Posted September 24, 2012 @Jessica it is a dreamweaver effect using javascript and css. http://www.communitymx.com/content/source/CDC72/ Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380694 Share on other sites More sharing options...
Jessica Posted September 24, 2012 Share Posted September 24, 2012 Ugh. Damn Dreamweaver. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380706 Share on other sites More sharing options...
kabar916 Posted September 25, 2012 Author Share Posted September 25, 2012 Yes it is from dreamweaver. i thought it was a universal word but i guess not. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380755 Share on other sites More sharing options...
Christian F. Posted September 25, 2012 Share Posted September 25, 2012 Well, since you haven't posted any code, we're unable to help you with your problem. I can give you one suggestion, however, and that is to drop using DreamWeaver. While it may produce passable HTML + CSS code, using it for anything dynamic is bad. Quite like trying to print a video on a t-shirt, using water colours. Proper programming requires an understanding of the problem, code and how the data is affected for each line. Applications lack this understanding, and can only do what they've been instructed to do. Even if this instruction is horribly wrong. Since those who made DW doesn't know anything about the application you're trying to design, or its problems, DW will be unable to produce proper code. Not to mention all of the insecurities I've witnessed for it, as it appears to be almost completely devoid of any security routines. Which is really bad. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380802 Share on other sites More sharing options...
ManiacDan Posted September 25, 2012 Share Posted September 25, 2012 Dreamweaver does not produce code that is usable by anything but dreamweaver. If you can't figure out how to do this (incredibly simple) task within dreamweaver, it can't be done until you stop using dreamweaver. Dreamweaver, like frontpage before it, is a tool for people who don't want to learn the underlying language or make something very complex. It stands up quick and dirty websites without any fancy features (as you've noticed). Learning PHP on your own will greatly increase your ability to solve these problems. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380818 Share on other sites More sharing options...
PFMaBiSmAd Posted September 25, 2012 Share Posted September 25, 2012 If you search the Internet for 'ajax php chained selects', you will find examples that you can examine of non-dreamweaver scripts showing how to do this. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1380825 Share on other sites More sharing options...
MargateSteve Posted September 27, 2012 Share Posted September 27, 2012 Can I just say that when I created my first dynamic site just over two years ago I used Dreamweavers point and click coding for it because I thought I would never be able to learn to do it myself. Very quickly I realised it was full of limitations and over complicated code that taught me some very bad habits. On top of that, the templating system is awful and any changes meant I had to upload all pages again. Now, although by no means an expert, everything I do is hand coded in Notepad++. The end result is I understand the code because I wrote it myself (which has made debugging so much easier) and the way I have set up my template file (using php includes) means 99.9% of sitewide changes only take one file upload. If I can learn to hand code dynamic sites ANYONE CAN!!! Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1381326 Share on other sites More sharing options...
ManiacDan Posted September 27, 2012 Share Posted September 27, 2012 Steve, you should try out EclipsePDT. It's free, and it's a real IDE. Quote Link to comment https://forums.phpfreaks.com/topic/268745-spry-with-php/#findComment-1381327 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.