Hello,
I have the following function:
jQuery(document).ready(function($){
$("div.findButton").click(function(){
UidID=Math.floor(Math.random()*1000);
PostCode=$("#postcode").val();
$.get("result.php", {postcode: PostCode,uid:UidID}, function(response){
$("#result").html(response);
});
});
});
example content of t...
I have a site where I display some jQuery dialogs. But in Chrome/Safari the dialog is not opened in center of the screen but a long way down the page. The site is programmed in ASP.NET but when I copy-paste the generated HTML to a .htm file the thing works fine. Very weird :/
Try:
http://tinyurl.com/yj4vkm7 - works in Safari/Chrome.
A...
Whenever I use .html withing a jQuery function such as jQuery.ajax it appends in Interent Explorer. Anybody knows what could be causing this?
<script language="javascript">
/*
jQuery("#data-grid").html('<b>test</b>');
jQuery("#data-grid").html('<b>test2</b>');
*/
</script>
OUTPUT: test 2
<script language="javascript"...
This is my first post, so first hallo all.
I have a little problem with Ajax and jQuery. On one page test.html i have one div with some paragraph and one img. On the index.html page i have only anchor for retrieval of that div using Ajax with jQuery. But all css(which i have set for that div only using jQuery) don't work after the succe...
I have a "box" popup that appears on mouseover for some links. The box is about 300px tall and the top side of the box is on the same level as the link position, however some of these links are at the lowest scrollable part of the page, thus the popup will be cut off.
Question
What values are used to detect the bottom of the page, or re...
Sorry if this was covered before in some way that I wasn't able to understand.
I'm somewhat new to JavaScript/Jquery and I normally enjoy wasting hours, fighting my way through things until I figure them out, but my lack of knowledge may be causing me to complicate things where an easier solution unknown to me may be available.
I've al...
I'm trying to do a cross domain POST request and have hit a wall (or two).
I can't put a proxy page on the server - so that is not an option.
I have researched getJSON, which works great except that I need to POST not GET.
Is it possible to do this? If it is not, can someone explain to me how getJSON works and why I cannot make a POST...
I'm having a puzzling issue with Javascript/jQuery and a handful of IE 7 users. I'm lost since I can't reproduce the issue with any IE 7 installation. Here's the code:
$("form").submit(function() {
$(this).attr("action",$(this).attr("action").replace(/^\/foo/,""));
$("input[type=submit]", this).attr("value",...
I'm writing a small jQuery plugin that binds to 8 divs on a page, each of which contains a form. There are two links for each widget that increment or decrement a field within the form and then POSTs the form. The problem is that all 16 links on the page all submit the first form on the page.
The source code is here:
http://pastie.org/6...
greetings,
I'm new with java script so bear with me!
I want to achieve something using JQuery selectors.
I have a list menu. It looks like this...
<ul style="width:auto">
<li>item one</li>
<li>item two</li>
<li>item three</li>
<li>item four</li>
<li>item five</li>
</ul>
Okay, so currently I'm using the parseInt function to retrieve...
I have a standard ASP.NET MVC (version 2 preview 2) solution with the actual project and server-side unit tests in separate projects.
Because this project is very client-side heavy, I want to make a ClientTest project as well that uses QUnit to test the main project.
I've thought of creating a regular ASP.NET webforms project with a ...
Hi,
I have a form to 'create a tag'. Using the jQuery code below.
$("#createtag").submit(function() { //same as above, but for form submit instead of button click
var newtag = $('#newtag').attr('value');
var type_id = $('#type_id').attr('value');
var company_id = $('#company_id').attr('value');
$('#crea...
I'm trying to write an "unbreakable" class using jQuery, so that:
<span class=unbreakable>
some text in here
maybe with a <span title="tag">tag</span> or something
</span>
would have each space replaced with . The problem is, if I do something like
$(".unbreakable").html
( replaceAll($(".unbreakable").html(), " ", "&...
I have a legacy system where I want to improve the user experience.
On one of the forms there are 2 drop down listboxes; the change of one ddl cascades to the next.
On the current form, this is acheived by selectedindexchanged event from which the other ddl can be repopulated.
Although this works, in order for the event to be fired, the ...
I am using pikachoose plugin for slider. But I changed a few code in the plugin to add links to thumbnails, it works perfectly on firefox, chrome. But when i open the page in ie7 or ie6 the reloads indefinitely. here is the code i added in the plugin
jQuery("#pikame li").each(function(){
var link = jQuery(this).find('a').attr('h...
i use jquery.form to send a form, but in may case below how use this jquery plugin
$('#htmlForm').ajaxForm({
target: '#htmlExampleTarget',
success: function() {
$('#htmlExampleTarget').fadeIn('slow');
$('#htmlForm').hide();
}
});
for($i=1;$i<= 10;$i++){
//form $1
form name="form$i" action="blabla.php"
input type="text" n...
I need a jQuery Plugin that makes a Sortable and Groupable List of my Data.
My Data is a Tasklist with a duedate, and i would like to have them grouped by date, and sortable.
Is there a plugin that can handle that?
I'm actually using dataTables, but it has some strange behavoir and bugs...
Like:
16-10-2009
- Task 1
- Task 2
17-10-2009
...
Hi gurus,
I am actually having a list of text boxes. I am using below code to load a date picker at each text box location when the text box is in focus. But If I click on top text boxes the date picker is loading at the background of the below text boxes even though it is starting at the clicked text box. I think this is css conflict of...
OK, I've checked this thread:
http://stackoverflow.com/questions/1012447/prevent-click-event-in-jquery-triggering-multiple-times
and attempted to unbind/re-bind an event as described but to no avail. I basically have a slider gallery, with a next/prev button. I want to prevent the next button from being clicked for the duration of th...
The title pretty much says it. I have an element that doesn't have a background image. I set one (a spinner) during an Ajax request using jQuery's css() method, then clear it with removeAttr("style") to revert back. Only one request is running at a time.
This, however, causes a GET for the background image not just the first time, but l...