Hi,
I know this issue has been discussed before but I can't seem to get it to work. I have a master html page with an iframe on that page. I am using jquery prettyphoto and I was wondering how I can get the light box to display in the parent window when I click on the link in the iframe?
Please my code below:
Master Page:
<!DOCTYPE h...
I have tried upgrading from jQuery 1.2.6 to 1.4.1.
A JSON query is now failing with error : "parseerror, invalid label"
I have simplified the code to bare minimum.
var jsonUrl = "process_01.php";
$.ajax({
type: "POST",
url: jsonUrl,
data: "var=myVar",
dataType: "json",
beforeSend: function(msg) {
},
success: fun...
here is my code:
groups: {
phone: "phone1-phone2-phone3"
digits: true
},
errorPlacement: function(error, element) {
if (element.attr("name") == "phone1"
|| element.attr("name") == "phone2" || element.attr("name") == "phone3")
error.insertAfter("#telephone");
else
error.insertAfter(element);
},
debu...
I'm seeing an error I can't replicate from a small subset of users. Here's the code:
var selected = $('#mytable input:checked');
if (selected.length == 0) {
$('body').trigger('notice', 'Please select some items first');
return;
}
Even when the user checks several checkboxes, the "notice" triggers. It seems selected.length is z...
I have a page that loads an HTML form via a $.ajax request.
The form has a file upload option. I have tried several Ajax upload plugins and they all require me to instantiate some ajaxUpload() type object which internally creates the click listener. However these listeners dont trigger because the dynamically loaded form is not DOM acce...
Once again I want to load a page which contains its own script into a div using $("divid").load(...). The problem I face is related to events. Let's say we trigger("monkey") from the parent page and on the loaded page we bind("monkey") and just do an alert("monkey bound"). If the same load method is called multiple times, the bind is ...
Hi,
I know this issue has been discussed before but I can't seem to get it to work. I have a master html page with an iframe on that page. I am using jquery prettyphoto and I was wondering how I can get the light box to display in the parent window when I click on the link in the iframe?
Please my code below:
Master Page
<!DOCTYPE ht...
This may be obvious to some, but I've been wondering: why should I depend on Google's server to host jQuery for my site?
Is it only because it loads faster this way?
...
Loading/Selecting a (non-ajax) tab from within one of the other tabs can be done by using
$('#mytabscontainer').tabs('select', 3)
However, I need to be able to reload the active tab, and above method does not work for that. Neither does
$('#mytabcontainer').tabs('load', 3)
Any ideas on how to achive this?
**
Solution
**
In the...
I have 2 javascripts in my head section.
Now I want to place the embedSWF function inside the first script. Only I am not sure where..
<!-- JQUERY Functions -->
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
// alert('DOM ready');
});
wind...
Doesn't using Google CDN for jquery break the rule of not using cross domain requests on the webpage. Do we trust Google enough to do this?
...
I am interested in adding a stick feedback tab to be hosted on my page. No third party ones like uservoice, monyta, getsatifaction.. etc.
It should be sticky while scrolling vertically and the tab should slide out showing a form to be filled out and submitted, very much like monyta.
Any JQuery plugins (or plain Javascript) which do thi...
I realize that this is how it's supposed to behave, but it creates a problem when I'm trying to determine the visibility of an element while it's in the process of hiding (or showing if I invert when ':animated' is true).
So how can I use jQuery to determine whether an element is visible, with the caveat that elements currently visible ...
I've got a textbox in an ItemTemplate inside of a standard ASP.NET GridView. The textbox (from DevExpress) supports a client-side event 'LostFocus'. From the LostFocus event handler, I'd like to retrieve the value of that textbox as well as the value of several other fields in that row of the grid, so that I can update one of those other...
For my current project, I need to make a layout selector where certain elements can be dragged and repositioned by the user, similar to this mockup:
So far, I have been able to replicate something similar using JQuery UI and Sortable, however I am currently stuck only on the first level of control, where vertical elements can be repos...
If I dynamically generate the img tags they don't show up when they should, but if I hard code the values in there the images show up. Anyone know why this is?
According to my jQuery there should be 2 image tags inserted after each input with the class .inputBox
HTML:
<form action="" method="post" id="myform">
<label for="FirstName...
i have a site where i am using an accordion menu plugin and hoverIntent. this is the code for the accordion:
(function($) {
$.fn.hoverAccordionMenu=function(options){
var hoverIntentConfig = {
sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)
interval: 100, // number =...
I am dynamically adding a class to my code using Jquery's .attr('class', 'show'). But when I use .each() function like this:
$('.show a').each(function() {
alert(0);
});
it doesen't work.
I works when I added the 'show' class manually.
How can I do this dynamically?
...
How do I convert the following javascript to using JQuery?
document.getElementById("asc").removeAttribute("href");
document.getElementById("asc").onclick = "";
document.getElementById("asc").style.textDecoration = "underline"
I think I'm close using the below code but this doesn't quite work.
$('#asc').attr('href', '').click(function...
Hello, Im trying to find the current cell that the user has clicked on. For example if the user clicked on the first cell, I want to return 1. If they clicked on the tenth cell I want to return 10. There are 16 total cells in the table.
<html>
<head>
<title>Lights Out!</title>
<script type="text/javascript" sr...