is it possible to in-place replace the entire html document?
i tried jQuery("html").html("....")
but style information does not survive.
i'm trying to avoid using data uri because i do not want the generated document to be stored in the browsers history
...
Hi, I'm trying to use Zeroclipboard to copy stuff to the clipboard, but it doesn't seem to be working. My code:
HTML:
<textarea name="texter" id="texter"></textarea>
<input type="button" value="Copy to clipboard" id="copy-button" />
Javascript:
<script type="text/javascript">
jQuery(document).ready(function(){
var clip = new Zero...
How can I log client side javascript errors to the server? I'm using jQuery and MVC.
...
I have problems with wordpress and ajax.
The ajax request via jQuery just dont work.
Jquery noconflict is enabled and the effects work but the ajax requst dont.
Where could be the problem?
Thank you!
...
Hello,
I have a content area that loops through divs and shows there content.
I'm having trouble making it display the initial content, unfortunately it waits 5000 milliseconds before triggering the very first content area to display.
Anyone spot an easy way to make it display the initial area, then slide to the next area and do them ...
if i have this html
<div class="whole">This is a <div class="min">Test</div></div>
i want to change the html of the "whole" div when i click on the "min" div:
i have tried this below, but it doesn't seem to work.
$(document).ready(function() {
$('div.min').live('click', function() {
$(this).prev('.whole').html("<img B...
i have this jquery code:
$(this).parent('.copyFoodInstance').attr("myset", "0");
$(this).parent('.copyFoodInstance').html("<img BORDER=0 src='../../images/copy1.png' />");
it seems that when i call this code, this event fires:
$(document).ready(function() {
$('div.copyFoodInstance').live('click', function() {
does anyone kno...
if i have this code in jquery:
var parentDiv = $(this).parent('.copyInstance');
inside this div there is a form.
how do i reference a form element inside this selector? i want something like this
$.post($(parentDiv + " Form").attr('action'), $(parentDiv + " Form").serialize(), function(data) {
});
but this above doesn't see...
I'm using jQuery Tools for creating an article carousel.
You can see in action with images here: http://flowplayer.org/tools/demos/scrollable/plugins/index.html
The navigation code looks like this:
<!-- wrapper for navigator elements -->
<div class="navi"></div>
And the plugin ads links like so:
<!-- wrapper -->
<div class="navi">
...
Hi , I have the code below which is just a link for the user to login, when pressed it shows a login box using jquery. It works fine in IE8 but when the compatibility mode is enabled the link doesnt work at all, it like it isn't even there.
<body>
<script type="text/javascript">
make_request();
var clicked = 0;
$(do...
I am using jQuery's load() function when getting a page to a div like that:
content.php page is :
<script type="text/javascript">
$(".content").load("asd.php");
</script>
and asd.php is:
<script type="text/javascript">
alert("Hello World");
</script>
When load ajax finished alert() message appears 3 times. Actually it must...
I have a difficulty on design a web page layout.
This is my layout structure.
<style>
#left
{
float:left;
width:600px;
min-height:400px;
}
#right
{
float:right;
width:200px;
min-height:400px;
}
</style>
<body>
<center>
<div id="page">
<div id="left">
<iframe />
</div>
<div id="right">right panel</div>
<div id="footer">foote...
In my project i have to create an Accordion.which is better to use Jquery or Ajax
...
inside a jquery method (on a click event of a button) i have the following code:
$(selector).html("<form action='/Tracker/CopyFood' method='post'><input type='hidden' name='Id' value=" + id + "><input class='very-small-input' type='text' name='Quantity' value='1' /> for <select name='Date'><option value='Today'>Today</option><option...
anyone know how to stop a .hover happening again before the mouseout animation has finished?
I have the following code which has 4 anchors. Once hovered over the anchor the related anchor slides in using animation. My problem is you hover out and in quickly, before the square has been set back to 0px it increases the slide distance.
...
I have a jqgrid with data loading from an xml stream (handled by django 1.1.1):
jQuery(document).ready(function(){
jQuery("#list").jqGrid({
url:'/downtime/list_xml/',
datatype: 'xml',
mtype: 'GET',
postData:{site:1,date_start:document.getElementById('datepicker_start').value,date_end:document.getElementById('datepicker...
I'm using the following for a long-polling request...
$.getJSON(url, function(data) {
...
});
The request won't finish until either 30 seconds have passed or there is information to send (long-polling).
The problem is that Firefox is the only browser that will display "Waiting for URL..." at the bottom. Is there any way to prev...
Here's my test case. If the form is posted, a 500 error response is sent. If not, the form is sent.
If the file input tag is commented out, the error handler is called. If the file input tag is present, the error handler isn't called. I think this might have something to do with the fact that jQuery needs to use an iframe to handle the ...
Hi to everybody
thislink text is a demo "done right" about rails3 and UJS, but if you add:
validates :name, :presence => true
to the Task model that error(500 Internal Server Error) is displayed nowhere.
Do you know a correct and clean way to handle it?
...
I'm adding hotkeys to a web application in order to enable keyboard shortcuts for our CSRs to use, to reduce injury and increase calls-per-hour. I'm using an ASP.net UserControl to inject javascript into the page and it's working great.
I want the control to "just work", so that when hotkeys are assigned, using a declarative syntax, if ...