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")...
I am trying to add hide/show select boxes on my page. The way it should work is that when I select a category, associated sub-category select box will show up, otherwise no sub-category select box is shown. my trouble is that I can't get sub-category select box show up when i select proper...
I am trying to select the recent entries(last 5 entries in the table) and display on the website,right now I am not sure how I can do that.
here is my resultset:
my $searchResult = $c->model( 'GuestBook::Entry' )->search(
{
entry=>{ '>=' => 2 }
},
{...
I am trying to convert ctime to ymd format in my resultset, since I have 15 entries from my "email" table, i need to loop through all 15 entries, I am not sure how I can loop through it, can anyone help me on this:
my $start = DateTime->now->subtract( days => 15 );
my $end = DateTime->now;
my...
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.