Posts

Featured post

Remove a semicolon in a string by JavaScript -

this question has answer here: how replace occurrences of string in javascript? 35 answers how can remove semicolon ( ; ) string using javascript? for example: var str = '<div id="confirmmsg" style="margin-top: -5px;">' how can remove semicolon str ? you can use replace method of string object. here w3schools says it: javascript replace() . in case following: str = str.replace(";", ""); you can use regular expression: str = str.replace(/;/g, ""); this replace semicolons globally. if wish replace first instance remove g first parameter.

actionscript: can I get the http request URL? -

a.swf loaded in a.html hosted @ http://www.a.com/a.html . i want know, if user browses http://www.a.com/a.html , in actionscript, can http request url? in example want http://www.a.com/a.html . flash: this.loaderinfo.url flex: application.url or application.loaderinfo.url

html - How to make my button into an Image button? -

i have default button. how make button image? when click on button normal thing happens. want image on button. thanks. you may try this: <input type="image" src="image location" alt="submit">

Sharepoint:ListFieldIterator - ExcludeFields property does not work -

i've written new page uses sharepoint's listfielditerator. exclude few fields view , i've found solution using excludefields doesn't work. control displays fields, nevermind what's in excludefields property. couldn't find complaining such problem on internet. there's code (nothing fancy): <sharepoint:listfielditerator id="lfiitemdetails" controlmode="display" runat="server" excludefields="testid" /> listid , itemid set programmatically in oninit. try hash. column want hide called "printorder" changed from: <sharepoint:listfielditerator controlmode="display" templatename="widefieldlistiterator" excludefields="fileleafref;#wikifield" runat="server"/> to <sharepoint:listfielditerator controlmode="display" templatename="widefieldlistiterator" excludefields="fileleafref;#wikifield;#printorder" runat="...

How can i add clickHandler to the <li> tag in GWT? -

i want add clickhandler < li> tag please me ... you use focuswidget once you've got hold of element. there's focuswidget constructor taking single element. after can call addclickhandler

mysql - is this possible to made two primary key in one table -

hi want know is possible make primarykey in 1 table in mysql. if yes please tell me concept behind this. because have seen table in 2 primary key there no auto increment set you can have 1 primary key, but: you can combine more 1 column primary key (maybe it's have seen) the primary key don't needs auto-increment, has unique you can add more 1 index 1 or more colums speed select-statements (but slow down insert / update) those indexes can marked unique, wich means don't let insert second row same content in index-fields (just primary key)

datasource - Problem with query as a new data source in Cognos PowerPlay -

normally can add query new data source in cognos powerplay (i'm running powerplay version 7.3), when try cannot select queries access database. dropdown menu shows existing queries in database empty. when add table new data source works fine, , tables shown in dropdown. previously worked fine queries too, won't work. know if it's cognos error or system configuration on pc causes error appear? i didn't find answers question, did come workaround solution problem. the trick create new ms access database (fx called workarounddatabase) , create query has same name original query in mother database (the name of query wanted add data source in first place). then first create new data source links query in workarounddatabase. secondly right-click on data source , change path mother database. since names of queries same data source links query in mother database (which wanted, byt couldn't directly because of cognos powerplay bug). this procedure works f...