Use <canvas> as a CSS background
I haven't got a practical use for this, I was just wondering if it is possible. Can I use the canvas element as a css background? ...
I haven't got a practical use for this, I was just wondering if it is possible. Can I use the canvas element as a css background? ...
This is my ajax function: function ajax_call(call_method,data_to_send) { logger("function ajax_call. var data_to_send: "); logger(data_to_send); $('.clickable save_button').hide() $.ajax({ type: 'POST', url: call_method, data: data_to_send, success: function(data){ logger("data returne...
I want to create an online web page editor using jquery. How complicated is this type of feature? (yes I know its hard to answer this) From what I can tell, you are simply referencing the various elements on the page and when a user selects a color in a colormap, you simply then cycle through the elements on the page that match a parti...
So I have a pretty simple bit of JS using the navigator.geolocation.getCurrentPosition jammy. $(document).ready(function(){ $("#business-locate, #people-locate").click(function() { navigator.geolocation.getCurrentPosition(foundLocation, noLocation); }); navigator.geolocation.getCurrentPosition(foundLocation, noLocation); f...
Hi, I have the following function in a .js file in index.html function getValues(){ $.ajax({ type: 'POST', url: "http://localhost/getData/getdata.php", success: function(data){ var dataValues; var apnd; dataValues = String(data.NSE); apnd = "a"; updateValues(dataValues, apnd); dataValues = Stri...
Hello guys I have created a jQuery script to drag elements over the document. I done the script and is working perfectly. but when I add an image the script fails. Why I cant drag an image over my document, I can drag other elements such as div, span etc . I am not interested to use jQuery UI for this purpose my code follows <script l...
I was recently berated by a fellow developer for using "string math" in an app I wrote. I'm pretty new to the whole development thing, with no formal training, and I haven't heard of this issue. What is it? Code in question: $('.submit-input').click( function() { var valid = true; $('input, select, radio').removeClass('error');...
Hi. I want ny users to give ny app "manage_pages" extended pemission but i want my users to be able to select which of their pages they give permission to. I have this code which is responsible to autenticate and get the users permissions: $('#btn-connect-facebook').click(function(){ FB.login(function(response) { if (respo...
So I'm trying to verify the pop-ups occur in my Selenium 2 functional tests. Right now there seems to be no built-in way for selenium 2 to handle these. Is there a way to create C# code that will notice an alert, and simulate hitting the "Enter" key? ...
For some reason for(var i in Math){console.log(i)} doesn't show the expected tan, cos, atan2, E, PI in Javascript. ...
Hello! This is a general kind of question. Very often, I need to write JavaScript for web pages. Keeping in mind best practices, unobtrusive js, etc. I have my JavaScript in separate *.js files. Every page gets its own js file. What's been somewhat bothering me lately, is the mix of presentational code with functional code that I ...
My background is in C and I've picked up PHP, mySQL, HTML, CSS without too much issue. But I'm finding Javascript/jQuery surprisingly difficult to get right. Very frustrating. Why? It seems to violate a number of traditional programming principles (e.g. variable scope) Undefined variables seem to appear out of nowhere and already hav...
As a complete Javascript novice I'm challenged by what may seem like simple concepts to the almighty javascript overlords that call Stackoverflow home. My problem isn't really problem. When I'm doing my javascript up in my code editor down at the ghetto I'll often see stuff like this function name(e) { if(e.KeyCode) { .....
I'm building a wysiwyg-editor with an editable iframe using execCommands. Now i need to use the command 'insertHtml' which works perfect in Chrome and Firefox but of course it doesn't work in Internet Explorer. What is the standard solution to this problem? It's okay if it only works in IE8 but IE7-support would be nice too. ...
Hi, I need to know if it's possible to create a hook on the "Insert image" button to open a custom window (a personal media manager). If it's, how to return a value (image link...) to the wysiwyg ? Maybe there is a documentation but I didn't find it. Thanks! Cyril ...
Hello guys when we drag over an image, the image become selected. how can i disable this selection using jquery or javascript? I am trying to create a custom image crop script. i tried e.preventDefault() but it is not working in IE6, please help Thank you ...
I have 2 separate jquery scripts on one page to submit topics to the database. One script is for sending the topic title and the category it belongs to. The second script is for uploading an image. I managed to send data from both via 1 button but validation isn't mutual. For example, if I fill in all the text inputs but don't upload ...
Hello, Could someone help me out in getting a popup with a gridview(with 2 columns) inside when a link is clicked. I need some help badly. Can someone please tel me how to start and the procedure. I will be thankful. 2 columns in the gridview include checkbox and Text. This should get populated from database and after modifying that. ...
how to make fancy scroll? something like this image. ...
I wrote a bookmarklet, when the user will click on it in his browser it will do some actions on the current website and show some results in a popup. In some websites my bookmarklet fails to load because problems may exist in the current website. My bookmarklet code is using the jquery library. In some cases the errors happens in ...