I've written a small web application which is basically a JQuery powered chat client within the browser, to get the posts I'm polling the server with an AJAX request and then appending any new replies, I'm worried about making this as efficient as possible while not losing the realtime feel.
http://darklightweb.co.uk/RealTime/
I can't ...
Hello guys,
I'm working with a Slideshow, and I'd like to give to the items in it a smooth pop-up bubble, to give some more info about them on mouseover.
The thing is, when I use the nice system that I found here (inspired by a post in jQuery for Designers), combined with jCarousel Lite, it seems to be a conflict.
I got both versions ...
I'm trying to get the id and element name from the HTML tags. This code works:
jQuery(document).ready(function(){
$("*", document.body).mousemove(function(e){
$('#mpos').html(e.pageX +', '+ e.pageY);
e.stopPropagation();
var domEl = $(this).get(0);
$('#elem').html(domEl.tagName);
$('#ide').html(domEl.id...
Hi.
I'm wondering what is the right way to do dom insertion of complex elements.
Until now, (with jQuery) I used to first build my element and to insert it once finished. I thought that it was the most efficient, since DOM access is costly performance-wise.
But with native js, I read that to avoid memory leaks, each new dom node shou...
According to the doc, the 'error' ajax event gets passed the XMLHttpRequest object, 'success' does not.
http://docs.jquery.com/Ajax/jQuery.ajax
That's a shame, because I would like to be able to access the HTTP status code in success. I am doing so successfully with error.
error: function(data){
alert(data.status)
}
Any leads would...
I use lot of jquery in CMS that I made myself and now I've noticed some strange behavior of Google Chrome when it tries to display content of CMS.
When clicking on link via navigation menu search form is displayed like this:
sometimes even like this:
But when I refresh page using refresh button or F5 then it's displayed correctly. In ...
Hi all,
I have the following problem. In text input filed which work as an auto-completer some of suggestions it returns are wither than it. The problem comes when you leave the field. In IE the text cursor is positioned on the end of the suggested string, so you can actually see only the last part of it. So I used the code bellow to fi...
Hi,
If i want to create a JQuery UI dialog, i use something like:
var settings = {autoOpen:false, draggable:false, and so on...};
var dialog = $("#container").dialog(settings);
But now i want to know how i can i retrieve dialog settings as shown above, something like
dialog.getSettings();
I need it because i have an application t...
I see some web sites use dynamic forms(I am not sure about how to call them!) to edit a group of data. For example: there is a group of data such as name, last name, city, country.etc. when user clicks on EDIT button, instead of doing postback, a form, consisisting of 2 textboxes + 2 comboboxes, dynamically opens to edit,And then when yo...
My code is here
$("a[href=$.jqURL.url()]").hide();
$.jqURL.url() return current page url.
But this code don't work
Is it possible to select dynamically?
...
I am so confused that I thought to ask you for your opinion.
I have written few jquery code with asp.net. But there is group of developer in my company who think that javascript/jquery can be turned off and is insecure
if javascript is insecure, why to use it at the first place
what are the advantages of using jquery with asp.net apar...
Hi,
I use an asp (classic) utility file to create json objects from an SQL database, see:
http://code.google.com/p/aspjson/
here is what I get from the server side:
{"results":[{"Opt_Name":"BARR","Opt_FirstName":"TomTest","Comp_Name":"My_Company"}]}
Which is valid json, at least valid for jsonlint.
BUT this never triggers my callba...
Hi,
I am a little bit stumped with the following problem and I am afraid that the solution is too obvious but I don't see it anymore. Problem, how come that this jQuery code works:
$(document).ready(function() {
var q = $(".box").val();
$.get("db.php", {searchterm: "test", type: "search", time: "2pm" },
func...
Hopefully this hasn't been asked before as just a slider question, but I couldn't find an answer when already browsing questions. So, here goes: I have a SelectToUISlider (http://www.filamentgroup.com/lab/update_jquery_ui_slider_from_a_select_element_now_with_aria_support/) which is basically a modified JQuery UI Slider, and I'm using a ...
I would like to know how I can maintain the scroll position when I open a jQuery dialog.
Here is the code I'm using to open my dialog:
<a class="link" onclick="openmyDialog();" href="#">Open a dialog</a>
And the function :
function openmyDialog()
{
$("#dialog").dialog('destroy');
$("#dialog").html("msg");
$("#dialog").di...
I'm trying to simulate keypresses and clicks in jQuery, which is working to blur the toolbar in IE6 but in Firefox it seems to remain open.
Is there some way to blur the editor or some setting that I'm missing that makes it so that it doesn't steal focus and show the toolbar by default?
Update it is showing up because I am calling edi...
i write following code
<script type="text/javascript">
$(document).ready(function() {
$('#disp').load('index.php', function(){
$('#lobar').hide();
});
});
</script>
what i need to load index.php on page load in to div named: dis
Thanks
...
I have a blog. I'm insert yahoo pipe. I need to remove yahoo pipe icon after script load finish.
script is here>>
<script src="http://l.yimg.com/a/i/us/pps/listbadge_1.1.js">
{"pipe_id":"24f8f6a880eb3be0711d541","_btype":"list","width":"100%","hideHeader":true}
</script>
My code is here>>
$("script[src=http://l.yimg.com/a/i/u...
can we load PDF file with jquery .load
Thanks
...
Is there any way to know for events when move a window with "window.open"?.
It may be with javascript or using jQuery
Thank you.
...