Javascript help, please?

1 Answer

Answer :

any ideas, anyone?

Related questions

Description : How can I become advanced in javascript in 2 months?

Last Answer : Study hard…work hard!!!

Description : How do I simply repeat a line of code 4x in Javascript?

Last Answer : something like a for loop is pretty simple, and gives you a handy counter if needed. for(var i = 0; i < 4; i++) { forward(); }

Description : What's bugging my simple JavaScript toggle script?

Last Answer : answer:The toggle_visibility function specifies (eng, met), not (var1, var2), so it seems not to matter what order of parameters you send it, it's going to read (eng, met) always. function toggle_visibility(eng, ... = block'; } else { e1.style.display = block'; e2.style.display = none'; }

Description : How can I swap two integers without temporary variables using JavaScript code?

Last Answer : answer:This is a trick using the exclusive or operator ^ that was used when computers were short on memory. a = (a ^ b) /* a^b, b */ b = (a ^ b) /* a^b, a */ a = (a ^ b) /* b, a */ You can also do it using subtraction for numeric ... = a - b /* a - b, b */ b = b -a /* a-b, a */ a = b - a /* b, a */

Description : How to inherit a Javascript class?

Last Answer : answer:There is no such thing as classes or object-oriented programming when it come to Javascript. Are you sure you didn't mean Java? Java is a full programming language, developed by Sun. ... used to do thing like change the background color when you hover your mouse over a certain image.

Description : Why should I use JavaScript Library if it may effect the performance of a web site?

Last Answer : You might want to check out some extremely lightweight Javascript libraries such as xui, zepto, or jQuery Mobile. However, 17KB should not be a huge concern on iOS and Android devices. On phones with ... .example.com or mobile.example.com with minimal CSS, small page size, and no Javascript at all.

Description : How to implement a JavaScript code that doing "Set as my Home Page" in Google Chrome?

Last Answer : So, you’re saying the JavaScript code for doing this works in IE and Firefox, but not Chrome? That’s weird. Let me see if I can find a script for you.

Description : Is JQuery much slower than pure JavaScript ?

Last Answer : answer:You might be correct, there can potentially be more abstraction in JQuery with what you are doing when compared to pure JavaScript. But do note, JavaScript is client side based so it depends on your ... But if you are OK with the delay then keep using JQuery, if not, back to pure JavaScript.

Description : How, in javascript/jquery, can I change what "this" refers to in an event handling function?

Last Answer : By using the call and apply prototype methods of Functions. For example: function example () { console.log(this); } example.call(window); this will be the window variable. example.call( a string'); this will ... 2'); Hope this helps. If you need any more help with this, feel free to just ask.

Description : Is Javascript the best way to go when doing a ... photography portfolio site?

Last Answer : Those are all very different technologies that don't really compare to each other. Actionscript is for Flash obviously, which I would not recommend for doing an entire web site in. HTML is the foundation of all ... here. Or you could of course just put them on Flickr and let them manage all of it.

Description : Executing JavaScript in a page retrieved using AJAX?

Last Answer : Would assigning the scripts in page B to an “onload” event handler not work? (I’m new to this, but that seems possible. Forgive my kneejerk response.)

Description : How do I get rid of a javascript warning message from my browser?

Last Answer : Javascript gets mad when you try to access pages on a different domain. So your computer is probably running things as localhost and it is making a call and it says fuck no this is a huge ... . Javascript isn't supposed to load stuff outside of the domain that hosts it. This kinda explains it.

Description : Can I wrap native JavaScript methods with my aspects?

Last Answer : If I am understanding this correctly, you want to do something like authenticate someone, if the auth is returned true then invoke window.open. Really all you need to do is create a JS function ... I believe can be done semi-easily using something like Prototype to handle all of the XHR requests

Description : How can I open a text file in javascript?

Last Answer : Do you mean open a file from the file system? That’s not possible using JavaScript within web browsers due to security restrictions (imagine if that warez site you “stumbled onto” could access your file system…ouch!), but it is possible within some environments, like Apple’s Dashboard.

Description : What's the best editor for PHP/Javascript work?

Last Answer : Vim

Description : Can you use JavaScript to force-replace a particular image in the browser cache?

Last Answer : answer:I'm not sure about doing it in js but if you make it so that the image/stylesheet/javascript file in question has a unique string after the filename like '/images/header.jpg?somerandomstring', when ... the string. That way, whenever you deploy a new version, it'll have a new cache string.

Description : Mystery Javascript snippet?

Last Answer : it looks like a piece of obfuscated code. Because normally JavaScript even in it's most complex is still humanly readable. If it is not obsfucated, then someone must have some really messed up naming ... but for what little I know, it does not look like it would ever work for any browser.

Last Answer : It Basically One Scripting Language . It 's HTML With Work By . To say Anyway , that's it Almost HTML _ Like . It is Absolutely Free . It is That Someone Use To do Can .

Last Answer : JavaScript One Popular Scripting Language , which The web Page Interactivity, Functionality Increase , form Validation , browser Instruction , time, Date Instructions Etc. At work Used Is.

Description : How to use cron in ruby on rails (2.3.5). Please help?

Last Answer : answer:At the UNIX prompt, type man crontab and help documentation will appear. - Crontab is the interface you use to schedule jobs in cron. It launches a basic text editor - usually vi but anything you want - and you enter in one ... . 30 21 * * 3 /path/to/maintenance.sh # #---------------------

Description : Mail.app crashing at launch. Help, please?

Last Answer : I would run disc utility and fix permissions then reboot

Description : Programming/math question, please see inside (if you're a math wizard)

Last Answer : I wonder if ray-casting strategies would be appropriate here, since it’s like trying to calculate when one object eclipses another.

Description : What is Drupal? In laymans terms, please.

Last Answer : Just look at some of the sites in the showcase for examples of what people have done with it. It can be used for just about any kind of site you can think of. Which is why it’s a content management system…. http://drupal.org/forum/25

Description : Should high level programming be a mandatory class next to learning writing and reading in primary school and onwards? Your arguments please.

Last Answer : No, because it is not a skill that everyone needs to have. The people who use it will learn it, but it isn’t equivalent to reading and writing.

Description : Can someone please explain to me exactly how PHP, mySQL, Javascript, and HTML/CSS are related?

Last Answer : PHP is a serverside language, while JavaScript and mySQL are clientside languages. I think the difference is that PHP/HTML is the language used by the server to encode instructions for the web browser, ... have no idea whether it's accurate or not. I just started learning this stuff this week.

Description : Can you help fix this programming problem in Python?

Last Answer : You can’t treat arrays of digits as a single number. The easiest way to read a numeric string is to use the sys library to read a line from the keyboard. import sys print(“Enter value for mass”) mass = sys.stdin.readline() mass = float(mass)

Description : Programmers: Is this puzzle a "named problem?" and can you help me with it?

Last Answer : I'd call it enumerating a list of all combinations . There's a field of math called combinatorics which I did not study but I assume probably has a word for this. It doesn't seem like a puzzle ... each iteration, and tweak it to get the output format you want, but that's essentially it, I think.

Description : Geometry Gurus. Can you help me solve for an angle?

Last Answer : answer:The simplest solution would indeed be to have an IF ELSE statement there and have two separate cases depending on whether (RadialPointY - CenterPointY) is positive (@Angle < 180) or ... values it actually is cannot be determined without some sort of test of (RadialPointY - CenterPointY).

Description : Any programmers willing to help me solve a triangle?

Last Answer : Are you sure whether your language is using degrees vs. radians for the angle?

Description : Any Python programmers willing to help me find a bug?

Last Answer : Anything for the sake of science. I will look at the code and see if I can find the bug. As I understand it, you want to find the number of distinct locus values. By just looking at the csv ... just how the parsing is supposed to work. Also, what is the calling sequence to get the program started?

Description : MySQL help!

Last Answer : answer:You spelled “propeller” wrong, for one thing. Table SERVICE_REQUEST has a primary key, SERVICE_ID, which is a DECIMAL field. In your attempt to load the table with the error record, the secondary key value you attempted to insert for SERVICE_ID, ‘7’ is a CHAR value. That’s a show-stopper.

Description : I understand what the PL/SQL code below is supposed to do, but when I run the code, it won't compile. Can anybody help with why this is so?

Last Answer : answer:PL\SQL really isn’t my thing, but I believe you need something between the first IF statement and the ELSIF. What do you want it to do with the number if it is 50 or 90?

Description : Does anyone here have experience working with PL/SQL? I need some help getting started...

Last Answer : answer:PL/SQL is Oracle's take on SQL. It's mostly vanilla SQL, but with some Oracle-specific twists. You need Oracle SQL Developer or something similar. I doubt other relational ... more closely resembling a true object-oriented language, so make sure you get something Oracle-specific!.

Description : Hey mathematicians, would you like to help me find patterns between rolling ball clocks?

Last Answer : answer:I read the article & watched the video, but I don't get it. It takes 27 balls to display 12:59 (12 balls on the hours rack, 11 on the 5-min, 4 on the 1-min). But ... there are no simple rules among the numbers you've compiled. In other words, your algorithm might be its shortest description!

Description : Can you help me find an App that can help one make App's? (any platform, including pen and paper, details inside)

Last Answer : answer:I'm not sure if it's quite what you're looking for, but my buddy makes AppCooker. You can use it with AppTaster to create mockups and make them play. I can't speak to their efficacy personally because ... charge $75-125/hour. If that's the route you end up wanting to take, feel free to PM me.

Description : Excel spreadsheet help (formulas)

Last Answer : Which version of excel are you using? In 2010 it has a square root function which is =sqrt(CellNameHere). Also as far as the second problem with the multiplication table can you not just use the cell name for example =$B$1*A2 and then drag it down?

Description : Can somebody help me finding e-books to download for programming for MIT, Oxford, Harvard etc?

Last Answer : answer:“MIT OpenCourseWare makes the course materials that are used in the teaching of almost all MIT’s undergraduate and graduate subjects available on the Web, free of charge” http://web.mit.edu/ocw/

Description : Help with a basic Java program?

Last Answer : answer:just a guide, don’t know java correct the syntax and stuff and this should be your loop. INPUT=B for(A=1; A=0; a=a-1){ print/echo/say ”*”; } print linebreak// } for(A=B; A=>0; A=A-1){ for(a=A; a=>0; a=a-1){ print/echo/say ”*”; } print linebreak// }

Description : Help assignment of Linear Programming?

Last Answer : answer:It's just a means of solving problems when there are apparently too many variables to otherwise make sense of the situation with a simple algebraic solution. The problem needn't be complex, it only ... and how to set up the problem, see the site: http://www.purplemath.com/modules/linprog3.htm

Description : Did Network TV Programming Strategy help cable clean their clocks?

Last Answer : answer:They do something really, really stupid - they split the crowd. This is something I'm trying to help a few bar owners I know figure out. When there's a local metal show at Bar 1, ... worried about not letting each other make a decent profit, they're cutting their own profit in the process!

Description : Can you help me find some useful Wordpress plugins?

Last Answer : just to be sure you’ve checked wordpress plugins page right? you want each post to turn like a page? i think you would need to make that specially with either flash or ajax or something.

Description : Help with an error I am getting in VBA?

Last Answer : You might not have used selection with proper object. You can check it out in object browser (View->Object Browser) if the object you've used has that property/method or not. For example, if you are trying to ... block, make sure you end it with End With . Example: With Cells(1,1) .Value=1 End With

Description : [PHP] Forgot Password Help?

Last Answer : You could try using the built in PHP crypt() function, you pass the string and a salt you want to encrypt, then to decrypt it use the decrypt() function and the same salt. That should give you the same password back. Though really you should try to push for a randomly generated password on reset.

Description : Can anyone help me with some CSS?

Last Answer : How is it jumbled? Often for IE i use a second stylesheet and apply it using : < ![endif]—> The first one is your first stylesheet, the second is a stylesheet that only fixes the things that are bad in IE.

Description : Excel Help - Macros question?

Last Answer : this is the first post on here that i have not gotten a response for within minutes…I am shocked! Have a stumped your guys?

Description : Help With Tumblr (Disqus Comments)

Last Answer : I just ran into this same problem. I don’t suppose you know the answer yet…

Description : I have filled in all the information. Finally the invoice is something. Then comes the merchant number and bKash personal number. And with the reference number is coming. How can I make the payment. Help! ?

Last Answer : I think you want to buy something hosting or domain type , if so you take their personal number from your provider. Then send money by developing that number. And give the number from which you sent the money to their live support. They will pay the payment.

Description : Describe re-entrant procedure with the help of schematic diagram.

Last Answer : Re-entrant Procedures: A procedure is said to be re-entrant, if it can be interrupted, used and re-entered without losing or writing over anything. To be a re-entrant, Procedure ... program execution flow reenters in the procedure1. These types of procedures are called reentrant procedures.

Description : Salesforce SDK uninstallation from XCode?

Last Answer : Too many variables – only you know your code, how it was written, and how extensible (or not) it was in the first place. I assume you have been to the Saleforce API and SDK pages.

Description : Is there a program where you can identify music in a specific website?

Last Answer : Need Answer