I'll use firebug.

JavaScript can be seen here: http://css-tricks.com/dynamic-dropdowns/

On Tuesday, 26 June 2012 10:18:47 UTC-3, NSC wrote:
>
> +10 for Firebug - I couldn't survive without it. 
>
> Posting your JavaScript here will help us help you. 
>
>
>
> On Jun 26, 2012, at 12:42 AM, Primoz Anzur <stormchas...@gmail.com> wrote:
>
> Welp;
> If the second dropdown isn't populated is because there's an error in 
> Javascript. Equip Firebug and monitor request calls and see what's going 
> on. 
> You might also want to look at Web Developer's toolbar to quickly take 
> apeek into if you have any JS errors and such.
>
> On Tue, Jun 26, 2012 at 3:55 AM, Tomas Schertel <tscher...@gmail.com>wrote:
>
>> When I browse my select url, I got 
>> <option value="chips">Chips</option><option 
>> value="cookies">Cookies</option>
>>
>> And I see in web.py's internal server a 200 - OK status.
>>
>> But somehow this result doesn't populate my second dropdown select.
>>
>>
>> On Monday, 25 June 2012 08:18:50 UTC-3, Wolfpaws wrote:
>>>
>>> Um.
>>> You still haven't elaborated what "doesn't work" means in this context. 
>>> Explain what exactly doesn't work and how it doesn't work...
>>>
>>> On Sun, Jun 24, 2012 at 7:54 PM, Tomas Schertel <tscher...@gmail.com>wrote:
>>>
>>>> I don't know how it can influence, but my python code returns the same 
>>>> in page and in sources:
>>>>
>>>> <option value="chips">Chips</option><o****ption 
>>>> value="cookies">Cookies</optio****n>
>>>>
>>>> The http://css-tricks.com/**examples/DynamicDropdown/**
>>>> getter.php?choice=beverages<http://css-tricks.com/examples/DynamicDropdown/getter.php?choice=beverages>select
>>>>  returns two different thigs:
>>>>
>>>> Coffe
>>>> Coke
>>>>
>>>> Is shown in page. But page's source is this:
>>>>
>>>>
>>>> <option>Coffee</option><option****>Coke</option>
>>>>
>>>>
>>>>
>>>> On Sunday, 24 June 2012 14:29:11 UTC-3, Wolfpaws wrote:
>>>>>
>>>>> wait; You're telling us, that the output is correct.
>>>>> What does the "doesn't work at all" means in this context? Do you have 
>>>>> any javascript errors, since I can somehow assume, that you pull the 
>>>>> content from the web.py page result; Look into your javascript page.
>>>>>
>>>>> On Sun, Jun 24, 2012 at 6:36 PM, Tomas Schertel 
>>>>> <tscher...@gmail.com>wrote:
>>>>>
>>>>>> You can see what select returns here http://css-tricks.com/**examples
>>>>>> **/DynamicDropdown/**getter.php?**choice=beverages<http://css-tricks.com/examples/DynamicDropdown/getter.php?choice=beverages>
>>>>>>
>>>>>>
>>>>>> On Sunday, 24 June 2012 12:07:31 UTC-3, Wolfpaws wrote:
>>>>>>>
>>>>>>> I've looked into the PHP tutorial, and it's seems, that it's 
>>>>>>> skipping a lot of HTML code and goes straight to the point, how you get 
>>>>>>> records from the database.
>>>>>>> It's also skipping the point, that you need to use <select</select> 
>>>>>>> for a dropdown to be even initialized...
>>>>>>>
>>>>>>> On Sun, Jun 24, 2012 at 1:30 PM, Franck <franck.pe...@gmail.com>wrote:
>>>>>>>
>>>>>>>> Can you post the full HTML code generated by your database select ?
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Jun 21, 2012 at 6:33 AM, Tomas Schertel <
>>>>>>>> tscher...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I'm trying to implement a dynamic dropdown with web.py but I can't 
>>>>>>>>> get it working.
>>>>>>>>> I'm using this tutorial: http://css-tricks.com/dynamic-******
>>>>>>>>> dropdowns/ <http://css-tricks.com/dynamic-dropdowns/>
>>>>>>>>> I'll try to explain what happens...
>>>>>>>>> I made a test page that returns my database select. My GET 
>>>>>>>>> function returns this on screen AND as page's source:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> <option value="chips">Chips</option><**o****ption 
>>>>>>>>> value="cookies">Cookies</**optio****n>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> When I browse the tutorial's PHP page [1], this page shows this:
>>>>>>>>>
>>>>>>>>>  Coffe
>>>>>>>>> Coke
>>>>>>>>>
>>>>>>>>> But page's source is this:
>>>>>>>>>
>>>>>>>>> <option>Coffee</option><option******>Coke</option>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> My dorpdown doesn't work at all.
>>>>>>>>> Maybe someone has had some similar problem.
>>>>>>>>>
>>>>>>>>> Thanks.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> [1] - 
>>>>>>>>> http://css-tricks.com/**examples****/DynamicDropdown/**getter.php?**ch**oice=beverages
>>>>>>>>>  
>>>>>>>>> <http://css-tricks.com/examples/DynamicDropdown/getter.php?choice=beverages>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  -- 
>>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>>> Groups "web.py" group.
>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>> https://groups.google.com/d/**ms****g/webpy/-/rcWTp9TVYkUJ<https://groups.google.com/d/msg/webpy/-/rcWTp9TVYkUJ>
>>>>>>>>> .
>>>>>>>>> To post to this group, send email to webpy@googlegroups.com.
>>>>>>>>> To unsubscribe from this group, send email to webpy+unsubscribe@**
>>>>>>>>> googlegroups****.com <webpy%2bunsubscr...@googlegroups.com>.
>>>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>>>> group****/webpy?hl=en <http://groups.google.com/group/webpy?hl=en>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>>
>>>>>>>>  -- 
>>>>>>>> You received this message because you are subscribed to the Google 
>>>>>>>> Groups "web.py" group.
>>>>>>>> To post to this group, send email to webpy@googlegroups.com.
>>>>>>>> To unsubscribe from this group, send email to webpy+unsubscribe@**
>>>>>>>> googlegroups****.com <webpy%2bunsubscr...@googlegroups.com>.
>>>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>>>> group****/webpy?hl=en <http://groups.google.com/group/webpy?hl=en>.
>>>>>>>>
>>>>>>>
>>>>>>>  -- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "web.py" group.
>>>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>>>> **ms**g/webpy/-/TthUC7LpQl0J<https://groups.google.com/d/msg/webpy/-/TthUC7LpQl0J>
>>>>>> .
>>>>>>
>>>>>> To post to this group, send email to webpy@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to webpy+unsubscribe@**
>>>>>> googlegroups**.com <webpy%2bunsubscr...@googlegroups.com>.
>>>>>> For more options, visit this group at http://groups.google.com/**
>>>>>> group**/webpy?hl=en <http://groups.google.com/group/webpy?hl=en>.
>>>>>>
>>>>>
>>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "web.py" group.
>>>> To view this discussion on the web visit https://groups.google.com/d/**
>>>> msg/webpy/-/d9P_Psd08psJ<https://groups.google.com/d/msg/webpy/-/d9P_Psd08psJ>
>>>> .
>>>>
>>>> To post to this group, send email to webpy@googlegroups.com.
>>>> To unsubscribe from this group, send email to webpy+unsubscribe@**
>>>> googlegroups.com <webpy%2bunsubscr...@googlegroups.com>.
>>>> For more options, visit this group at http://groups.google.com/**
>>>> group/webpy?hl=en <http://groups.google.com/group/webpy?hl=en>.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "web.py" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/webpy/-/2JZUSopgFkcJ.
>>
>> To post to this group, send email to webpy@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> webpy+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/webpy?hl=en.
>>
>
>  -- 
> You received this message because you are subscribed to the Google Groups 
> "web.py" group.
> To post to this group, send email to webpy@googlegroups.com.
> To unsubscribe from this group, send email to 
> webpy+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/webpy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/vSYbtD9URBoJ.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to