I am trying to use appendChild() to append another div block to a previous div block. but for some reason I can't append to it.
here is my code:
<script type="text/javascript">
function getSubCat(Parent, Container) {
var parent = $(Parent);
var url =...
currently I need to return one of my stashed data in JSON format, I know I can use Catalyst::View::JSON, but I am not sure how to use this module in my app. Can anyone give me a hand: Here is the my code for stashing data:
package myApp::Controller::Admin::Category;
use strict;
use...
Dan, I used FireBug to detect any typo and called suparentChosen(), i still can't get it work. I have no clue why. I just got to use javascript, sorry about my lack of knowledge.
Johnny
right now when I select "Top Category", their proper sub-categories select box will show up, but when I click one sub-category (some sub-categories have children), their sub-category select box doesn't show up.
Sorry about the lack of information.
my application will have few level chained select box, select parent category, proper children category shows up, and the children category might have their children category as well. Right now I am trying to get sub-category's children show in the select...
Dan, I am trying to get sub-category of the child to work, but no luck, i am not sure if i am on a right track, would you mind to have a look
<script type="text/javascript" src="http://unbstudent:3000/static/js/effects.js"></script>
<script type="text/javascript"...
According to your suggestions, i have made these changes:
<script type="text/javascript">
function parentChosen (parenty) {
parent = $(parent);
var children = document.getElementsByClassName('child');
for (i = 0; i < children.length; i++) {
Element.hide(children[i])...
sorry about that, here is the client-side code:
<script type="text/javascript" src="http://unbstudent:3000/static/js/effects.js"></script>
<script type="text/javascript" src="http://unbstudent:3000/static/js/controls.js"></script>
<script type="text/javascript">
function parentChosen (parenty)...
yes I do have multiple sub-category select box, here is my whole code:
[% WRAPPER wrapper.tt %]
[%- PROCESS macros.tt -%]
<script type="text/javascript" src="[% c.uri_for("/static/js/effects.js") %]"></script>
<script type="text/javascript" src="[% c.uri_for("/static/js/controls.js")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.