how to show a html page in a js file on google app engine .
$('#upload').click(function(){ $('#main .right').html("{% extends 'a.html' %}") }) but this is error , how to make this code running . thanks ...
$('#upload').click(function(){ $('#main .right').html("{% extends 'a.html' %}") }) but this is error , how to make this code running . thanks ...
I need to be able to comment to an article, but also be able to reply to a comment using the same form. Fairly simple, but how do I know that a user clicked on "REPLY", and know which comment they clicked "REPLY" too? I'd imaging I need to add some attribute to the anchor, but I'm not sure what it should be. I'd like this to be a best...
Is there any way to display a Calendar Extender popup without using it the traditional way? and the also grabbing the value selected? Some code that I made up to make it more clear: <table> <tr> <td><input type="text"/></td> <td><input type="text"/></td> <td><input type="text"/></td> <td><input type="text"></td> </tr> </table> $('tab...
Hi, I'm trying to build a tree from json data, this data are loaded on demand from php files. My problem is that i can't find a way to get to lvl 3 ;). Here is my code: $(document).ready(function() { //Get the screen height and width var Height = $(document).height()/2; var Width = $(window).width...
Hi, i have a website that uses screen.css as main CSS file. I added this for monitors with a 1024+ resolution. $(document).ready(function(){ if(screen.width > 1024) { $('link').attr('href','hi-res.css'); } }); The problem is that hi-res.css is replacing screen.css... i don't want to replace it, i just want to load an additional cs...
Can I do <div class="some_div">some div</div> <script> jQuery('.some_div').data('some_data','some info').remove(); </script> where the information is added with data's method, is still around the DOM? Do I need to uninitialize? Is the information automatically removed when the div element has no references left? ...
I'm trying to make an HTTP Get request using JQuery, but I get an empty string as a response, so I figure I'm doing something wrong. I used the documentation from http://api.jquery.com/jQuery.get/ as a guide. My code looks like this $.get("http://www.last.fm/api/auth/?api_key=xxxkeyxxx", function(data){ window.console.log(data); ...
Let say I got the following button : <asp:Button ID="btnSearch" runat="server" /> and the following button event handler : Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSearch.Click How, with JQuery, can I call the button event handler ? What I mean is that I don't want the page to refresh, so...
Is it a good idea to move checkbox-checking logic out of the markup, specifically the 'checked="checked"' inline script such as <input type="checkbox" name="LikesWork" <%= Model.LikesWork ? "checked=\"checked\"" : "" %> /> and have this be replaced with a some code that takes a dictionary with a javascript (jQuery) selector as the key...
I know how to toggle but how do i change the name after the toggle happens and toggle between show and hide link so here is my code $(document).ready(function(){ $('#show_review').click(function(){ $('#show_something').toggle('slow'); }); }); <a href='#' id="show_review">Show</a></p> ...
I've got a multiple select that I want to use to pick which elements show up in an HTML template window. So I have several options that I want to iterate over, and based on whether it's been selected, make the preview elements visible or hidden. I'm going for something like this: $('#area_select option').each(function(i){ i...
Heya, I've got some code that I think ought to be working (though I really am fumbling around in the dark here) - I'm just trying to dynamically change a class name on a div tag. I'm trying to change the div class on id "slider" from "visible" to "hidden". Everything else about this code works just fine, but the class won't change. Wha...
I have a slideshow using jQuery and the Cycle plugin, and the slideshow uses a list of thumbnails as the "Pager" to control the slideshow. The problem I have is that there are about 30+ large images, and all of them get loaded immediately on page load, so someone with a slow connection has to wait for them to load. Is there any way to ha...
In version 1.3.2 of jQuery, the following works: $('<span/>').append( $([ $('<span/>').append( $('<a>').attr('href', 'http://google.com').text('Google') ), $('<span/>').text('Foo') ]) ) It seems that in jQuery 1.4.2, the $([...]) fails silently. I need this code to be compatible with both versions of jQuery sinc...
How do I determine if the .circle elements in the code below are still "onscreen"? That is are they outside the visible area of the containing #wrapper element? Here's the code: <html> <style type="text/css"> body { background-color: #000; margin: 2px; padding: 0; } #wrapper { background-colo...
I am trying to implement a modal window using jqModal plug-in. I make an ajax call to populate a div with tabular data. In there, there is a clickable progress bar. In my script, I have $(document).ready(function() { $('#jqmRTypes').jqm({modal:true}); showTypes = function(id,projNum) { formData = 'vw=getTypes&ID=...
I have two select elements. Making a choice on the first select will build the options for the second select. Works fine on desktop browsers. On the iPhone, after you make your choice on the first one and chose "Next", the options do not get filled in the second select. So far, the only ways to do this is to go from the second select, ...
Hi I am trying to pass a custom response header to notify my javascript the user has timed out. It works good expect when it comes to using it with jquery u.i dialogs. I have this $.ajaxSetup ({ complete: function (event, xhr, options) { if (event.getResponseHeader('X-LOGON') === 'LogOn') { window...
I'm new to jquery so I have no idea where to start. I want to make an image appear when I click on a thumbnail. Similar to lightbox, but I want it to show up on the actual page. Is there a plugin or specific functions that would make this possible? ...
I have a div I'm creating dynamically, with a unique id. I append() that to an area on the page. Later, I try to reference that via $( '#id_here' ), but it returns nothing. Inspector in safari/chrome shows the existence and proper id of the element. <script> $( '#box' ).append( '<div><input id="id123" /></div>' ); //Later on in time......