Posts

jQuery to check if css custom checkbox has been checked -

i had build custom checkbox using following css: input[type="checkbox"] { display:none; } input[type="checkbox"] + label span { display:inline-block; width:19px; height:19px; margin:-1px 4px 0 0; vertical-align:middle; background:url("../image/checkbox.png") 0 -20px no-repeat; cursor:pointer; } input[type="checkbox"]:checked + label span { background:url("../image/checkbox.png") 0 -1px no-repeat; } however having problem in checking if checkbox checked or not following function: var radio_check = $('#one input[type="checkbox"]'); function add_color(element, color){ element.css('background-color', color); } function checkemailformat(){ if(emailreg.test(emailaddressval)) { add_color(email, red); } else { return true; } } function check_radio_checkb(){ ...

java - Unable to use hidden field value in JSP -

i have hidden field value want send action, sends null . <s:hidden property="systemid" name="systemid" id="systemid" value="1"/> i calling action this <s:url id="papa" value="alertpup?et_id=%{id}&et_busid=%{systemid}"></s:url> <s:a href="%{papa}"><s:property value="id" /></s:a> but et_busid field in bean null . instead of hidden try <s:set name="systemid" value="1"/> <s:url id="papa" value="alertpup?et_id=%{id}&et_busid=%{#systemid}"/>

doctrine - Double listing not working in Symfony 1.4 embedded form -

i'm struggling simple form working in symfony 1.4 backend module. the idea create embedded form (one many relation, inschrijvingen -> danser). each embedded form has 1 many many relation. (lessen) forms displays correctly doesn't save lessen_list. (many many relation) the danserform i'm embedding work on own. doesn't work when embedding inschrijvingenform. i tried following tutorial. didn't work me: http://inluck.net/blog/many-to-many-relations-in-embedded-form-in-symfony-1_4 my schema.yml inschrijving: actas: timestampable: ~ columns: voornaam: { type: string(100), notnull: true, minlength: 2 } achternaam: { type: string(100), notnull: true, minlength: 2 } straat: { type: string(100), notnull: true, minlength: 2 } nr: { type: string(5) } postcode: { type: int(9), notnull: true, minlength: 4 } gemeente: { type: string(100), notnull: true, minlength: 2 } land: { type: string(2), notnull: true, default: 'be...

c# - Windows Phone 7 Development Delay on Buttons -

i have created button in c# windows phone 7 development. contains animation , when clicked want animation shown, , button navigate next page. using thread.sleep(4000) crashes application , wondering how go this. is there way delay navigate code? private void batnballbtn_click(object sender, routedeventargs e) { navigationservice.navigate(new uri("/picturegame.xaml", urikind.relative)); } presumably animation storyboard . can navigate within storyboard's completed event. mystoryboard.completed += (s, e) => { mystoryboard.stop(); navigationservice.navigate(new uri("/picturegame.xaml", urikind.relative)); }; this way don't need predict how long animation take, making code more reusable, , don't have worry dealing multiple threads manually.

php - Why does select into fail when I specify a second column name when creating an event in mySql? -

when creating event, why undeclared variable: votetype when add second column select sql? not possible specify second column in sql statement? what's right way this? begin declare c varchar(2); declare velm int(10); declare vtype tinyint(1); select distinct(country) c votes; select votedelm velm, votetype vtype votes country = c; end that's because into syntax in second case expecting variable array destination. it's seeing velm, votetype array of variables, since votetype hasn't been declared 1 (because it's 1 of columns), exception. try way instead: select <columns> <variables> ... in case: select votedelm, votetype velm, vtype votes country = c; there examples in mysql reference into .

php - Facebook Graph Api: How do I retrieve a large image from a groups feed? -

when querying feed groups id can retrieve information fields picture , full_picture. after parsing data using json , php output of full_picture image small. here data im retrieving this use show data full_picture , picture if (isset($data->full_picture)) echo "<img src=\"$data->full_picture?\" /><br><br>"; if (isset($data->picture)) echo "<img src=\"$data->picture\" /><br><br>"; here output https://fbexternal-a.akamaihd.net/safe_image.php?d=aqbvmhfsrd2l-8ru&url=https%3a%2f%2ffbcdn-photos-e-a.akamaihd.net%2fhphotos-ak-ash3%2f935434_10151639263649134_680895879_s.jpg https://fbcdn-photos-e-a.akamaihd.net/hphotos-ak-ash3/935434_10151639263649134_680895879_s.jpg however have noticed if can end url in browser manually _s.jpg _n.jpg, displays full size. there must way output full size graph? have tried using facebook documentation , can find this not work trying :/ use s...

How to separate specific elements in string java -

example of want do: if pass in "abc|xyz" first argument , "|" second argument method returns list("abc","xyz") public list<string> splitit(string string, string delimiter){ //create , init arraylist. list<string> list = new arraylist<string>(); //create , init newstring. string newstring=""; //add string arraylist 'list'. list.add(string); //loops through string. for(int i=0;i<string.length();i++){ //stores each character string in newstring. newstring += string.charat(i); } newstring.replace(delimiter, ""); //remove string arraylist 'list'. list.remove(string); //add newstring arraylist 'list'. list.add(newstring); return list; } try using split method: return arrays.aslist(string.split("\\|"...