I expect this is easy, but I'm not finding a simple explanation anywhere of how to do this. I have a standard HTML form like this:
<form name="new_post" action="process_form.json" method=POST>
<label>Title:</label>
<input id="post_title" name="post.title" type="text" /><br/>
<label>Name:</label><br/>
<input id=...
In an iframe how to make a div to hide and on mouse over the bottom of the page bring it to front again.
This is just like a control that appears in medial players,hide when mouse out and show when mouse over
<div>
<img src="play.gif"/>
<img src="next.gif"/>
<img src="last.gif"/>
<img src="first.gif"/>
...
Hi!
In order to make function calls to our back-end php code we've implemented something called an ActionProxy like this:
function ActionProxy(action, input, callback){
$.post("ActionProxy.php?method="+action,
{ data: input},
function(data, textStatus, XMLHttpRequest){
//return data....
I'm submitting a form, sometimes I have some messages that I want to show to the user. I want those messages to jQuery fadeIn after they click on the submit button. Is it possible to achieve that if the submission doesn't involve any AJAX?
Here's a sample Django/Python code:
# View code
message = 'feedback to user'
# Template
<div i...
Hello Everyone,
How would i go about adding a class to a td tag given the following table:
<table>
<tr>
<td id="1"></td>
<td id="2"></td>
<td id="3"></td>
</tr>
</table>
I would like to add the class to the td with the id of 2. The class name in my case is td_highlight.
Have tried a few different scri...
It doesn't currently seem as though there is a way to do live events in YUI similar to jQuery: http://api.jquery.com/live/
It sure would be nice if something like:
function handleClick(e) {
// click!
}
YUI().use('node-base', function(Y) {
Y.on("click", handleClick, ".foo");
});
caused handleClick to be fired when a node with...
Hi all..
I have a page called AddNews.aspx and in codebehind a web method called AddNews(Parameters)..
AddNews.aspx page is inherited from a master page.. So i used contentplaceholder.
I have a button..It's id is btnSave.
Here is jquery code:
$(function() {
$("[id$='_btnSave']").click(function() {
$.ajax({
ty...
I want to make it so that I .append() to a value based on the status of some other element relative to the place I'm inserting into the dom. What I really want is a trigger that fires after the element has been inserted.
$("#foo").append(
$('<div />').load( function () {
if ( $(this).find('.foo') {
$(this).append( "<span>foo...
Hi,
I am trying to make a menu that works like the one on this flash site:
http://elevensix.de/
When I click "portfolio", only then to the subnavigation links reveal themselves. Right now I have only managed to get a typical vertical "reveal subnavigation on hover menu" working.
What is required is that once the appropriate menu item...
Hello, I'm interested in building am iPad web app like The GMAIL iPad web app. What is the best way to build it? What is the best framework? Jqtouch, webkit, etc.
Thanks
...
Hi
I am wondering is it possible to clear the cache from a particular ajax method?
Say if I have this
$.ajax({
url: "test.html",
cache: true,
success: function(html){
$("#results").append(html);
}
});
Now 99% of the time a cached result can be used since it should always be same content. However if a user updates this co...
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<tr>
<th><a href="#" class="sortby">Full Name</a></th>
<th><a href="#" class="sortby">City</a></th>
<th><a href="#" class="sortby">Country</a></th>
<th><a href="#" class="sortby">Statu...
Hi all,
I'm having some trouble with Jquery and JqModal, and I hope you are able to help, since I've been struggling for hours..
Having a single button element with an onclick action running my method "test" (shown below):
$('#picture_form').jqm({ajax: '/test.php'});
$('#picture_form').jqmShow();
This will load the ajax cont...
Is there a way using jQuery or Javascript to force a page to open in Firefox? For example, if the user has their default browser set to internet explorer, but they have firefox on their computer - open a new firefox window with the intended page. If so, I would need to check to see if they have firefox on their machine; otherwise, redi...
I have a jQuery function that is causing display errors in IE7. I simply want to disable the function only for IE7 instead of dealing with fixing the display errors.
Here is the code that calls the function:
$(document).ready(function() {
$("select, input:checkbox, input:radio, input:file").uniform();
});
So, what's the best prac...
Hi, I'm looking to try and implement the theme dropdown shown at http://demo.rockettheme.com/ . Is there a JQuery plugin or tutorial I can follow on how to do this?
...
Hello I am needing to create an unordered list that uses jquery to make it sortable.
I want something like is shown here
How would I do this with ASP.Net? I thought I could just use almost nothing but HTML but it turns out that I need TextBox controls to be in each <li>
How would I most easily do this?
...
I've got an HTML page that needs to make requests to a CAS-protected (Central Authentication Service) web service using the jQuery AJAX functions. I've got the following code:
$.ajax({
type: "GET",
url: request,
dataType: "json",
complete: function(xmlHttp) {
console.log(xmlHttp);
alert(xmlHttp.status);
...
I have a form with an input field where a user enters a unique identifier. I then have some jQuery code that upon the user moving away from the input field (blur) goes out and fetches details about the part and populates some fields on the page. The problem is if the user clicks the submit button before moving out of the input field the ...
Hi... I am sending an Ajax Request using jQuery. What happens is that I am getting an "405 Method Not Allowed" Error. I am just posting a form, which would get the detail from the form and insert it into the DB. Just the usual stuff.I am using WEBrick that comes as default with the rails package. Can somebody please tell me how to fix th...