I have a Rails app that allows users to login via jQuery modal form. Once logged in, I refresh the original page using location.reload().
At this point, I'm attempting to create a new jQuery dialog. How can I open the dialog only after location.reload() has finished executing?
Right now the dialog is loading up before location.reload...
The question sums it up really...
I have a parent page with a child iframe,
How do you find out when the location of the iframe has changed, i.e. a user has clicked on a link in the iframe and the iframe is navigating to another page
I know I can bind to the onload event of the iframe like so
$("#theIframe").load(function(){
//Do ...
when using jquery bbq they are using these two words.
what is the difference?
...
A lot of time I see jQuery code that looks like this:
$('a').live( 'click', function(event){
..
});
What does the event parameter do? Does it correspond to the element 'a' or the event 'live'?
...
I have a jquery ajax request in my website page, and every page i need to post this request to server to get the status. But it have a issue: after i open the page in browser, before this request return the data, my page all link can't works, they can't click.But it render normal. so anybody have a solution for that? such as: make the pa...
Ok, this is killing me. I'm loading an external page with jquery:
var response = $.ajax({
url: "example.php",
dataType: "html",
async: false,
});
$("#content2").empty().prepend(response.responseText);
This part is working perfectly.
Now I know that if I I want to interact with the new content I would have to bind any...
My form.html
<form id="search-form" method="post" action="." name="f">
<p><label for="id_customer_type">Customer type</label> <select name="customer_type" id="id_customer_type">
<option value="">All</option>
<option value="TDO" selected="selected">TDO</option>
</select></p>
<p><label for="id_tag">Tag</label> </p><dl>
<dt><strong>School<...
I am trying to pass an object as parameter to the javascript function as:
.html('<span class="link" onclick="javascript:ShowEventDetails(' + event + ','
+ event.Id + ',' + event.Name + ',' + view + ')">' + event.title
+ '</span>')
In the above js, the event and view are objects from the jquery calendar Full Calendar, which i...
Hi,
I have a checkbox group in my html form.The check box group contains array.
My question is how validate the checkbox array using jquery and get the array value in php
The code given below
<input type="checkbox" name="go[]" value="1" /><label>Married</label><br>
<input type="checkbox" name="go[]" value="2" /><label>Widowed</label>...
I'm having a bit of trouble capturing the value of a global variable in my $.get() callback:
Relevant markup
<div class="block" id="blog"></div>
<div class="block" id="music"></div>
<div class="block" id="video"></div>
Relevant code
$('div.block').each(function() {
$this_id = $(this).attr('id');
alert($this_id); // outputs: blog...
Hi,
I'm having a problem doing something very basic in jQuery. Can someone tell me what I'm doing wrong exactly?
If I run the code below, the function $.get seems to be missing (getJSON and others missing too). But $ itself and other functions do exist, so I know JQuery is loading.
google.load("jquery", "1.3.2");
function _validat...
I am currently using jquery ui datepicker for forms that have date inputs. The problem is on my current form I need the user to just select a month. How would I got about doing this using jquery ui date picker?
...
im trying to use jquery bbq for remembering page with ajax.
but i wonder, why should i use # values and not ? values for remembering pages eg.
?country=1®ion=2
then get the values with $_GET and display the appropiate info
vs
#country=1®ion=2
cause the latter one i cannot get it with php right?
...
In view page:
<script languge="javascript" type="text/javascript">
$(document).ready(function() {
$('#delete').click(function(e) {;
e.preventDefault();
var parent = $(this).parent();
mainParent=parent.parent();
$.ajax({
type: 'post',
url: "<?= site_url('controller_Test/fnDelete') ?>",
data: ...
I have a php function that called admin_head() which basically includes the css and jquery files.
function admin_head()
{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<hea...
So I'm just getting started on a simple blog like application written in ASP.NET MVC. Basically I have my CSS made and I'm using jquery for some effects but I'd like to do something like a for each loop to display all the data in my posts array seperated into their own little sections. The CSS already has the style for the divs so its ju...
here is the case:
ive got 2 lists on my website. country and region. when the user first enter the options are ALL and ALL. then he picks a country and a region. and i use jquery bbq to hash the url with different variables for remembering the unique ajax rendered pages. for example:
webpage#country=1®ion=3
webpage#country=2®ion=...
Hi guys
need your help on hover mouse out event not firing
Problem
i basically have simple link list and when you hover over it it appends a div (loading data in this div from xml) and on hover out it removes the div, but it only happens when mouse moves slowly over the links as soon as mouse moves more fast then usual over the links ...
Hi
how can i calculate the number of checkboxes that a user has checked using jquery?
what i want to do is limiting the number of checking for checkboxes in a form to 10 for example and when a user exceeds this range display a warning message.
...
I need to change the style of each page dynamically based on the page the user is on.
To do this I plan on taking the URL of the page being visited, stripping out some bits and pieces, and apply then apply the rresult to the <body> tag. This will then allow me to style based on the name of the page.
The URL I have looks something like:...