Posts

Showing posts from January, 2015

android - SQLite Query data retrieve from cursor -

i have 2 edit boxes in ui. want retrieve data table , want insert retrieved data edit text boxes how can insert data edit text boxes cursor? check no. of column , name cursor.getcolumncount() , cursor.getcolumnname(0). respectively.if column count 2 cursor have 2 column cursor.movetofirst(); string columnname1 = cursor.getcolumnname(0); string columnname2 = cursor.getcolumnname(1); string str1 = cursor.getstring(cursor.getcolumnindex(columnname1))); string str2 = cursor.getstring(cursor.getcolumnindex(columnname2))); editext1.setext(str1); editext2.setext(str2); after completion of getting data database close cursor using cursor.close();

Captcha refreshing in PHP form -

i'm trying use securimage php script (cf google) captcha's have problem: when press link "different image" (to display captcha), lose text entered in fields of php form. user have re-enter again, problematic. here code. note: took away '#' href because reason, fails in changing captcha image. know why? (this happens in both safari , firefox) <img id='captcha' src='/myproject/securimage/securimage_show.php' alt='captcha image' /><br> <a href='' onclick='document.getelementbyid('captcha').src = '/securimage/securimage_show.php?' + math.random(); return false'> [different image ]</a> because have removed '#' href thats why whole page refreshed when link clicked , fields data lost. don't remove it, , use following code <img id='captcha' src='/myproject/securimage/securimage_show.php' alt='captcha image' /> <br> <a ...

javascript - Jquery preventdefault() function not working -

here jsfiddle actually trying validate text field before submit. want show errormsg_box if text field empty, if it's not submit form. here not working here script: $("form").submit(function(event) { var text_val = $('#emailid').val(); alert(text_val); if (text_val != ' ') { $('.errormsg_box').show(); return false; event.preventdefault(); } else if (text_val != '') { $('.errormsg_box').hide(); return true; } }); if ($.trim(text_val) === "") { return false; // or event.preventdefault(); // event.preventdefault() // javascript case sensitive. } full code: $("form").submit(function(event) { var text_val = $('#emailid').val(); if ($.trim(text_val) === "") { $('.errormsg_box').show(); return false; } else $('.errormsg_b...

Using jquery custom widgets with backbone.js views -

i have custom jquery widget being called app uses backbone.js mvc. how can use backbone events pattern in custom jquery widget? function( $ ) { $.widget( "medex.chooser", { ... _create: function() { // create new backbone view here??? } } thanks. i think need define custom view called custom widget. in app initialization code, example: app = {}; // app's global object app.views = {}; app.views.widgetview = backbone.view.extend( { events: { "click .grid1" : "ongrid1click" }, initialize: function() { // code here }, ongrid1click : function(evt) { // code here } }); then constructor code widget: function widget(element) { this.view = new app.views.widgetview({ el: element }); } this code might not entirely valid, should give idea of structure looking for. lemme know if works you.

groovy - Grails plugin dependency issue, WAR file missing plugin artifacts -

Image
developing grails 1.3.7 web app; depends on plugin depends on plugin, diagram below illustrates dependency configuration. the problem war file; i'm using standard grails war command, classes core-plugin not packaged in war; artifacts webutil-plugin , however, present. double-checked artifactory, no issues repository. 1 thing noticed in war build output was...the webutil plugin pulled repo first, war packaged, then, core plugin pulled , copied local grails/ivy repo. not sure why happening, because web app implicitly depends on core through webutil ? was able around adding both plugins web apps buildconfig , although not ideal since results in redundant configuration. still not sure why implicit dependency doesn't work.

regex - Regular expression for IP Address -

i need able search through log , grab ip addresses logged. example log line like: [2012-06-05 11:59:52] notice[14369] chan_sip.c: registration '' failed 'yy.yy.yy.yyy' - no matching peer found i need grab ip address listed in yy.yy.yy.yyy position. other log files, yy.yy.yy.yyy in different position. i thinking read each line, split on ' ' , loop through split temporary array for: 'yy.yy.yy.yyy' . don't know how pattern match or regex 'yy.yy.yy.yyy' single quotes included. how can this? this regex match ip address contained in ' '(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' to iterate on matches in perl do: while ($subject =~ m/'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})'/g) { # matched text = $& } group 1 of match contain ip without '

Is this efficient and where am I going wrong? (Python Menu System) -

i'm creating simple deep menu system. far works fine unless hit '0' while deeper initial menu system (i.e. after selecting task 1 or task 2 in main menu.) if select after, sends show subtask 1 , rather task 1 , task 2. my question is: how fix , efficient menu system? (even if need add more '# comment' lines explain it.) # multitasker - deep menu system # menu allows user select tasks, subtasks , deeper subtasks # initial screen. def homescreen(): print(""" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x x x multitasker - deep menu system x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x x x ready start? x x --------------------- x x press 'enter' ...

c++ - Hiding application resources -

i'm making simple game sfml 1.6 in c++. of course, have lot of picture, level, , data files. problem is, don't want these files visible. right they're plain picture files in res/ subdirectory, , want either conceal them or encrypt them. possible put raw data files resource file or something? solution okay me, don't want files exposed user. edit cross platform solutions best, if don't exist, that's okay, i'm working on windows. don't want use library if it's not needed. most environments come resource compiler converts images/icons/etc string data , includes them in source. another common technique copy them end of final .exe last part of build process. @ run time, open .exe file , read data determined offset, see embedding filesystem in executable?

html5 - What Haskell web framework would one use for an HTTP/Websocket data and messaging platform? -

just looking @ haskell , web frameworks , wondering if make sense use haskell's great threading/event functionality power platform writing html5 , rest apps expose http api data , websocket (with maybe sockjs support appropriate fallback) api events? doesn't seem "big" web frameworks support websockets first-class citizen, though seem have lot of other things going them. my concern making use of available cores, haskell can well, providing easy user integration on server side validation , server-side logic (maybe embedding lua or similar?). if 1 wrote on jvm, 1 make use of multiple server-side language support , lots of libraries sort of thing. i'm sure people doing things in one-off solution own applications i'm thinking along lines of paas-type approach 1 can write html5 apps data (including proper synchronization offline use) , eventing "for free" fundamental part of platform. logic reside in browser run on server appropriate hooks , reaso...

javascript - Simple login system for PhoneGap app -

i'm trying build simple login system phonegap app. have form user gives username , if there matching username in mysql user redirected page. else alert shown. code works fine on firefox , chrome, when try use on safari or on phonegap app doesn't seem work. reason? html <form id="login-form" rel="external" data-ajax="false" > <label for="number">number:</label> <br> <input type='tel' name="number" id="number" data-corners="false" data-theme="d"/> <br> <label for="username">username:</label> <br> <input name="username" id="username" data-corners="false" data-theme="d"/> <br> <input type="submit" value="ok" data-theme="b" data-corners="false" /> </form> js $(function() { ...

java - Possible to determine size of file to be unzipped? -

i have following code uses zipinputstream decompress zip file target location on phone: zipinputstream zipinputstream = new zipinputstream(new fileinputstream(sourcezipfile)); zipentry zipentry = null; while ((zipentry = zipinputstream.getnextentry()) != null) { file zipentryfile = new file(targetfolder, zipentry.getname()); // write contents of 'zipentry' 'zipentryfile' does know whether possible (using setup above or otherwise) (an estimate of) total number of files or bytes unzipped before commencing , increment progress decompression proceeds? thought zipinputstream might have gettotalentries() or similar method can't find this... use zipentry#getsize() method. returns size of uncompressed file. if have more 1 entry (file) inside zip file, iterate through them first (without extracting them), , add file sizes. might pretty estimate. note, if need know exact number of bytes files occupy on disk, need know exact size of cluster in f...

osx - Build and install Brew apps that are x86_64 instead of i386? -

after have done this: brew install git i this: which git which returns: /usr/local/bin/git i this: file /usr/local/bin/git which returns: /usr/local/bin/git: mach-o executable i386 i need brew install x86_64. how can force brew build , install apps x86_64? brew --config returns this: homebrew_version: 0.9 head: 1c64a6624ed83ef17af6e98638b8165400e9e908 homebrew_prefix: /usr/local homebrew_cellar: /usr/local/cellar cpu: quad-core 64-bit sandybridge os x: 10.7.4 kernel architecture: x86_64 xcode: 4.3.2 gcc-4.0: n/a gcc-4.2: n/a llvm: build 2336 clang: 3.1 build 318 macports or fink? false x11: /usr/x11 system ruby: 1.8.7-357 perl: /usr/bin/perl python: /usr/bin/python ruby: /users/tdewell/.rvm/rubies/ruby-1.9.3-p194/bin/ruby update: adding brew --env $ brew --env cc: /usr/bin/xcrun gcc-4.2 => /developer/usr/bin/gcc-4.2 cxx: /usr/bin/xcrun g++-4.2 => /developer/usr/bin/g++-4.2 ld: /usr/bin/xcrun gcc-4.2 => /develope...

multidimensional array - php 5.3 convert array_walk_recursive -

i have following code, , i'd away call-time pass-by-reference, (to convert 5.2 5.3) i'm not sure sure correct way (class, global variable, ?) here codepad should have in http://codepad.org/ombgfpmr <?php function count_things($item, $key, $total) { $total++; } $counts = array(100 => 1, 101 => 1, 102 => array( 106 => 1, 107 => 1 ), 103 => 1, 104 => 1, 105 => array( 108 => 1, 109 => array( 110 => 1, 111 => 1, 112 => 1 ) ) ); foreach($counts $key => $count) { $total = 0; if(is_array($count)) { $total++; /* below logic error. array elements contain arrays not callback function called on them. therefore, children children of own not c...

android - How to prevent WebView auto refresh when screen rotation -

my application - activity webview auto refresh when screen rotation , activity first 1. example: webview handle 3 activity(a, b, c) when switching a->b or b-c when screen rotating. my question: how can keep activity alive event screen rotation? highlighting @kirgy comment, have add orientation|screensize manifest if api > 3.2 , wont work without in cases.

d3.js - Change scale default in cubism.js -

i'm using cubism.js graph static data json object. want able display years worth of data, point each day. have solution working partially i'd able set scale independent of today's date, i.e. i'd graph data yesterday corresponding day last year. i've tried following without success: context.scale(d3.time.scale().domain([start, end]).range([0,96])) where start , end come json object. possible set cubism scale behave in way ? many thanks, michael the stocks demo intro talk this, using serverdelay shift displayed time window , stop prevent updates: var context = cubism.context() .serverdelay(new date(2012, 4, 2) - date.now()) .step(864e5) .size(1280) .stop(); i think api made more convenient handle specific case, cubism designed real-time displays.

jquery - issue while Calling same Editor Template with Telerik control multiple times -

my work on mvc3 razor, scenario have editor template has telerik dropdownlist control in it. requirement display same telerik dropdownlist multiple times editor template calling editorfor(m=>m.assignee.options,"optionslist") editorfor(m=>m.assignee.options,"optionslist") so if this, style both controls rendered properly, "functionality" of telerik ddl gets affected second control(it doesn't drop @ all), first 1 works fine. afterwards, tried use other control (here control's working based on jquery teleriks) , repeated above scenario. same result. first control got rendered , worked properly, rest of repeated controls broke. found out issue becoz of script(jquery) used controls in editor template. question is, possible use jquery based control in editor template , make work mulitple times in same page? if solution or link can refer to? i think due name , id attributes having same values. in editor template try makin...

java - Create an environment variable programmatically -

i have external program i'm running. reason, code owner didn't give me code or , documentation, know how run code written originaly executed command line , not java. effect on me application uses env variable , relay on value (a path on computer output). want change value, how can done without running batch file? i assume executing program using 1 of runtime .exec() methods in java code create process . note of methods allows pass environment variables process creating, example exec(string[] cmd, string[] envp) . alternatively, map returned processbuilder.environment() can manipulated same effect.

How to use JUNG to draw a graph in a GEF editor -

is possible use jung graph display model data in gef editor rcp application, rather using figures , etc. gef itself? i'd use jung draw graph model, still able use stuff flyout palette, scalablefreeformlayeredpane , other gef goodies. graph should remain editable via gef on-board means. think jung has better algorithms drawing actual graph. has succeeded in doing or has examples/starting points me? thanks much! no, can't that. gef build on top of draw2d, , not easy change this.

authentication - How does Android's app/signature verification work? -

i want preface question 2 things can narrow down actual question is: a) i've done software dev before, though never android b) i'm familiar pki , encryptions , hashing , digital signatures , blah blah blah that being said i'm having trouble tracking down more information , how android verifies app creators. i've heard lot of different information i'm trying synthesize better idea of workflow. i know every app developer gets own private/public key pair , sign apps hashing apk (with sha-1 of time if i'm not mistaken) , there go. upload , (i believe) public key goes in meta inf inside apk. understand. my question how relates when user downloads app itself. know phone checks make sure app validly signed, , signature has information author , etc included. i've read apps self signed , google play (or whatever they're calling market now) doesn't implement ca, , there's no identity authentication? question what, then, stops people uploading...

ajax - JSON output from web method -

i have web method returning json fullcalendar event data "()" added causing parser error. i able clip off unwanted "()" , attach events jquery don't want keep way. the source of data web method using razor. using json helper encode data results in formed json string, i.e. no "()". of course if use encode use response.write send data ajax function. same ill formed json data recieved if use json.write(data, response.output). catching returned data in success function shows data attached "()". here portion of web method returns data: // convert header names , data strings var rows = e in ce select new { id = e.evid, title = e.title, start = e.startt, allday = false, end = e.endt, backgroundcolor = e.eventcolor }; string mjson = json.encode(rows); //json.w...

Properly mapping an xml schema in Excel -

long time reader, first time poster. it's time mine site it's knowledge! i'm trying set xml schema , populate data inside excel. i've made definitions complextypes because reused quite often. if reference type, example 3 times, inside excel maps type once. i'm pretty new schemas boss wants me use them. other criticism appreciated. xml schema: <xsd:schema xmlns:xsd="http://www.w3.org/2001/xmlschema"> <!-- type definitions (doorstyle, colour, accessory , tamarackmodel) --> <xsd:complextype name="doorstyle"> <xsd:sequence> <xsd:element name="style" type="xsd:string"/> <xsd:element name="wood" type="xsd:string"/> <xsd:element name="colour" type="xsd:string"/> <xsd:element name="imgsrc" type="xsd:string"/> </xsd:sequence> </xsd:complextype> <xsd:complextype name="colou...

object - Why does ("foo" === new String("foo")) evaluate to false in JavaScript? -

i going start using === (triple equals, strict comparison) time when comparing string values, find "foo" === new string("foo") is false, , same this: var f = "foo", g = new string("foo"); f === g; // false of course: f == g; // true so recommended use == string comparison, or convert variables strings before comparing? "foo" string primitive . (this concept not exist in c# or java) new string("foo") boxed string object. the === operator behaves differently on primitives , objects . when comparing primitives (of same type), === return true if both have same value. when comparing objects, === return true if refer same object (comparing reference). thus, new string("a") !== new string("a") . in case, === returns false because operands of different types (one primitive , other object). primitives not objects @ all. typeof operator not return "object" pr...

forms - Combine Checbox wtih Text Field in PHP -

i'm try combine checkbox values text field 1 variable, when echo out shows correct fields values. i want combine post of checkbox of quantity text field, because there several items i'm using forloop can't seem combine both values 1 creates new table row item name on left , quantity on right. <tr> <td> <input type="checkbox" name="check[]" value="<?php echo get_post_meta($post->id, '_stitle', true); ?>" /> </td> <td> <input id="quantity" name="check[quantity]" type="text" maxlength="3" /><br /> </td> $data = $_post['check']; foreach ($data $value) { $item .= '<tr style="background: #eee;"> <td>item: </td> <td>'.$value.'</td> </tr>'; } you should change: ...

php if else error with form field -

my form has input file type field. <input type="file" name="file" size="80" value=""> when submitted , field empty file upload part of php script should skipped. not seem happening. getting wrong file type message popping. nothing populated in field on form why if/else statement not being followed? doing wrong? <?php // connect datebase require "master.db.php"; // if(empty statement not working? // should checking see if form field 'file' populated if check file // type if not skip , update sql database information in form field 'test' if(!empty($_files)) { if ((($_files["file"]["type"] == "image/gif") || ($_files["file"]["type"] == "image/jpeg") || ($_files["file"]["type"] == "image/pjpeg")) && ($_files["file"]["size"] < 2097152)) { // code here works -...

Using non-inline javascript in HTML via node.js -

i'm new node.js apologize if poor question. have simple http server here: var http = require('http'); http.createserver(function (request, response){ response.writehead(200, {"content-type":"text/html"}); // response.write("<html><head><script type = 'text/javascript'>alert('hello');</script></head></html>"); response.write("<html><head><script type = 'text/javascript' src = 'alerter.js'></script></head></html>"); response.end(); }).listen(8000); console.log("server has started."); alerter.js contains 1 line: alert("hello"); why using commented-out line cause alert, calling alerter.js nothing? your problem, paul , timothy pointed out, when browser gets html external reference, goes server , asks alerter.js, expecting have script delivered it. however, server sends out same th...

linux - PHP create directory with 777 permission in Windows -

i have read this:- why can't php create directory 777 permissions? and can see new folder being created applying following:- // desired folder structure $structure = "../../../".$flash_dir."hello"; // create nested structure, $recursive parameter // mkdir() must specified. $oldmask = umask(0); mkdir($structure, 0777); umask($oldmask); when viewing file permission of hello dreamweaver, 777. however, suspect linux 0777 rather windows 777, therefore still cannot upload things hello. will there alternative method create directory windows 777? thanks! ps. when manual create new directory , right click set 777, works perfectly, think it's related linux vs windows~ 0777 same thing 777 but still can't problem is. try chmod again after you've created it. $oldmask = umask(0); chmod($structure, 0777); umask($oldmask);

python - How do I change the scale of imshow in matplotlib without stretching the image? -

i wanted plot using imshow in manner similar second example here http://www.scipy.org/plotting_tutorial redefine scale axis. i'd image stay still while this! the code example: from scipy import * pylab import * # creating grid of coordinates x,y x,y = ogrid[-1.:1.:.01, -1.:1.:.01] z = 3*y*(3*x**2-y**2)/4 + .5*cos(6*pi * sqrt(x**2 +y**2) + arctan2(x,y)) hold(true) # creating image imshow(z, origin='lower', extent=[-1,1,-1,1]) xlabel('x') ylabel('y') title('a spiral !') # adding line plot slicing z matrix fun. plot(x[:], z[50, :]) show() if modify extent wider, eg: imshow(z, origin='lower', extent=[-4,4,-1,1]) then resulting image stretched. wanted change ticks coincide data. know can use pcolor conserve x , y data, though has other ramifications it. i found answer allows me manually redo ticks: how convert (or scale) axis values , redefine tick frequency in matplotlib? but seems bit overkill. is there way change ...

iphone - cocos2d CCMenu padding strange on retina device -

Image
situation: i'm using [(ccmenu*)mymenu alignitemsverticallywithpadding:4.0f] layout several buttons (ccmenuitemsprite) vertically. on non-retina device padding appears expected, when in retina mode on simulator padding seems doubled. ideas why? code: ccmenuitemsprite *itemplay = [ccmenuitemsprite itemfromnormalsprite:[ccsprite spritewithspriteframename:@"play.png"] selectedsprite:nil target:self selector:@selector(goplay:)]; ccmenuitemsprite *itemhowto = [ccmenuitemsprite itemfromnormalsprite:[ccsprite spritewithspriteframename:@"howto.png"] selectedsprite:nil target:self selector:@selector(gohowto:)]; ccmenuitemsprite *itemsettings = [ccmenuitemsprite itemfromnormalsprite:[ccsprite spritewithspriteframename:@"settings.png"] selectedsprite:nil target:self selector:@selector(gosettings:)]; ccmenuitemsprite *itemhelp = [ccmenuitemsprite itemfromnormalsprite:[ccsprite spritewithspriteframename:@"help.png"] selectedsprite:nil target:se...

r - Using comma delimited values from a dataframe in hsv() -

this question related 1 asked here . i'm trying color individual points in scatterplot color specified in column of dataframe. data tab delimited file , looks this: > dput(ztesthsv) structure(list(y = c(0, -1, -1, -2), x = c(0, 2, 0, -2), group = c("m", "m", "m", "s"), colorhsv = c("0.02,0.83,0.89", "0.59,0.59,0.85", "0.25,0.45,0.8", "0.55,0.41,0.8"), colortext = c("red", "blue", "green", "turquoise")), .names = c("y", "x", "group", "colorhsv", "colortext"), class = "data.frame", row.names = c(na, -4l)) i.e. y x group colorhsv colortext 1 0 0 m 0.02,0.83,0.89 red 2 -1 2 m 0.59,0.59,0.85 blue 3 -1 0 m 0.25,0.45,0.8 green 4 -2 -2 s 0.55,0.41,0.8 turquoise the following code works predefined set of colors available in r: ztesthsv=read...

java - Singleton use in different thread -

i have remote service , an, object (singleton). when call singleton class ui thread , remote service 2 objects. can me? if have remote service have 2 separate processes. each process has own virtual machine. therefore, singleton class instantiated once in each process. if need single think whether need remote service. if can implement remote service local service solve problem. if, on other hand, need single instance shared across 2 separate processes, need instantiate singleton only in remote services process , access via remote calls ui process.

c# - ASP.NET work and PDF -

i want use pdf file in webpage. want pdf open in part of page. code can use? can use panel? know how open pdf in full webpage want open pdf in part of page. :) you render pdf file on part of page using object or iframe html tags.

Android Using Multiple methods inside Asynctask -

i'm trying run background asynctask load in data. have 2 methods load in data , i'm running them in asynctask . when it's done loading have method called filldata fills ui data. the problem @ moment it's filling ui whichever method finishes downloading data first. there way run multiple methods inside 1 asynctask or need multiple asynctasks ? here's asynctask public class posttask extends asynctask<void, string, boolean> { @override protected boolean doinbackground(void... params) { boolean result = false; loadnewsfeed(); loadresultsfeed(); publishprogress("progress"); return result; } protected void onprogressupdate(string... progress) { stringbuilder str = new stringbuilder(); (int = 1; < progress.length; i++) { str.append(progress[i] + " "); } } @override protected void onpostexecute(boolean resul...

c# - What causes the UnhandledExceptionEventArgs.IsTerminating flag to be true or false? -

when subscribed events on appdomain.currentdomain.unhandledexception criteria causes unhandledexceptioneventargs isterminating flag true? i.e. causes exception considered fatal? is case default unhandled exceptions fatal unless configured otherwise? this property true. used possible false, way in .net 1.x days. version allowed thread die on unhandled exception without having entire process terminate. didn't work out well, programmers didn't implement event handler (or didn't know how handle exception event, does) threads died without notice whatsoever. impossible not have cause difficult diagnose program failure. microsoft changed default behavior in .net 2.0, unhandled exception terminates program. technically still possible override behavior, custom clr host can keep process alive implementing ihostpolicymanager interface. , default host supports <legacyunhandledexceptionpolicy> config element. don't use it, way lies dragons.

php - symfony2 display twice the fields of the form -

i have list of "hours" workers passed on mandates. admin can check them (checkbox)to add them bill, (but can adapt real hours) so, have array of hour selected, in controler hours : $hours = $repository->findby(array('id' => $tabhour)); so $hours countain more 1 hour, thought if creating form $hours, automaticly display fields more once.. foreach($hours $key => $test){ $billedhour[$key] = new billedhour(); $form[$key] = $this->container->get('form.factory')->create(new billmandateform(), $hour); } i tried this . it's not solved, cause if return collection of forms can't 'form' => $form->createview() so can't render forms... try pack form views in array $billedhours = array(); $forms = array(); foreach($hours $hour) { $billedhours[] = new billedhour(); $forms[] = $this->container->get('form.factory')->create(new billmandateform(), $hour); } then, create a...

Change name of uploaded file at a later point in time - django -

is possible change name of file after has been uploaded. , change has done not @ time when file being uploaded @ later stage. in different function process file , have change name of file. seems can't change name of file, unlike other attributes of object. any appreciated. can find this: ? class baseimage(models.model): """ base image model """ path_format_str = u'%(id_prefix)s/gallery-%(object_id)s/%(image_name)s' def upload_to(self, original_name): return self.path_format_str % { 'id_prefix': str(self.object_id).zfill(6)[:3], 'object_id': self.object_id, 'image_name': sanitize_file_name(original_name), } file_data = models.imagefield( blank=true, upload_to=upload_to, verbose_name=u'soubor s obrázkem', help_text=mark_safe(u'připojte fotku - formát jpg, bla bla bla ,...'), ...

jquery - simplemodal not displaying <div> content with ASP.NET and VB -

Image
i beyond knowledge here. has obvious missing. i'm trying use jquery simplemodal display confirmation record added database. i've managed figure out how modal display; however, background of modal displaying. content within div not displaying in modal. in fact, nothing displaying in modal. background: i use master page , default asp.net css site settings. i've disabled sites css (as you'll see screenshot) , using css simplemodal. can not life of me show content. see screenshot appearing: here aspx: `<%@ page title="" language="vb" masterpagefile="~/site.master" autoeventwireup="false" codefile="createdoctype.aspx.vb" inherits="admin_createdoctype" %> <%@ register assembly="ajaxcontroltoolkit" namespace="ajaxcontroltoolkit" tagprefix="asp" %> <asp:content id="content1" contentplaceholderid="headcontent" runat="se...

java - Tab in JTabbedPane does not reflect changes on button press -

Image
within tab of gui, user allowed edit employee's name. name serves tab's label, when change confirmed tab should updated reflect change , new data written data file. the employees stored in hashmap in class employees . tabs populated iterating through arraylist<string> of employees' names, gotten calling method employees.getnames() . gui, user can type in new name , press change name button. button's actionlistener calls method changename() , replaces old name new name in hashmap , updates data file. this works correctly first time user wants change employee's name, subsequent changes yield error. appears jpanel contains jtextfields (see getemployeeinfopanel() below) not updating parameter name . parameter employee's current name, while new name gotten jtextfield . an example illustrate problem below. essentially, steps are: 1. old name = mary provided when program starts 2. user changes name in jtextfield, oldname = mary , newname = mary...