Code Project Forum » JavaScript
660 FOLLOWERS
Chat about anything related to Javascripting, programming, and coding language, share your problems, ask questions, and get various solutions and advice from the experts. This category of the Code Project forum is dedicated to discussing JavaScript.
Code Project Forum » JavaScript
2M ago
It is taking around 3-4 seconds to load 500 records which is very slow as it is hampering my app performance.
var source = { datatype: "json",
datafields: [ { name: "Rid", type: "int" },
{ name: "ParentRid", type: "int" },
{ name: "Name", type: "string" },
{ name: "Text", type: "string" } ],
id : "Rid",
localdata : dataSource,
async: true,
hasThreeStates: false };
var dataAdapter = new $.jqx.dataAdapter(source);
dataAdapter ..read more
Code Project Forum » JavaScript
3M ago
Does anyone know what happens if you pass 0 to this function?
https://pbs.twimg.com/media/GDh5G70XcAAyqTv?format=jpg&name=small
Thank you ..read more
Code Project Forum » JavaScript
3M ago
I have a project that is to involve opening several image files onto the same place on the screen to overlay or not overlay them. I know nothing about java script, but someone gave me a sample script that sort of does what I'm trying to do.
In that script the files are all located on the web and it references the html links for them. I'd like to be easily shareable and not really have to rely on the images being hosted somewhere. I thought I could include the image files and along with the script all in one folder so they't all be installed in the same place. I tried the full path to that pla ..read more
Code Project Forum » JavaScript
4M ago
how to set drop down down list and submit button in JavaScript ..read more
Code Project Forum » JavaScript
6M ago
Making a fetch call and getting html back, like so:
HTML
<tr>
<td class="heading">JGServices</td>
<td class="numeric-amount">
<input type="text" size=10 value="99.00" onfocus="this.blur()">
</td>
<tr>
<tr>
<td class="heading">ShippingHandling</td>
<td class="numeric-amount">
<input type="text" size=10 value="25.00" onfocus="this.blur()">
</td>
<tr>
<tr>
<td class="heading">District</td>
<td cla ..read more
Code Project Forum » JavaScript
7M ago
I have been racking my brain trying to figure this out. All I want to do is have a
element come from the right edge of screen into the center of the screen slowly. I'm trying to use the "transition" method via javascript and I'm just lost. I want this to happen as soon as a click on a button control. Please help!!!
Thanks ..read more
Code Project Forum » JavaScript
7M ago
Dear all,
I'm currently dealing with unit tests using Jasmine/KarmaRunner.
I'm wondering whether it is possible, that I can be shure,
that a tested method does not make other calls than the monitored.
I'v learned so far, how I can check the count, arguments and order
of calls from the tested method, which I expect.
But what if someone inserts a new line into the tested method,
that is unknown in the test und does "strange other things"...
Is there something like "Jasmine.allCalls( object, 'method')...?
Thx in advance and best regards!
Please stay objective and friendly ..read more
Code Project Forum » JavaScript
8M ago
I wrote a function, where one can update an invoice. So the user clicks edit, the modal pops up, they change the price, and the function calls an API, updates the database, and processes the returned data.
Then it calls a function within, that changes the invoice price on the page, and creates a mutation observer to detect the price change, and tallies up the invoice cost, and changes the total at the bottom.
The purpose of this mutation observer, is to wait for the DOM to update the cost, and when the DOM signals it's been done, then go back to the DOM and tally up the cost, and change the ..read more