I'm trying to decide whether to use a custom ASP.Net Ajax Extender or jQuery to perform a simple web service call. The web service method accepts a customer ID and returns the customer name. I'm leaning towards jQuery because of it's simplicity. The only problem is that due to my company's IE7 Group Policy settings, the first time jQu...
I'm using jQuery Accordion and would like to make a printable page where all the "accordions" are expanded. I found the .accordion( 'destroy' ) option. However, when I implement it only the existing visible div is show after click the destroy button. Any help would be appreciated.
<link type="text/css" href="/js/theme/ui.all.css" rel=...
I am using jQuery to simulate a popup, where the user will select a series of filters, which I hope to use to rebind a ListView in the original window.
The "popup" is opened via an ajax request and the content is actually a diferent aspx file (the rendered output is injected into a div that acts as the popup).
I have another ListView i...
Hi everyone!!
Well... for me it's just the same thing, but I don't know why this
works in 1.2.6 and doesn't in 1.3.1:
if ($('.trSelected').length == 2)
{
alert("hello");
}
In this case, I'm selecting rows on flexigrid and used to work just
fine in 1.2.6.
To work in 1.3.1, I had to do this:
if ($('#flexDiv .trSelected').len...
I'm trying to do what is supposed to be fairly simple with facebook connect, but having no luck.
When a user logs in, I want to show that users details (refreshed without reloading the page), and when the user logs out, I need to go back to a logged in state.
The code I have is
function update_user_box(){
jQuery('span#logge...
I've got a situation where a user needs to be able to drag and drop an image onto a section of a dynamically generated portion of a page that will will always be enclosed with <pre> </pre> tags but will have no other information.
The only way I can I think to accomplish this is to add a wrapper div with a different z-index, but is it e...
Running into the strangest problem on iPhone using jQuery with my WebViewController.
I have a div into which I append content:
<div id="thumbnails">
Here are your thumbnails:
<div id="mythumbs"></div>
</div>
The code looks like:
for (var i=0; i < thumbs.length; i++) {
var item = thumbs[i];
$('<img class="imgthumb" />').dat...
I need a modal windows that tells the user to wait until I've finished some work on the server. Looks like both BlockUI and jqModal can do this.
Do you have any experiences with any of them? Pros and cons? I'm using ASP.NET MVC.
...
I'm trying to access a drop down box from a page created by SQL Server Reporting Services using JavaScript. I would normally just getElementById but the the id and name attributes for the drop down element are generated by the server so I don't want to use that to reference the element. i.e. If the design of the page changes in the futur...
I have a [WebMethod] that load an html snippet and add some content to it. That [WebMethod] is then injected into a page using $.post() and .html().
A piece of snippet:
<p id="name"></p>
The [WebMethod] add content to it:
<p id="name">Joe</p>
The snippet also contains a JavaScript code, like:
alert($("#id").text())
The problem:...
Hello all,
I borrowed the following code to try to make an ajax-enabled WCF service work since I kept getting the 405 method not allowed error:
$('#btnSave').click(function(e) {
$.ajax({
type: "POST",
url: "AjaxWcf.svc/ConnectionTest",
contentType: "application/json; charset=u...
Hi
I'm currently loading a view(ascx) into a div using jQuery load(). I want to pass some variables to the view when loading it though so i'm using $.load(view, data); This does not seem to cause any problems but i have no idea how to access the Json object i'm passing in to the control.
Here is the jQuery:
var val = {"Id":"1"};
$("#D...
If i submit my ajax form from jQuery, and do
print_r($_FILES);
i get a list of files uploaded,
but if i do something like this
$add_form->sound_file->isUploaded();
or
$params = $this->_getAllParams();
print_r($params);
i don't get my file in zend parametars, and i don't get it uploaded!?
Mayb the problem is with he context b...
What's the equivalent to making this call eval('('+responseText+')') in jQuery? I also understand that eval is not that safe, so I'm looking for something safer and more idiomatic in jQuery.
...
I'm trying to find a way to extend jWysiwyg.
I need a function to insert this code inside the editor:
<a rel="shadowbox" href="images/photo_big.jpg" class="option" >
<img src="images/photo_small.jpg" id="rightcontentImg" alt="photo" />
</a>
So not only the image, but also a link.
I know i can use something like this to insert image...
I am using the excellent jQuery MultiSelect plugin as advertised here: http://abeautifulsite.net/notebook/62
The problem I have is that I would like to submit the form when the values have changed.
Having all sorts of trouble getting this one working, does anyone have insight into how to achieve this?
Also open to alternative jQuery p...
Hi
I have tested this on Firefox, Opera and Seamonkey. It works fine. When it comes to Internet Explorer 7. It works but upto a certain point. I am making an AJAX call to a PHP script every few seconds. In IE7 it makes the first AJAX call and it retrieves the data but it doesn't do it again ever. Even though i have a setTimeout function...
So I know what this does:
$(document).ready(function(){
// Your code here...
});
Now I have seen people doing this lately:
<script type="text/javascript">
$(function(){
// Your code here...
});
</script>
Are these two ways of doing the same thing?
I see an anonymous function being declared inside a jquery selector her...
I'm having a hard time picking up how to grab the dimensions of an element with jQuery. Here is my sample code:
$(document).ready(function() {
var width = $("#image_1").width();
var height = $("#image_1").height();
document.write(width);
document.write(height);
});
Now of course I have an image wi...
How can I wire an event to fire if someone presses the letter 'g'?
(where is the character map for all the letters BTW?)
...