Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a 5K text file of vocabulary words (over 100,000 words, either in xls or txt file). I only want to test if a given string exists in the text file using javascript / jquery.
1) Do I need a library function to do this?
2) Is the size of the file a problem in terms of performance?
Thanks for any help...
Since you haven't tried anything yet or provided code, I'll give you a general layout and place to start.
1) Get your data file via Ajax
2) Use indexOf or match to check for a match. Performance stats here.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I search about protect my javascript code by changing his variable names (complicate the code lisibility like on jQuery).
i find jasob application and i like it because it change maximum variables compared with other system like jscompress
i want to create php code that can transform maximum of varibles and put the compared in database to reverse action, it's seems to be very difficult to do.
Can someone know a existant code like this have proposition to simplify?
protect my javascript code
I don't think that is practically possible. JavaScript is rendered on Client-Side, so no matter you do security, the JS files still going to be downloaded on the client-machine.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In his video tutorail
http://net.tutsplus.com/tutorials/php/codeigniter-from-scratch-day-1/
the author goes to the Codegnitor web site. At first (1:32) the site looks strange (like it did not have any CSS behind it), but when he refreshes it once more the site looks like it should (1:37).
Does anyone know what is the mechanism behind it? I guess that JavaScript calls CSS. Can anyone give me some more details/examples.
Namely I would like to have my site working just like that.
CSS gets activated by 2 possible methods.
Invocation by DOM when the html file is parsed.
Invocation of CSS forcefully by JavaScript's functions.
On this video second method has been used.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to get table data from some website. Which best way to retrieve that data if I use javascript ?
Thanks before
you cant not use JavaScript because you cannot make cross domain requests with it.
if you want to use PHP, you can use "http://simplehtmldom.sourceforge.net" library so you can analyse the html from any website. this library is very easy to use and very helpfull.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm looking for a small and lightweight way to get the screenshot of a website with just the URL. I've heard you can do this with XML/PHP, or even use another service to return the image. However, is there a fast simple way to do this? Preferably in Js? Also, to clarify, my project is going to be dynamically generating these thumbnails.
You can't do this with html/php alone. You need a browser to interpret the content on the page and get a screenshot. Some sort of software. OR use a 3party service
http://www.browserstack.com/screenshots/api looks good, I haven't tried them though
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to 'edit' a file that's already saved on my server, example:
<link rel="stylesheet" href="css/plugin.scss">
But not only that, I want to edit a certain specific line, in SASS you can define variables in css, basically, I'd like to search inside this file with JAVASCRIPT for the string:
'$increment:
And if it's found, find out what line it is on and replace that whole line with:
'$increment:10;
Basically I want to generate a downloadable file for the user that's custom depending on what settings they choose via a html input field.
If there's a simpler/better explanation I'm all ears :)
The javascript you seem to be referring to (jQuery) is a client-side language so you're not going to be able to do anything on your server with it. A js solution that could do this may be written in nodejs but you may be better served using something like Python, Rails, or even PHP.