Ok guys, so I have a question, I am new to react-native development and got a problem with a StackNavigator. When I press a button meant to navigate of the current screen, it gives me an error like this one: enter image description here This is the c
I'm new to PHP and javascript and I've run into a problem where I need to edit values in an xml document that is read in. I have an HTML Select that has been dynamically created by PHP code. function outputTableRow() { echo "<tr>"; echo &q
This question already has an answer here: From an array of objects, extract value of a property as array 9 answers This is what I have... [{ "programName": "Testing 102", "recommendedComparisons": [{ "programName":
I'm having trouble with AngularJs's url I need something like this: /api/menu/3 But Im getting this: /api/menu?menuId=3 I need this format beacuse I'm using Laravel. app.js: var app = angular.module('mainModule', ["ngRoute", "ngResource&quo
How do you check if a Django object is None in js? I currently have a variable person that stores a Django object or None. In my js I have: if ({{person}} != None) { execute_function({{person}}) } What seems to be the issue here?John Smiths answer ma
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-
When first opening the mobile app homepage it returns an error "TypeError: Jqueryxxxxxx is not a function" although it shows the API callback results "jQuery111309512500500950475_1459208158307({"code":1,"msg":"Ok&qu
I have one JSON data which I have written in my JS code as let CreateIssueFormData = (function() { return { "fields": { "project": { "key": "NC" }, "issuetype": { "id": "" }, "comp
I'm trying out programming Bootstrap and when I was going to change the color of my body using simply: body { background-color: #eba; width: 100%; height: 100%; } It didn't work, so my question is how can I style anything when using Bootstrap? I've l
I need to create PNG thumbnails of saved stringified JSON from fabric.js I have a database I am saving the JSON data from the canvas to, but I need to create a PNG thumbnail gallery from this saved JSON data. Rather than creating a bunch of canvases
This question already has an answer here: What is the difference between string literals and String objects in JavaScript? 7 answers I'm reading about the difference between String literal and String objects. See What is the difference between string
I'm creating a location-based chat app in Meteor. Now I want to render only the chat messages which are in the users region. The TheRegion.region variable gets filled with an HTML5 geolocation request. Template.locationchat.helpers({ messages: functi
Example Code shown here. This works, but I am wondering if there is another way to do this without having to create an event handler for the sole purpose of preventing bubbling up messages performed on it, up to its ancestors. Basically what I want t
I wanted to show and hide my TextBox based on value selected in RadiobuttonList. I wrote the following code for that $("#<%= rbtnIsPFEnabled.ClientID %>").click(function () { pfno = $("#<%= txtPFNo.ClientID %>"); if ($(&quo
I am trying to send a group of variables and using PDO to insert into my database, however when i run the page, i get an empty message box and nothing is happening on the page. This is how I am getting the user inputs. <div class="caption1" c
I have some issues with Google maps api v3. I managed to create a map where new markers are displayed when the user drag the map. However, it do not delete the past markers. I have read many tutorials and thread (especially this one: Google Maps V3:
How do I animate this movement so when I call the function later the item will animate? I usually use $(this).animate but not sure how to wrap this in it, since I'm calculating its position. Thanks. jQuery.fn.center = function () { this.css("position
So i have a map, and on hover on certain point, the address will appear. But i would prefer to keep the opacity for 5 more seconds so that the user could copy the text in that bubble. I have an example of what i have right now here. And i would preff
How can I display search result while typing on the Textbox using Ajax with jQuery?jquery autocomplete could be a good option for you. It's not enough with jquery and you'll need to add the jqueryui library but you may be using more features from thi
I want to remove all items in a WinJS ListView. What should I do?The simplest way is to set the itemDataSource property to null. listview.winControl.itemDataSource = null; When you need to start adding new items back in, just create a new Binding.Lis
EDIT Here is an attempt to make my question simpler. return this.someFunc(); == return { XXX:this.someFunc() }; What do I have to put in for XXX to make this statement true? I'm trying to create a function that can be chained. Let me write some hypot
here is my JavaScript code: var Model = { get: function(id) { return this.data[id]; }, data: {}, init: function() { var self = this; $.getJSON(urlToServer, function(data) { $.each(data, function(i, object) { self.data[object.id] = object; console.log
I'm really struggling with this one - sure I'm missing something simple. Here's the code :- function webcamupdate(webcamurl) { alert("I am a function to update the webcam with the url "+webcamurl); } function countdown(callback) { alert(callback
In JavaScript, how can I get the first and last words from an element's text? For example: <div class="content">this is a test</div>// output 'this' 'test' <p>This is another test</p>// output 'this' 'test' How can I do t
I am trying to create a list of links that would make up the elements of a form (will be used as a search feature). Basically, each link in the list represents a search category, so as users click on a link, their search results will be filtered. I w
I'm trying to add the ID's, which are the $hexcode values from the html span into an array. How do I do this with jQuery? Eventually, I'm going to need to grab these hexcode values and match them to a color index. <?php // display every color in the
I want to carry some extra hidden information (eg: postal code) in an HTML select/option dropdown list and make it available to a javascript function when user changes option box selection. This is the type of thing I would like to do (but it does no
I need to obtain the value of a radio button using javascript I have a radio group called selection <input type="radio" name="selection" id="selection" value="allClients" checked="checked" />All Clie
Is there a way to create your own HTML element? I want to make a specially designed check box. I imagine such a thing would be done in JavaScript. Something akin to document.createHTMLElement but the ability to design your own element (and tag).Yes,
Is there is any way/tool to detect the duplicated variables/methods names in the project JavaScript files?There is no such thing as duplicate names in Javascript. You will never get an error when re-declaring a name that already exists. To avoid over