jquery

jQuery / AJAX / PHP form "working" but not delivering emails

It's not a problem with my host or the email account it's supposed to be delivered to: these things I've narrowed down. The form worked perfectly for one day and then stopped, without any changes to my code. Does anybody have any input on this? My code: Plug-In: http://www.stephaniehenderson.com/jquery.form.js In the head: <script ty...

jquery validation not working in IE7 but does work in IE8

Hi, I have setup some custom rules for validating a field based on whether an item is selected from a drop down box. I have 3 values in the drop down Please Select Did Not Show Declined If the user selects "Did not show" a datepicker appears and they have to enter a valid date If the user selects "decline" another drop down appea...

jQuery Droppable Hover and Active Class take Precedence?

I'm having an issue where I see my active and hover class being applied in Firebug, but it's not taking precedence over the existing styles. So, if my element has background-color set, the active and hover background color don't change the element. How can I fix this behavior? ...

Problem with jQuery Ajax...how do I update two DIVs with ONE ajax call?

function ajaxCall(query){ $.ajax({ method:"get", url:"/main/", data:"q="+query, beforeSend:function() {}, success:function(html){ $("#main").html(html); } }); }; This is the entire code that will populate #main: <p>{{ num_results }}, you just searched for {{ query }}</p> Suppose I have another div...

how to get all the calculated styles of an element with jQuery ?

I want to copy all the calculated css of an element and apply it to another element. By calculated style, I mean for examply if the element's width is 100%, but it's parent's width is 200px, the elements calculated width would be 200px. how can I access all of these styles for an element ? ...

jQuery Ajax SyncLock

I have a couple of buttons that users can click to load content with jQuery's $.ajax. All the buttons load the content into the same div tag. The problem is that if users click multiple times quickly, the content can flash several times before landing on the correct content. What workaround do I have for this? I was thinking of somethin...

Implementing JCrop in ajax upload

Hi ...., I'm trying to develop image crop using JQuery. I use ajax to upload the image. after the image success fully uploaded. I load the uploaded image using jquery to its container. $("#image_upload").html("<img src='" + data.path + "' width=\"460\" id=\"cropbox\" alt=\"cropbox\" />"); but the image selection doesnt work. why it co...

Parse string for text between divs

I have a string of html text stored in a variable: var msg = '<div class="title">Alert</div><div class="message">New user just joined</div>' I would like to know how I can filter out "New user just joined" from the above variable in jQuery/Javascript so that I can set the document title to just the message. Thank you. ...

jQuery Modal Box to gray over silverlight object?

I have a silverlight control on an html page in which I would like the modal popup to also affect. The whole page is white, including the silverlight app (bordered in red below). Is there some form of css or javascript to gray out the silverlight app? ...

need help entering html in jQuery modal dialog box

Hi folks, I'm trying to impliment a confirmation box, but I need to edit the text with html. So I found the jquery "confirm override" here: http://www.ericmmartin.com/projects/simplemodal-demos/ He mentions here about styling the string with html: http://www.ericmmartin.com/projects/simplemodal/ But I don't inderstand where in my func...

Reading JSON (with jQuery) produced by PHP containing @attributes

What are those "@attributes" thing I have in my JSON file and how can I read that with JQuery? The JSON "text" I use is produced with json_encode in PHP from an array of custom objects. Here's a reduced JSON file: { "movies" : [ { "url":"http:\/\/www.youtube.com\/watch?v=Nsd7ZcXnL6k", title":{"@attributes":{"type":"text"},"0":"**Title...

jQuery: Problem with submission of dynamic form elements

Hello, I'm trying to submit a form which contains dynamic elements that were added to the DOM by jQ after the page has completed loading. When I run a serialize() on the form, it's grabbing the data for all fields that are hardcoded into the page - but not the dynamic fields. Here are some code snippets of the same.. HTML <form ...

Receive index with jquery

while selecting the desired element is simple in jquery i haven't found one way to receive an elements index here's an example of what i want. $('#minia .holder a').click(function () { }) this function is used obviously to catch any clicks on one of thoose elements to catch that specific element I use $(this) now my question is how w...

Web page width more than 100% need help finding the problem

Hi all, I've been working on a wordpress theme and just now noticed that the width of the page is more than 100%. I know that posting the code here would be helpful, but I don't know what portion of the code is the culprit. Whether it's a wierd HTML issue or CSS or otherwise. I've tried removing the javascript links in the header as ...

XmlHttpRequest vs jQuery

hello, i am new to javascript and jQuery both... i am developing one page in which i have generated page's whole html from code... in the page there in one textbox to Post Messages and for each message comments can be posted... now when i post a new comment oor delete comment i need to do database call. i knew 2 method to do it from js ...

iframe problem using javascript

Does anyone know how to get the HTML out of an IFRAME? I have tried several different ways: document.getElementById('iframe01').contentDocument.body.innerHTML, document.frames['iframe01'].document.body.innerHTML, document.getElementById('iframe01').contentWindow.document.body.innerHTML, etc but none of them worked. I believe the reaso...

multiple external link buttons with jquery simpleModal box

I learned how to pass the argument with a simpler javascript confirm box, but now I'm working with this SimpleModal script, and I'm a bit lost. I have a page with several buttons that will link to different external pages. When I click any button, the confirm box will pop up and when user clicks ok, then they are taken to that specific...

How can I make a modal window(url) refresh to another modal window(url) via facebox

This is ultimately what I want to achieve. User clicks on Page1 Modal window opens. User clicks on Page2 Modal window refreshes to that page. ///// But this is what happens User clicks on Page1 Modal window opens. User clicks on Page2 Page changes to index2.html. ...

constantly resizing iframe to contents via Jquery

if found this solution on the web that re-sizes the iFrame on load. I was wondering how I can do this by setting an loop that constantly check's the active iframe's content size then resize it instantly any ideas on how to do this on Jquery? Thanks! ...

How do I add datepicker in the add row dialog in jqGrid?

Hi I'm using jqGrid and I'm wondering, how do I add jQueryUI's datepicker to some of the input fields when in the add row dialog? Also how do I check if the input entered are valid? Thanks in advance! ...