jquery

Need help with my Wordpress Plugin

I need help in finishing a Wordpress plugin I'm developing. I'm almost finished, but I am experiencing some problems and I can't figure out why I get the errors. I am posting the link to the plugin so you may download and test. I think it's the best way to discover what is wrong What does it do? The plugin lets you select a image...

Capture Dynamic Form Fields using Coldfusion

I'm currently working on a project and I just can't seem to get my head around a way to get this to work using Coldfusion on the backend, and I'm hoping to find an expert to help. I'm using the jQuery plugin relCopy to add "Ingredient" fields to my form. (I'd link, but it's only allowing one.) This is the beginning of several problems ...

What are the differences between these ways of selecting element in jQuery?

Hello If I have the following markup <div id="previewNote" class="note yellow" style="left:25;top:25px;z-index:1;"> <div class="body"></div> <div class="author"></div> <span class="data"></span> </div> I can select the "previewNote" DIV either by using $("#previewNote") or $("[ID$=previewNote]") and with even other ...

.net 2.0 ajax jquery pagemethod 404 object not found

in my master page, i have <head> <script type="text/javascript"> $(document).ready(function() { $("#result").click(function() { $.ajax({type: "POST",url: "ws.aspx/HelloWorld",data: "{}",contentType: "application/json; charset=utf-8",dataType: "json",success: function(msg) { $("#result").text(msg.d); } }); }); </script> </head> <body> <f...

use an anchor to load a page sending post data

I'm not even sure if this is possible, but I need to send POST data to a page via a user-clicked link. Can this be done? To be clear, I do not want the data returned to the current page; the target page should load in the browser just as though the user had submitted a form, but I need to send the post data without a form, if possible ...

jQuery .add method seemingly not working!?

Hi there, I wonder if anyone can explain this: $(document).ready(function() { var popup = $('<div id="popup"><div class="popup-content"></div></div>'); var popupContent = popup.children('div'); var overlay = $('<div id="overlay"></div>'); console.log(popup); console.log(popupContent); co...

jquery method is not allowed

How can allow this page to run on IIS server... It does not work on localhost..... it works when I open it directly... It gives the error "it is not allowed...! The working Example..! I want this.. "" the Erorr: <html> <head> <script src="jquery.js" type="text/javascript" language="javascript"></script> <script src="jquery.xml2json....

JQuery Validation not work in IE8

I use a JQuery Validation script for Validating HTML Form. this is perfectly work with Firefox but not work in IE8. I think there is issue with colon(;) or semi-colon(,)...but I am unable to catch. please someone help me. code is here. <script type="text/javascript"> jQuery.validator.addMethod( "selectNone", function(value, element) ...

Updating a DIV while writing text into a textarea

Hello I would like to "live" update a DIV in the page with the text the user enter in a textarea. I have the following markup <div id="previewNote" class="note yellow" style="left:25;top:25px;z-index:1;"> <div class="body"></div> <div class="author"></div> <span class="data"></span> </div> and wrote this jQuery code /* L...

jQuery: UI widget definition

I have a widget defined like so: $.widget("ui.mywidget", { _init: function() { this.element.bind("keyup", function(event) { alert(this.options); alert(this.options.timeout); }); } }); And trying to call it like so: $("input.mywidget").mywidget({timeout: 5}); I also redefined the bind ...

JQuery get part of string

Html code: <div id="block-id-45"></div> How i can get number "45" of string (JQuery)? Thanks. ...

Are there any custom scrollers that work inside lightboxes?

I am using Shadowbox and Flexcroll and cannot get them to play nice. My shadowbox open's just fine, and the scrollbar loads but doesn't scroll. Shadowbox.open({ content: '#inline-'+myBox, player: 'inline', height: 453, width: 354, options:{ onFinish: serviceCheck } }); mybox just opens the current #id... I ahve als...

What is the difference between $(this) and this

I have the following code $('a').click(function() { var url= this.href; alert(url); }); This works just fine and sure enough the returned result is the url of a tag. However if I change the above code to $('a').click(function() { var url= $(this).href; alert(url); }); The result is undefined. Anyone please help to clear this out ...

JQuery, GMaps and $('#myId') == getElementById("myId")

Hello. Why this isn't true? $('#myId') == document.getElementById("myId") I'm using JQuery 1.4.2 and trying to insert a GMap into an div element. So, this works: new google.maps.Map(document.getElementById("myId"),myOptions); but this doesn't new google.maps.Map($("myId"),myOptions); ...

jQuery event for html change in a div element?

Long story short - I have an editable <div> and I want to clear formatting when someone pastes something in. Since jQuery has no control over the clipboard and I don't want to get into cross-browser compatibility, I figured I'd listen for an event that runs when the content changes. I've tried $("#mydiv").change() but obviously that onl...

JQuery table sorting; problem with dynamically added rows

I am using a jquery tablesorter plugin(http://tablesorter.com/docs/) for sorting my tables. This works for rows that created already. But when I add a row dynamically with Jquery clone() method, sorting is not working. What I should I do to sort rows even if I add a row dynamically? ...

jquery draggable object

I've made an image draggable. But I've put on the image some divs. When the image is dragged, I want the divs also to be dragged... Please can you help me??? Thanks in advance ...

Changing DIV dimension with jQuery

Hi, I have the following div in my markup <div id="sectionContent" style="position: absolute; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; z-index: 1; top: 56px; bottom: 6px; left: 8px; right: 8px; width: 722px; height: 624px; visibility: visible; display: block;"> <div id="actionArea" style="text-align...

Javascript/jQuery: Why is the focus event not firing on an input field?

Hi I'm trying to attach a simple focus/blur event listener via the .live() jQuery method to my inputs but what I'm noticing is that the focus event is not firing whereas the blur event is. Strange… was hoping you may have an idea of why this is happening. Here is the code: function rowHighlight() { var form = $('form.register'), ...

how to get the (lat,lng) from the map.controls[google.maps.ControlPosition.BOTTOM_LEFT] using google maps v3

i want to get the map.controls[google.maps.ControlPosition.BOTTOM_LEFT] 's (lat,lng) so how to get it ? thanks ...