Posts

Featured post

html - Auto resizing centre div using css? -

Image
i having difficulty getting 3 divs automatically resize when resizing browser window/page. i have 2 divs of fixed size , want centre div automatically resize fill remaining space , not have third div wrap newline when page size shrinks. i set min-width property on div wraps 3 divs prevent wrapping of third div once middle div 65px wide. does have done javascript because trying achieve css having no luck. the javascript or css expression width = page.width - div1.width -div3.width avoid using js if possible. thanks help! mike you can see expected behavior in attached image. 1) want 2) experiencing on shrinkage i have div re-sizing , textbox inside set @ 100% re-sizes div. however right side div can either 267px shown below or 192px (discrete) should set margin-right code behind on pages? or there way make margin-right dynamic based on size of the div right? eg. html <div id="wrapper"> <div id="left"></div> <div i

IE7, ckeditor and jQuery adapter not working -

i unable open ckeditor instance in ie7 jquery dialog box. works in firefox, in ie following error in web console: script1002: syntax error config.js?t=b8dj5m3, line 1 character 1 script1002: syntax error en.js?t=b8dj5m3, line 1 character 1 script5007: unable value of property 'options': object null or undefined ckeditor.js, line 49 character 943 any ideas or there way purely not supported? to fix this, created entire instance in jquery, predefining properties , assigned ckeditor each element wanted have editor var properties = {properties in here}; $("#textareaid").ckeditor(properties); i dont think solution entirely helped me editor working :)

Get gateway address in C/C++ -

i use ioctl() set gateway address ( siocaddrt rtf_gateway in flags). what's standard ioctl routine retrieve it? my understanding there no 'standard ioctl routine' gateway address in cross-platform-friendly fashion. on linux might consider looking @ using netlink sockets, described in this post .

.NET Workflow issue -

i calling wf: workflow1 wf = new workflow1() { childrenoption = true, market = "english", server = new uri("http://mysite"), sptags = datatoupdate, }; workflowinvoker.invoke(new workflow1()); but reason getting exception, why? other way how can invoke wf avoid problem? values must bound non-null expression before parallelforeach activity 'parallelforeach<keyvaluepair<tuple<string,string,string>,zalupatag>>' can used. it appears workflow1 has parallelforeach activity in did not provide collection values property.

javascript - "PrimeFaces is not defined" error -

i trying print using primefaces printer functionality. have created new glassfish 3 java ee project , added primefaces 3.1.1 .jar file. the code using follows: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <title>facelet title</title> </h:head> <h:body> <h:form> <h:outputtext id="a" value="aa" /> <h:commandlink id="btn" value="print"> <p:printer target="a" /> </h:commandlink> </h:form> </h:body> </html> unfortunately, print function isn't working. instead, firebug console shows me following error: primefaces not defined if didnt have head tag error. primefaces requires head tag work. see #2 on faq http://primefaces.org/faq.html

c# - Finding a position in a word document to insert a table -

i working on writing results of database query tables in word. have done code accessing/creating objects results of query , find myself little stuck on writing these word template given me. summary document in have insert tables of data pulled db in correct position in document. instance, document has 4 section headers , under each header, there text after have insert table. 1 such header can like: school records below find table in school records listed: so when go print school record data object, need way somehow insert data in table format right below above line in word document. can tell me how can first find correct position in doc , how create table in word c#? there article how insert images @ specific position in word document. maybe it's useful insert table either.

javascript - Trouble with word-boundary (\b) -

i have array of keywords, , want know whether @ least 1 of keywords found within string has been submitted. further want absolutely sure keyword has been matched, , not similar word. say, example, our keywords [english, eng, en] because looking variation of english. now, input user i h8 eng class , or equally provocative , illiterate - eng should matched. should fail match word england or odd thing chen , though it's got en bit. so, in infinite lack of wisdom believed along lines of in order match 1 of array items input: .match(regexp('\b('+array.join('|')+')\b','i')) with thinking regular expression matches array, presented (english|eng|en) , see whether there zero-width word bounds on either side. you need double backslashes. when create regex regexp() constructor, you're passing in string. javascript string constant syntax also treats backslash meta-character, quoting quotes etc. thus, backslashes stripped out