Tagged Questions
1
vote
1answer
48 views
autocomplete jquery -renderItem- option
$(function() {
function log( message ) {
$( "<div>" ).text( message ).prependTo( "#log" );
$( "#grille" ).scrollTop( 0 );
}
$( "#my_ac" ).autocomplete({
source: ...
1
vote
1answer
27 views
Improving my jQuery animation
I wrote the following fo create an animation which collapses a navigation bar, load new content for it and expands it again. Meanwhile, the rest of the page content fades out, loads and fades in ...
0
votes
0answers
47 views
Optimizing Jquery Twitch TV Application
I'm trying to get in the habit of writing better looking code and more efficient code blocks. I wrote this Twitch TV Application which allows you to add and edit channels and it lets you know when a ...
1
vote
1answer
85 views
Optimizing my jQuery form popup plugin
Im trying to get better at writing jQuery plugins. Was hoping to get some feedback on my notes, but also just about the general architechture and implenmentation of this pattern (dont even know this ...
1
vote
3answers
87 views
Improving Javascript code of a failed test
I just failed in a JavaScript test and I would really appreciate some comments of how I can improve so I can keep learning.
The test was about making a form interactive, where the code should do ...
4
votes
1answer
91 views
Is there a more efficient way to code this “Item-picker”?
I would love to show you one of my bigger scripts to improve my technique.
This script is some kind of Itempicker. You choose your Item first (toprow), then pick a color. The color of the active Item ...
3
votes
1answer
68 views
Optimize jQuery Iteration
I have a list of elements (well, nested lists of elements, really) that the user can reorder (using jQuery sortable()). A simplified view of the structure is something like:
<div ...
0
votes
1answer
40 views
Optimizing a jquery user interface application
I'm working on a javascript intensive user-interface application. (At least it's intensive for me, it's my first serious javascript project).
I have a few jquery functions going whenever a div is ...
4
votes
1answer
58 views
Looping through Radgrid in JS is slow, can this be faster?
I do a single select in one radgrid, and based upon that selection I want to select multiple rows in a different radgrid:
<telerik:RadGrid ID="rgPaymentLines"> <ClientEvents ...
2
votes
1answer
46 views
Optimize Clock Update Code To Prevent Bottleneck Resulting In Time Lost
I use the following PHP Code to output the user's local time and the servers time (office time). $local_time and $remote_time are the corresponding UNIX timestamps:
<span class='icon-time' ...
3
votes
2answers
112 views
Javascript function optimization
I created a function that rewrites file names according to the available space on screen:
@{
var index = 0;
foreach (var item in Model)
{
<div class="gallery-item">
<a ...
0
votes
0answers
60 views
jQuery ui draggable-sortable List, used to Create a Gui Sql Crud-Capble Data-Driven Website application
in this JsFiddle (the link below, it's also my first JsFiddle setup , great tool!),
I am trying to implement a new jQuery ui : draggable, droppable and sortable list , so this gui will be the ...
0
votes
0answers
120 views
Jquery Optimization for multiple filters
I have the code below on an internal site I've built to handle some php generated table data. The data is a mix of int, string, and date, sometimes with markup in rows. The code all works, and it's ...
2
votes
5answers
249 views
Fastest way to remove/hide a lot of elements from a list
I have a dropdown that contains around 100,000 rows which make up a list.
<input id="search" type="text" />
<ul>
<li>item 1</li>
<li>item 2</li>
...
5
votes
2answers
380 views
Improve jQuery parallax site (on scroll)
I have this code for a website I'm working on.
It uses window.scroll events to parallax some items, It's running a bit slow on average machines. Is there any way I could improve it to make it run ...