I have 2 identical xhtml-documents which are in html (1st) and xhtml (2nd) extensions. The difference is in extension only.
Using ajax (jQuery 1.4.1) I try to get 1st, but web server (IIS 5.1) sends response with Content-Type: text/html instead of application/xhtml+xml. If I try to get 2nd, there are no problems.
For both documents I ...
I am using CKEditor for my asp.net mvc (C#) application.
I need to extract a part of html before pasting to the CKEditor.
For Ex, i have the following html ready to be pasted to CKEditor:
<html>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
Dummy Content
...
I currently have a JQuery Ajax method as below;
$.ajax({
type:"POST",
url: "default.aspx/UpdateData",
data: jsonString,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg){
alert('saved');
}
});
In the ASP.NET UpdateData method I'm using;
System.IO.StreamReader sr = new System.IO.StreamR...
Hello,
I am wondering if it would be possible to attach a tooltip to the slider handle? My current slider function is:
$('#slider').slider({
max: 18,
animate: 'slow',
orientation: 'vertical',
slide: function(e,ui) {
$('#storage').html(stora...
I'm trying to make an optional draggable div, which shows up at some condition. This does work for me. The Initial location is fine, but the new div pushes the panel below further below. Now I want the draggable panel to be displayed on top of the rest of the panels (without reshuffling the existing panels).
The code is below, and I put ...
I dynamically add an image on my page :
<div class="simple_overlay" id="overlay">
<img src="" />
</div>
<script type="text/javascript">
$(function() {
$("a[rel]").overlay({
var source = this.getTrigger().attr('href');
this.getOverlay().find("img").attr({'src': source});
});
});
</script>
Now, I need to get ...
Hello,
I have page for which I want to load different .tpl for different browsers.
I found this code to include external files using Jquery.
$.getScript("1.js",function() {
//this script is loaded
});
I want to make above code conditional based on browsers for Example
if($.browser.msie)
$.getScript("1.tpl",function() {...
Hi,
I want to display a properties div on click event of another div named abc, which has been dropped using jquery UI droppable. I could show the properties div by binding an event with the abc div, but I want to hide the properties div when the div abc loses its focus.
Thanks in advance
...
Hey,
I am building a web page for a software (not a browser but this software uses webkit as it's rendering engine). The window of this software has a size of 800x600 pixels. Users will be able to download collections of images as zip files that include appr. 15 images per collection. A white box represents such a collection (see below)...
Hi,
I am using the jQuery SpinBox plugin (from http://plugins.jquery.com/project/spinbox) on some text boxes on my form. But I have come across a problem. Some of these textboxes need to have their min/max properties set dynamically when the values of other fields are changed. I have tried doing something like this:
$("#tbxDelayEndDate...
hi;
the video is shown in a colorbox.But this doesn't fill the colorbox.How can i solve the problem?here is the colorbox code.
$(".aHelpSource").colorbox({ iframe: true, innerWidth: 700, innerHeight: 400 });
here is the code which for the video.
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='150%' height='150%...
Hi people
I'm currently pulling my hair of because of a very weird problem.
I have some input fields in which I have placed some text using some <span> elements.
On two of them my script is working great but on the last one it's acting a bit weird.
The HTML structure for the input fields are 100% identical.
I'm using the focusin/foc...
Hello all'
I am new to Flot.
I want to show weekly visitors statistics in my projects.
I have to sho the visitors of the month but weekly on Flot.
e.g.
1st week 1-5 there are 500 visitors.
6-12 there are 900 visitors.
and so on.
And I want to show X coordinates as 1-5,6-12,13-19,....
Can anyone suggest what to do.
Strictly use Flot.
...
I am building a site which uses jQUery validation plugin and want things validated before submitting the form. My code looks like follows
<form>
<input type="button" value="Submit the Form" onclick="validateAndSubmit()" />
</form>
<script language="javascript">
function validateAndSubmit(){
//do some validation and then submit ...
instead of writing code in the standard way:
$.get('test.xml',function(){
//manipulate the code here
})
I wanted to write the code this way to make things easier:
$.get('test.xml',callback(data));
function callback(data){
//manipulate with the data below...
}
but error show "data is undefined", how can i fix this?
...
Sill Q I know - sorry in advance - but how do you read a decimal point value in JQuery. e.g.
<input type="text" name="test" value="1.23">
Then take that value "1.23" into something like this
var test = $(this).val();
$(this).next('.txt').text(test);
Where .txt is the "next" div with a class of txt and "$(this)" is the input
...
Hi. I am designing a site that uses progressive enhancement and has also has a mobile version. I am wanting to use jquery to add a slideshow to the desktop site and want to know the best method for adding a large quantity of HTML. A sample of what I intend to add is:
<!-- Slideshow -->
<div class="scrollable">
<!-- "previous page" actio...
Command $(document).referrer is the correct way to get referrer with Jquery?
...
Hi all,
Is it possible to load an external page in a jquery tab ?
I try this but don't work :
<li><a href="http://google.fr"><span>Google</span></a></li>
Thanks a lot for your help...
Regards
...
I'm using the jQuery UI Autocomplete with a local datasource (source: myArray). I want the autocomplete to propose only the results that start with the string entered instead of the default case-insensitive contains search. Is there a simple solution for this or do I have to provide my custom search/source callback?
...