| |
| |
| |
|
Page: 1 2
Comments:
<0> hy <0> is there a function to reload an entire page ? <1> location.reload()? <0> ohh man <0> :D <0> thanks alot :D <1> np <1> http://developer.mozilla.org/en/docs/DOM:window.location <2> good morning/afternoon/evening <2> badbye <3> yop all <4> how do I remove all new lines and \r's from a string <4> ? <5> str = str.replace(/[\r\n]/g, ''); should do it <4> what's /g ? <5> global
<5> otherwise it'll only do the first one <4> var tempValue = ' <br /> <4> <br /> <4> '; <4> tempValue = tempValue.replace(/[\r\n]/g, ''); <4> wont work <4> the new lines already appear inside the javascript <4> I need the code in php <5> javascript doesn't let you do multi-line strings like that <4> str_replace('\n\r','',$row['content']); wont work <4> why? <5> because you're mixing PHP and javascript <4> why? <5> what do you mean <4> why am I banned from #php <5> how should I know? <4> cant you at least pretend to be sympathetic? <5> I'm trying but you're not making it easy <3> lol <4> why? <3> *!*@87.69.49.21 <3> lol <3> banned by Novell_ <5> you're not really explaining what you want to do <4> well <4> im using fckeditor <4> which is a rich text editor <4> for html documents <4> the problem is that it uses both <br />'s and new lines <4> and in the case of new lines I am later unable to ***ign the values from the database to javascript <4> so I need to strip the new lines <4> before even getting to javascript <5> right... so you want the PHP function <5> $str = str_replace(array("\r", "\n"), "", $str); <3> <3> why did you ban *!*@87.69.49.21 <3> <Novell_> because he was a ****head who deserved it ? <5> you might be better off stripping them out before you put the stuff into the database though <4> thanks RoBorg <4> you may be a robot but you're more human than novell <5> yw heh <4> what is the meaning of your nick? <4> rob-org? robo-rg ? <4> ro-borg ? <5> robotic organism - it's from a scifi book <4> oh <4> ever seen the movie 'v for vendetta' ? <5> nope <4> i was gonna as kyou if its any good <4> ask <5> heh no idea <4> but I cant <4> did you see 'the life aquatic' ? <5> nope <5> I don't watch a lot of films <4> you read alot of books tho? <0> hy <0> i have page that loads a frame, and in that frame i have made a timer that should reload the whole page (location.reload();) but it only reloads that frame <0> what could be wrong ? <1> put the timer in that page instead <0> can't i reload the whole page from within that frame ? <1> you can but kind of silly. anyway, it is iframe? you can parent.location.reload()
<1> or top.location.reload() <1> the later one work for frameset <4> all in all ht311 dome le hargol <0> yep <0> works <0> thanks alot ht311 <1> np <0> you're cool :D <4> im cool too <4> im like vendetta <0> :)) <4> vicious velocity vigious <4> vivid <1> and die inan explosion <1> :) <4> dave <4> voice me <6> no <4> I just helped OneAndOne <6> the channel is not moderated, there is no need for anyone to be voiced <4> ask her <4> there IS <4> your regime will one day fall <6> I don't care who you helped. <6> We don't have a regime. <4> until then I am waiting in the darkness <6> voiced enables you to talk when the channel is moderated. it's not moderated, so there is no need. <4> keep on yapping <4> remember remember the 5th of november <7> hi <7> anybody that knows css? i have a problem with a border-collapse: collapse; table <1> you should ask that on the other side.. but what is your problem? <7> http://86.126.152.161/CodeSnippets/DHTML/table/table_test.html <7> user and p***word 'public' <7> i need to have that table with border-collapse: collapse; <7> so it displays like now <7> but it seems there's a bug in FF because for th:hover { border-bottom-color: #f00; } doesn't work well <7> i tried with JS and does the same <7> if i put other element (a DIV) inside the TH and do the border change on that it works <1> just changing the color work, not sure about the hover <1> for table stuff, i borrow code from there http://86.126.152.161/CodeSnippets/DHTML/table/table_test.html <7> ? that's my link <7> nevermind i found a workaround <1> hehe http://icant.co.uk/csstablegallery <7> i put <a> in <th> i need it anyway <7> and do the hover on A <7> and that works in IE without JS too <1> yup, about to suggest that <7> thanks for looking <7> i don't think that link helps <7> i wanna build a table like the windows one <7> will make 2 versions <7> HTML only (correct SEO friendly markup) and one 100% AJAX based (with scrolling, acching, load on demand, etc) <7> don't know if i can make 1 solution only... <1> http://webfx.eae.net/dhtml/collist/columnlist.html <7> http://www.activewidgets.com/grid/ <7> this is how should look <7> thanks for that link :) <1> don't like that one <1> I am using this http://www.domapi.com/build/tests/HTML_4.01_Transitional/listgrid_(edit).htm?theme=system&skin=false&lang=eng <1> the webfx one is good for learning, it does have binding that make seo friendly <7> let me see <7> crap <7> it has bugs when reordering the columns <7> but overall is nice <7> lol <7> http://86.126.152.161/CodeSnippets/DHTML/table/clipboard01.jpg <7> check this out :)) <8> Hi guys. Is there a style property that would prevent the cursor from entering into a readonly input field? <7> Rex_Goodhear what exactly you mean <7> if it's read only you can't edit it <8> I don't want the readonly field to receive focus at all <7> <input onfocus="this.blur" i think should do it <7> blur()
Return to
#javascript or Go to some related
logs:
#chatzone #linux #linux tske 5 #ubuntu #MissKitten #london #MissKitten #chatzone ubuntu+coneccion+internet
|
|