I'm stuck - and it's pretty frustrating for something I thought was going to be simple :(
Jquery:
$.ajax({
url: "http://ur.ly/new.json?href=http://www.yahoo.com"),
type: "GET",
dataType: "jsonp",
success: function(data){
console.log(data);
}});
I've tried doing this, and FF gives me an "invalid label" error, Chrome gives anoth...
Hello all,
I use the ajaxSubmit to submit my form and would like to test the case where the event returns error.
var options = {
beforeSubmit: showRequest, // pre-submit callback
success: showResponse, // post-submit callback
error: printError,
url: '../validation.php'
};
$('#form1').submit...
Hi everyone.
I'm reading Steven Sanderson's book Pro ASP.NET MVC 2 Framework.
In his book, he use multiple web forms on a single web page to list products from database and provide Add to cart functionality.
When should I take this approach vs having single web form and using jquery selectors to add certain products to shopping cart?
T...
I have set up a multiselect select box and am successfully limiting selection to (say) 5 elements. I can detect when the max number is exceeded, but I can't work out how to roll back to the previous selection so as to be friendly to the user.
I tried to return false, but that didn't work. I don't want to try to remember the last valid ...
Hey guys
What I want to achieve is the following;
I have a textarea filled with text in our CMS. That text contains some special strings that are variable names. In the site these variables are replaced with something else (e.g "$!test;" will be replaced with "Hello this is a test").
Now I want to prevent the users from editing these s...
I want to add an <img> in a <td>
$myRow = $("<tr></tr>");
$myRow.append("<td>$('<img/>').attr({ src: 'xx' })</td>"),
as expected it's considering it as a string.
How to format this using jQuery, so that it creates an <img>?
...
$(function() {
if(map_flag == 0)
$("#buttons").append(' <input type="button" value="Import" class="ui-state-default ui-corner-all" onclick="javascript:import_q();" />');
});
function upload_1()
{
$("#buttons").val('');
$("#buttons").html('')
}
In upload_1 function how to remove the ...
Hi I made a dialog with jquery-ui, it's draggable.
Inside the title bar i created a simple input with a counter. surrended by 2 arrows (to navigate between records). Everytime I click on the title bar, it begins to drag but if I release the mouse button while in the input, it's like it does'nt consider i released the button and it keeps ...
I'm having an issue where if they type in a new Person, then select "M" or "F" from the dropdown, in the listbox, I want both to show resulting to "John Doe M" with the example code:
<div class="editor-field">
<%= Html.ListBox("personList")%>
</div>
<%= Html.TextBox("newPerson")%>
<select name="personInfo">
<...
First of all please dont suggest me to do this using css.
I need to toggle between two images on-hover using Jquery.
I need that two images (two toggling images) should be downloaded at the time of page load. Cause else it will create a lag time for the first time. As my images are two banners on the home page.I need to do something cre...
I have 2 tables, Provinces and Districts. I would like to populate a select field with options as District names based on which Province is chosen in another select. The Districts table has a ProvinceID field to reference which Province it belongs to. I know this is doable, I just can't figure it out. I also want to create and update...
Hi,
I have an asp.net datalist like this:
<asp:DataList ID="DataList_Trips" OnItemCommand="DataList_Trips_ItemCommand" >
<ItemTemplate>
<div class="divListTrips">
</div>
</ItemTemplate>
</asp:DataList>
Is there any chance when I click on the div with the class divListTrips, it will fire the event OnItemCommand?
Thanks in advance. Yo...
I'm using jQuery with TableSorter and QuickSearch plugins. These work fine.
How can I:
dynamically display row numbers for each displayed row?
somewhere on my page, display the total number of displayed rows?
...
I have begin testing my application with IE and have found that buttons that are styled using JQuery UI button are posting their entire content to the server. This means that they post a span with the text inside it. This triggers a "A potentially dangerous Request.Form value was detected from the client" error in ASP.Net. This does not ...
Hello friends
I have a drop down box with yes and no values. By default it's set to 'No' however when we select the value of yes another div should appear. Please help
...
I'm lost here and I really need a kind guru to help me out and to have A LOT of patience.
Here is, more or less, the general workflow:
The user types something on a input element;
Onkeyup, it will grab values from our backend script, and choose one.
After choosing, onblur, we will grab that value and use it to query the database for s...
Hi,
I've got a big HTML page. Some elements (can be p, h1, div etc.) are tagged with the class 'keep_me'.
I need to remove all the elements present in the page WITHOUT this class? Any idea on how to do it with jQuery?
I tried with something like that, but it doesn't work (obviously ;) :
jQuery('#content *').remove(":not('[class=keep_m...
For the last three days I have been trying to develop a web based CRUD application which does all the CRUD operations. Given the complexity of the code, I decided to show the data first then I can move on to further CRUD operations.
For this application I posted several questions in here. From the Answers I came this far.
Here is my ...
Hey. I want to pass a variable as an argument into an nth-child selector.
This doesn't work:
var position = 5;
$("#daddy > div:nth-child(position)").animate({
opacity: 0.01,
}, 500);
Is it possible though?
Cheers, Jack
...
$("#txt1").whichevent(function(){
$.post("Serversidefile.php?value="+$("#txt1").attr("value"));
});
say we are selecting an item from Select box that value comes in to the Text box
and i have to Send this text Box value to server side script (PHP ) where i can get the Server side value
Any events(Load,focus) any idea
...