Well, I was playing with Google query auto completion and noticed funny thing: if I for example type in "m" letter, it performs Ajax jsonp query. Then if I'll refresh my page and enter "m" letter again there would not be any query. The same thing happens with longer sequences of letters.
It's obvious that Google uses some client-side ca...
Hi!
I'm writing a jquery-plugin, that changes a css-value of certain elements on certain user-actions.
On other actions the css-value should be reseted to their initial value.
As I found no way to get the initial css-values back, I just created an array that stores all initial values in the beginning.
I did this with:
var initialCSSV...
On my site, http://tinyurl.com/ybubyd6
I'm using Google Maps API v3 to place house markers on the map.
The InfoWindows stay open unless you explicitly click the close icon. Meaning, you can have 2+ InfoWindows open at a time if you hover over the map marker.
Question: How do I make it so that only the current active InfoWindow is open...
Hi all,
So I'm rewriting my first google maps app and I'm looking at how I create info windows on click of a marker and it seems very inefficent to be adding a listener for each. Previously I've used GInfoWindow and EBubble (http://econym.org.uk/gmap/ebubble.htm).
I was thinking that I could use jQuery to show a div with dynamic data ...
I have this top bar menu:
http://yoursdproperty.com/
I need to have the text always take up 100% of the width. how do i do this?
if I add more links i want the sizing to be dynamic
any ideas?
...
Is there any way I can determine the currently focused control on a web page? I wish to save the focused control before my ajax callback and restore it afterwards.
Can this be easily determined?
Thanks,
AJ
...
Right now, The Server response and working with sends back a JSON response like this:
{"status":1}
After saving, jeditable places the actual response: {"status":1} on the page. Anyway to get around this issue
...
I have some elements with a function bound to the click event. I want to bind that same function instead to the mouseover and mouseout events. Is it possible to get a reference to the click event so that I can assign it to those other events? I'm imagining something like this (inside each()):
$(this).bind('mouseover', $(this).click());
...
What could be the cause of the validateDate() function not to execute when called?
The purpose of validateDate() is to take a string like 01/01/2001 and call isValidDate() to determine if the date is valid.
If it's not valid, then a warning message will appear.
function isValidDate(month, day, year){
/*
Purpose: return true i...
I know that to get a link to display current page state using CSS I would have to create new pages, but I would rather not reload the menu and use an iframe. So how can I keep my menu buttons with the current page active state in relation to the corresponding page in the iframe?
How do I attach a set of behaviors to the links on load ...
I have a search that operates by AJAX. It works perfectly well when the user presses the search button, the problem is... if the user presses enter... it submit the form rather than executing the AJAX javascript function. How can I make the Enter button call my AJAX function as opposed to submitting the form?
...
I have the following HTML/CSS:
#scrollpanel{height:100px;overflow-x:hidden;overflow-y:scroll;width:200px}
<div id="scrollpanel">
<div class="listing ref_1">...</div>
<div class="listing ref_2">...</div>
<div class="listing ref_3">...</div>
...
</div>
As you can see, the scrollpanel is a scrollwindow defined to have a ...
We have a fairly large asp.net website. The images, css and javascripts are property organized in the website project but as we are changing the look and feel of the website, I would like to know if there is a tool/add-in that will help me identify which images are not being used in the website. I would like to find the same thing with ...
I have a form field for "E-mail" address and I want to set up a small form at the top of each page that has a field for "E-mail Address" and then a Sign up button that takes you to a page to complete a detailed form for mailing list subscription. The two things I'm having problems with:
How do I pass the data entered in the form to th...
I'm running Cherokee on a Linux server, and I have a simple script like this:
$(function() {
$('#avatars, #Avatar').hide();
$('shoo').change(function() {
$('#avatars, #Avatar').hide();
});
});
But I keep getting Javascript parse errors. The reason is because if I access the script from my browser, it is truncated. The output is s...
function myobj(){
var gup=this;
this.lastindex=-1;
this.criticalSectionInTimer=0;
this.updateTimer;
this.start = function(l){
if((typeof this.updateTimer)=="number"){
clearInterval ( this.updateTimer );
}
this.updateTimer=setInterval(function() {gup.getMessages();} , 30);
}
this.stop= functio...
I'm not trying to load javascript with jquery or anything of that sort.
Currently I'm modifying swfupload (if you'r familiar with it, great, otherwise it shouldn't matter) to work with a website I'm building. I need the ability to upload, store and delete files. I have the uploading and storing working great.
I have a file called hand...
On my current project the business owners are ramming AJAX, jQuery etc down my throat. There is a requirement for 4 seperate forms for different policy types.
They want the user to be able to switch between these without visible page refresh and also generate more form content when certain submit buttons are pressed e.g. when a parent ...
Hey everyone,
I'm writing on behalf of YSTV; we're looking at providing embed options for our videos, and I've got a quick question.
We can obviously provide embed code to users such as
<embed height="360" width="480" flashvars="backcolor=0xffffff&autostart=false&file=http://ystv.york.ac.uk/static/videos.php?file=1040&amp;...
Hi folks,
Really hoping to get this finished up, and sadly I don't have enough experience to do these last steps. I have a long unordered list that will toggle closed with a button push and show only certain elements of the list. That is working great, but the problem is that I need to only show text within a span in that list. I saw...