When I add submitToRemote to my gsp I Firebug gives me an "Ajax not found" error. I have the jquery library loaded. How do I use submitToRemote with JQuery?
<g:javascript library="jquery-1.4.2.min"/>
<g:javascript library="jquery-ui-1.8.4.custom.min"/>
.
.
.
<g:submitToRemote controller="DefaultSearchController" action="search...
I'm trying to make the background image as professional as possible so I'm thinking it's best to resize it based on the size of the browser or the resolution (not sure what's usually used, but I think browser size makes sense here). The idea is if the viewer screen is small, the background image gets smaller, and as the screen gets bigge...
HI,
I want to save the position of dropped items to database[aspx,javascript]. The user can drop any number of item,resize and delete[hide] and finally when they hit 'save' button ,it should be saved to database. I have code to do this in drop /stop but it will save all the dropped items i want to save only at final stage.
I guess lot ...
How do you check if the class that is assigned to a div? For example, I want to check if a div has a class of header-link then it should alert a message box similar to this:
$('.header a').click(function()
{
if($(this).classname == 'header-link')
{
alert('the element has the class name already');
}
else
{
...
A lot of my jQuery projects use sub menus. I'm a firm believer of using the hoverIntent plugin over jQuery's native hover(), for usability reasons (and to prevent events being fired by accident by the user).
Because this plugin is used on every page of my site, and because it is only 8 lines minified, I just appended it to the end of my...
So i have a list of checkboxes that gets added dynamically - i am trying to style them using the jquery ui checkbox. problem is i can get styled just one. Is there any ways i could make any workaround to get dynamic id's on input tags and labels for each input tag via jquery ?
here is the syntax i am trying:
<div id="format">
<input i...
I'm trying to display a jQuery FullCalendar (http://arshaw.com/fullcalendar) inside a Grails GSP and to populate it from a controller. Here is the Javascript code to initialize my calendar:
$('#container').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
ed...
I need to change the below code to pass a file to a django request.Files object. Currently I pass the file location to django and allow it to open the file, unfortunately due to new ridiculous set in stone network restrictions django will no longer have access to anything outside of it's server.
The parameters I'm passing come from a v...
I've build an application which currently uses an Iframe to load external sites.
This method is really slowing my application down - taking up to 5 seconds to load a page that
might load in <1sec in it's own tab/window.
Is there any solution I can implement which will let get more speed?!?
Thanks!
EDIT:
Here's the code I'm currently...
I can't retrieve the contents of an iframe, when designmode = 'on'. Here is my code:
val = $("#frame").val();
I've tried everything, and nothing works, help?
...
I found this:
Use Python output:
print ‘Content-type: text/x-json\n\n’
print json.dumps([{'title':arr['title']}])
and get json string with Jquery:
$ajax(
success: function(msg){
if(msg[0].title) alert(msg[0].title);
}
)
It works, who can tell me why it is? Thanks~
...
dear all..
i'm new to ajax timer, since someone tell me to use it for make my page can auto refresh.
can you tell how to use it for my jquery page?
...
Even just a simple <?php readfile($_GET['url']) ?> results in a not acceptable error.
Any thoughts?
...
Hello, this is my first post here, I've found answers here before
I have a form where I can add fields that have autocomplete.
Instead of adding the autocomplete to each field as I create them, is it possible to use event binding to add the autocomplete?
I am a newbie when it comes to events in javascript.
This is what I have done to add...
jQuery possible to Detect when a user is in a Textarea and when they leave? so I could make a textarea height = 15px when the user isn't focused on it...
But when the user does click and focus on the textarea it gets a height of 50px?
...
Im trying to accomplish this:
http://jsfiddle.net/WkVb9/
But instead of using a textarea, use an iframe with designmode = 'on'
http://jsfiddle.net/ysgEf/
It doesn't seem to work =/
...
Hi i have this javascript function
function test(){
var count = 0;
var date1 = $('#alternatestartdate').val();
var date2 = $('#alternateenddate').val();
var startDate = new Date(date1);
var endDate = new Date(date2);
var loop = true;
whi...
hi,
I need to call a function on a using jquery. This function needs to submit a form.
Is this possible?
The reason i need something like this is that i need to have the submission of form happen at two links ie the submission should happen if the user clicks on any of the 2 links. The values of the form are set in as hidden fields so...
$(".addcart").click(function(){
$("input[name='items']:checked").each(function() {
//doing something
});
});
I'm trying to create a common class onclick of which I'm doing something. Is there a way I can make "items" a variable, I mean Can I pass checkbox name to this event.
...
The code below works and is good but I am going to place it into a DRUPAL page and I would like it to refresh the "DIV" instead of the whole page. Can someone help? Thanks!
document.write("<div class='box1'><center><h1>Telling Time Worksheets</h1></center><div class='box_number_holder'>")
var nums = [01,02,03,04,05,06,07,08,...