| |
| |
| |
|
Page: 1 2
Comments:
<0> hi <1> hi <0> what is this channel all about? <2> guess <1> lol <0> :-) <1> let's make a bet will you? <0> ok, I'll be more specific <0> what can I find here ? <1> nothin <2> http://javascript-channel.com <0> tried that allready <0> the link for channel rules is not working <2> can't help ya then <1> to make that straight, if you've got a question related to javascript, you may get an answer <0> nice !
<0> somebody knows links/books on how to make an ajax site? <1> yeah <3> don't build an ajax site <0> why? <3> because ajax is ment for compact applications <3> like a chat client <3> or something small that displays data in real time <0> and what's wrong with writing compact apps, like an e-shop? <0> or a booking system for hotels? <3> you won't have back or forward button for example <3> and it's not looking as proffesional as you may think it does <0> ok, I'm aware of frw/bckwrd buttons <0> and I think that its appealing to a large proportion of potential customers <3> I just told what I think, I would fire you if you would come with this proposition, but that's just me <3> *told _you_ what <0> :-) ok <4> huh <4> what i miss <3> building an entire website using ajax <0> what makes u believe it looks not so profi? <3> unless you make a real application out of it <3> it will look like a kid's play <3> probably some customers would be like "wow" <0> sorry, gtg <4> sk8ing you got IE handy <3> ya <4> http://demo.affinitygo.net <4> ajax and some other **** <3> I know your app <3> but that's an application not a website ;) <3> uh... my connection is down <4> its a website ;) <3> something else than what I've seen already? <4> not but at the end of the day its a website <3> in my opinion everything that runs on the same page is an applcation <4> lol ok <3> a website would be composed of webpages and maybe of some applications <3> a webpage is a static thing, that gets rendered only once <3> when it gets transformed client side that webpage becomes an app <3> building a website in ajax it's not that smart at all + it breaks all kind of things <3> I mean.. fine... you build an application <3> but not a website <3> why have your own back forward buttons when you already have ones? <3> not talking about the fact taht such a page would be search engine unfriendly and linking to it would be impossible <3> unless you provide a full link somewhere on the page <4> :D <3> am I wrong? <4> no <5> So, I have a requirement to stop mouseover effects from working in an unfocused window. I have a solution that works in Firefox but not Internet Exploder. Does anyone know how I can acheive this cross-browser? <6> **** i tought css is the only cross-browser crap i should be worried about...i just started learning javascript, i don't want to experience same optimising <7> hi when i submit a file through a form, how do i get the open file dialog box to only populate a certain extension? <5> I don't think you can Representor. You'll have to check on the server side. <5> Don't forget a user can also rename the file. <8> is there a way to print a background image in a table? <9> why not <10> check you browser setting, not html nor javascript can help you <8> is there another way besides browser settings? <8> i just need to put some text in the image <11> good morning all <12> hi i have a question for help
<13> there is a way to replace each "Enter" in textarea in somthing? <14> I have a large list of names with an input box at the top. I'm trying to write a seek feature where entering a few letters shows only those names that match. (ie. uko would show "sukotto" and "Ukomi" etc). I have a function to iterate over the list and apply a .match that runs on keypress, but as you can guess, it doesn't scale well. Can anyone point me to some good code samples I can study to try and get it to run faster? <11> Sukotto, what do you mean it doesn't scale well? <14> I mean that it gets very slow as the list grows. Once you get up to about 1000 names (my expected max is 1500), it takes a long time to do the search on each keypress. the ability of the user to enter more characters is impaired <14> they can still enter them, but it takes several seconds for them to show up. <10> just think <3> Sukotto, you could start using substr instead of match for the start <14> so <input field onkeypress="findAsYouType(this.value);" /> will interrupt the previous call to find <14> ah, that's an interesting idea <11> Sukotto, setTimeout clearTimeout <11> that's what I did <3> and for what you're doing you can use a mutex <3> in fact... some kind of <3> you could set a var running = true; <10> you should always incur a delay before the search start <10> that is what Aquel talking about <3> for (var i = 0; i < len && running; ++i) <3> it has <10> kind of <10> dig up the hint Aquel has there <3> you set running to false then you start a new thread with setTimeout <3> you also clear the previous one <11> sk8ing, non <11> sk8ing, no <3> no? <3> why not? <11> you don't need this variable <3> of course you need it <11> okok sorry i missed you rpoint <11> i read again your code :) <14> you're suggesting something like onkeypress="clearTimeout( find() ); find( this.value); setTimeout( 'find()', 100 ); " <3> else if the function is running you end up having 2 instances of it running at the same time <10> technically, you should need the var <14> you're suggesting something like onkeypress="find=false; clearTimeout( find() ); find( this.value); setTimeout( 'find()', 100 ); " <11> you do need it <3> you could do it OO <3> create an instance of the cl*** <10> is the function need to see if it is really safe to display the search result. if not, even it is searched, can just ditch the result, since a new search is in the piple line <11> Sukotto, no <3> myCl*** = new mySearch('searchThis'); <14> ht311 right. if they add more characters to the seek, I'm happy to throw away the pending result <3> then on a new search you do myCl***.stop(); myCl***.NewSearch('boom'); <10> you just make Sukotto's head spin faster :) <3> :) <14> You all give good ideas but now I need to sort through them :-D <3> well, mine would be pretty good <3> cuz you have only one instance <3> and you're not messing with more functions running at the same time <10> Sukotto, just sort out what you need to do, write down the comment, star filling the blank, getting into the OO space won't save you the amount of code that need to write, but once you get all your code done. it will be nice to wrap around your code in a cl*** <15> range[0] = 2006; why am I getting missing : after id property? <10> then, that is not the line causing the problem <3> :) <14> well, I have the code to iterate over the list, find the elements I care about, and set style.display. perhaps that's enough if I can figure out exactly what sk8ing suggested <14> Thanks a lot for your suggections guys. I really appreciate it <3> function mySearch() { var running = false; this.startSearch = function(toSearch) { running = true; var len = something; for (var i = 0; i < len && running; ++i) { /* stuff */ } running = false; } this.stop = function() { running = false; } } <3> var mySrch = new mySearch; <3> onkeypress="mySrch.stop(); mySrch.startSearch('searchTExt');" <10> nah <10> the key is having a slight delay before the search start <3> why? <14> since genearlly people type more than a single character <14> generally <3> so what? <3> it gets stopped & restarted <10> you just wasting time to do a few loop before the person type the next char in next 50ms <10> and what if you change the code to launch a xmlhttprequest? <3> well... then you use a setTimeout <10> a proper one is to use a mix of both method <14> I think I should use a mix of both <14> err... what ht311 said :-)
Return to
#javascript or Go to some related
logs:
#linuxhelp #java navicat (errno: 150) #linux aaaaaaaaaaaaaaaaaaaa berly keyboard cum se face un bnc #MissKitten #windows #c++
|
|