Posts

javascript - Little box where I could write in -

i need use little textbox in order write in , value without creating window. (in have created textbox element) need alert box write in. know use ? to dialog box input using javascript can use window.prompt , more info here . if want prettier go modal window. there plenty plugins jquery (and there should enough scripts available in vanilla js well) achieve this.

uisearchbar - bar button created from childViewController don't work -

i have parentviewcontoller(with uinavigationitem), , childviewcontoller(with uitableviewcontoller, uisearchbar). want create uibarbuttonitem on click searchbar hiding. tableviewcontoller.h(childviewcontoller) @interface tableviewcontroller : uitableviewcontroller<uisearchbardelegate, uisearchdisplaydelegate, uinavigationcontrollerdelegate> @property (nonatomic, strong) iboutlet uisearchbar *searchbar; @end tableviewcontoller.m(childviewcontoller) @synthesize searchbar; - (void)viewdidload { [super viewdidload]; self.searchbar.hidden = no; [self createsearchbutton]; } - (void) createsearchbutton { uibarbuttonitem *mybutton = [[uibarbuttonitem alloc] initwithtitle:@"mybutton" style:uibarbuttonitemstylebordered target:self action:@selector(ibutton:)]; self.parentviewcontroller.navigationitem.rightbarbuttonitem = mybutton; } -(void) ibutton { self.searchbar.hidden = yes; nslog(@"click on ibutton"); } but, if click on mybut...

Updated! Mechanize. Ruby. Can't get drop-down menu with dynamic content of hidden fields -

i'm not experienced in ruby + mechanize, starting, so... pls help. tried fill out form dynamic content. can't how step step. that code: #!/usr/bin/env ruby # encoding: utf-8 require 'rubygems' require 'mechanize' require 'logger' url = "https://visapoint.eu/visapoint2/disclaimer.aspx" agent = mechanize.new agent.user_agent_alias = 'mac safari' agent.log = logger.new(stdout) page = agent.get(url) page.encoding = 'utf-8' # disclamer.aspx object page disclamer_page = agent.page # click accept button on disclamer.aspx accept_button = disclamer_page.form.button_with(:value =>'accept') action_page = disclamer_page.form.click_button( accept_button ) # click new appointment button on action.aspx new_appointment_button = action_page.form.button_with(:name => 'ctl00$cphmain$btnnewappointment_input') form_page = action_page.form.click_button ( new_appointment_button ) # fill form on form.aspx page form_...

php - Getting more than 10 results Google Search API -

i trying more 10 results form google using search api. know google search api gives 10 results , have call 10 times hundred can't seem working. tried creating while loop loop seems gives me same results on , over. <?php if(isset($_get['input']) && $_get['input'] != "") { echo "<br />your search results google:<br /><br />"; $i=0; $url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0& key=aizasybacvripno7umqhtjxg4zeq1dtsqa_uod4&cx=014517126046550339258:qoem7fagpyk &num=10&start=".$i."&"."q=".str_replace(' ', '%20', $_get['input']) // sendrequest // note how referer set manually $ch = curl_init(); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_returntransfer, 1); curl_setopt($ch, curlopt_referer, 'http://www.google.com'); $body = curl_exec($ch); curl_close($ch); // now, pro...

search - MySQL - searching a self join and ranges or data -

i'm tasked local community center build 'newlywed' type game in time valentines day, no rush! so, we've got 50 odd couples know each other quite going asked 100 questions before time. each question has users response , range @ allow margin of error (this range quota limited). , can select think partners answer be, same range margin of error. eg (i'll play round me , gf): question: fruit? quite fussy fruit i'll put low score out of 100.. 20. like, love , think gf might think put higher answer, margin of error i'll allow going 30. think loves fruit , put @ least 90.. enjoys alot of foods may rank lower, i'll give margin of 20. ok, repeat process 100 questions , 50 couples. i'm left table this: u_a = user answer u_l = user margin of error level p_a = partner answer p_l = partner margin of error level create table if not exists `large` ( `id_user` int(11) not null, `id_q` int(11) not null, `u_a` int(11) not null, `u_l` int(11) not...

Create Excel files in java(invalid number) -

i have string "2,345".i want put excel cell.i did in excel file got "2,345" string.so please suggest me how can "2,345" number value same format used above(comma seperated). thanks in advance. remove comma before inserting excel, cast number before inserting, format column show comma. string replace in excel code format range commas is: somerange.style = "comma" 'or, recorded version somerange.numberformat = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-" 'a simpler version.. somerange.numberformat = "#,##0"

php - how to make css contents like boxes, text as center? -

Image
i have started css tutorial, don't have idea css. here posting css code. can please tell me how make whole contents center in browser. including screen shot of output...... body { background:#e9e9e9; } #formwrap { width:720px; margin-top:30px; margin-left:30px; margin-right:30px; background:#fff; border:1px solid #f1f1f1; -moz-border-radius:20px; -moz-box-shadow:2px 2px 5px #999; -webkit-border-radius:20px; -webkit-box-shadow:2px 2px 5px #999; padding:16px 10px 40px; } #formwrap #form { border-top: 1px solid #eee; width: auto; } #formwrap #form .row { border-bottom: 1px dotted #eee; display: block; line-height: 38px; overflow: auto; padding: 24px 0px; width: 100%; } #formwrap #form .row .label { font-size: 16px; font-weight: bold; font-family: arial, helvetica, sans-serif; width: 180px; padding-right: 10px; margin-right: 10px; } #formwrap #form .row .input { float: left; margin-right: 10px; font-style: italic; width: auto; } .detail{ width: 260px; font-family: arial, ...