I'm mostly a djangonaut and phper, but I'm getting javascript development.
I've been looking at this very simple block for a feedback widget on a page. The code is pretty self-explanatory.
<a id="feedback-widget-toggle" href="[feedback_url]">Feedback</a>
<div id="feedback-widget">
<form method="POST" action="[form_url]">
...
</...
Can any one help me out..
On click event on row I need to load the usercontrol? using Jquery..
I have tow Differnt userControls I need to load one user control in other user control on Cilcking on each row..
Thanks
...
Yes, I am having issues with this very basic (or so it seems) thing. I am pretty new to JS and still trying to get my head around it, but I am pretty familiar with PHP and have never experienced anything like this. I just can not empty this damn array, and stuff keeps getting added to the end every time i run this.
I have no idea why, ...
I've tried a few different things but nothing really worked, basically i need to get the current location/url from the iframe, get the part i want and return it to the hash in the url. how can i do this in javascript?
...
I have a class like this
$.fn.dimeBar = function(custom) {
var var1 = 'test1';
var var2 = 'test2';
if(sometest){
//how can i access var1 or var2 here by using string name of variables
//some thing like alert(this['var1']) --> should alert: 'test1'
}
}
...
I have a form with multiple dropdownlists on it. Some of them possess multiple values, others posess a blank choice and another random choice.
Using jQuery how do I detect which dropdowns have the blank choice selected AND have only one other choice THEN select that other choice.
I got the selector part down,
$("[id*='_ddl']").ea...
Greetings and thank you in advance for your answers. I am fairly new to creating controls. I have created a datepicker control which uses the jQuery datepicker. It works in most instances except within another control which utilizes a gridview. It seems that control is not being loaded since the control is only created in edit mode, ...
Hy,
i have a div with relative position (CSS) and i want to make it to move on the screen, changing the left property.
This should be a smooth transition from (left: 0px;) to (left: 100px;).
Thanks
...
Hello, I have this jquery code:
$(".button-banc").hover(function() {
$(".button-banc img")
.animate({ top: "-21px" }, 200).animate({ top: "-17px" }, 200) // first jump
.animate({ top: "-19px" }, 100).animate({ top: "-17px" }, 100) // second jump
.animate({ top: "-18px" }, 100).animate({ top: "-17px" }, 100); ...
Hi,
I'm trying to use next() to toggle a div. The problem is that the "trigger" is in a different div than the one I want to toggle. An example that works:
$("span.trigger").click(function(){
$(this).next("div.task_description").slideToggle("fast");
});
<span class="trigger">The trigger</span>
<div class="task_description ">
...
Hi,
For a web service I'm developing I would like my embedded code (on the client's site) to fetch an xml file from my sever script which resides on my domain.
As this is a cross-domain request I figured to use jsonp as it seems the de facto standard for such apis. However, for my application it would be easier for me to use xml inste...
I have a bunch of elements like the following:
<div class="droppableP" id="s-NSW" style="width:78px; height:63px; position: absolute; top: 223px; left: 532px;">
<div class="sensible"></div>
</div>
They all have class droppableP but different id's obviously and I would like to factor the code in this script I am hack...
In the HTML below, I would like to copy the "submittedby" beside "message", within the H2 tag:
<div class="comment">
<H2 class="threadtitle">Message 1</h2>
<span class="submittedby">James</a>
</div>
<div class="comment">
<H2 class="threadtitle">Message 2</h2>
<span class="submittedby">Bill</a>
</div>
<div class="comment">
<H2 class="t...
When i write a jQuery plugin i like to specify options for spacings the CSS way.
I wrote a function that returns a CSS String as values in a object.
5px 10px returns top: 5px, right: 10px, bottom: 5px, left: 10px
Now i often use the returned values to do some calculations and its not very nice to have to extract the measuring unit eve...
I have a select box that gives a description of a product along with a price. Depending on what the user selects, I'd like to automatically grab that dollar amount from the option selected and assign it to a price input field. My HTML:
<tr>
<td>
<select class="selector">
<option value="Item One $500">Item One $5...
I'm working on an online ordering system for photography clients: Here. (Forgive the requirement of having to sign in).
After signing in, the user is able to rate pictures using the stars listed below each picture, then subsequently view 3 star pics, or 4 star pics, etc. However, when the user clicks on an image, a lightbox expands (pr...
Hi all,
I'm using dropdownplain js from css tricks along with the jquery s3slider on the site www.gwynfryncottages.com, there's an issue with IE6 and IE7 where the menu disappears behind the slideshow on the homepage and the images on the cottages overview page. I've tried a few fixes involving z-index but, as IE already has problems th...
I have a select box that is default to nill
But still in required I use a function that always returns false and validation stills validates my select
dob_year: {required: function(element){return false;}},
Is marked as valid, no matter what is returned.
Any clue?
jQuery validation plug-in 1.7
jQuery 1.4.2
jQuery UI 1.8
<select nam...
Hello,
I seem to be having some problems creating a jquery plugin. I am testing a simple plugin in firebug console and the function is not being defined as I would expect. Here is the code pattern I am using
jQuery.fn.test = function () {console.log("runs")}
I am trying to call the function with this call which is not working.
$.te...
I have the following javascript:
$('#ge-display').click(function (event) {
window.open('/googleearth/ge-display.php','','scrollbars=yes,menubar=no,height=650,width=1000,resizable=yes,toolbar=yes,location=no,status=no');
event.stopPropagation();
return false;
});
the element with id 'ge-display' is a standard link:
<a href="/goo...