Hi,
I beginer in javascript and jquery soo my question about understanding of javascript syntax.
Why in ajax jquery function - should be writen function success:function (){myfun();} and not directly success:myfun() ?
Working:
$.ajax({
type: 'POST',
url: 'http://www.myurl.com',
data: data,
success: fu...
I have a menu like this, but the mark-up doesn't have to stay this way.
<div id="menu">
<ul>
<li><a href="#item1">Item 1</a></li>
<ul>
<li><a href="#subitem1">Subitem 1</a></li>
</ul>
<li><a href="#item2">Item 2</a></li>
</ul>
</div>
And each time one of these menu items is clicked I want to load different content in a ...
I have a controller called "Categories" and you are allowed to type a few letters and get a filtered list back.
Fairly standard stuff. However, I'm combining the result set with paging and have run into a snag.
When you first come into the page I have all categories listed. When you type into the text box you get a filtered list but ...
Hi,
I am using a $.get request to get some data and am then storing it in a cookie. The get request is ran when a user clicks a button. They would then follow a link to another page and the data stored to the cookie is extracted and displayed on the new page.
Unfortunately some people are rather vigorous with their clicking, the get r...
I have a website which is basically a single page containing a bunch of dynamic content. In normal operation the user should never leave this page. To handle/report certain errors though, I need to redirect to an error page. So on the error page I want to provide a link back to the normal page which provides the app the information requi...
I have 2 js methods which do an AJAX post to the server and display results accordingly.
1) Delete - Delete upon callback 'hides' the deleted element and does not the refresh the page
function DeleteRule(ruleId) {
var deleteRuleAction = $('#delete-rule-action').val();
$.post(deleteRuleAction, { ruleId: ruleId }, function(dat...
The following is the json response
{"d":[{"__type":"Treking.Data.Users.Owner","MembershipId":null,"FirstName":"siva","MobileNo":"9886811237","EmailId":"[email protected]","PhoneNo":""}]}
Client Side js is as follows
function GetInfo() {
var checkboxInfo = $('#<%= chkboxContact.ClientID %>');
var domcheckboxInfo= che...
Hello all,
I have used jQuery Form plugin to submit the whole form data to server while Ajax. When the server code (php) returns, the retrieved data is in JSON format. What is the best method to populate the form with jQuery.
Here is what I want to do:
The user enters the data on the form
The user submits the form data (I use ajax to...
<script src="jquery-validate/lib/jquery.js" type="text/javascript"></script>
<script src="jquery-validate/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.validator.addMethod("steam_id", function(value, element) {
return this.optional(element) || /^STEAM_0:(0|1):[0-9]{1}[0-9]{0,8}$/.test(valu...
Hi,
If I am developing an asp.Net application, can there be some cases where I should forget about MS Ajax UpdatePanels and prefer jQuery.Ajax to update some part of my page?
Thank you
...
Hi, this is driving me nutters.
jQuery 1.4.2, windows XP sp3
Here is my test.
Load firefox 3.5+
http://plungjan.name/test/testcors.html
works
Save the file to harddisk and run from there
From my office the external works and the internal does not
What is also interesting is that I cannot run both in one go.
Background:
I do a GE...
I'm just reposting to make this clearer & because I've uploaded a sample of the problem...
Simply...
This fancy box plugin works great on this page http://www.websitesbyshane.co.uk/chris/portfolio.php
but NOT if the portfolio #content is pulled into the index.php via ajax. You can see for your self by going to the homepage here www.w...
Hello,
I’ve spent the past hour search the web for possible solution, maybe I’m not using the right terms. I hope someone would be able to help me here.
I have a form used inside the fancyBox iframe, after adding this ”if statement” below my submit button doesn’t work any more. However if I select more then 5 days I get the error alert ...
Scriptaculous is built on Prototype. Is there an effects library similar to Scriptaculous, but built on jQuery?
There are many questions discussing jQuery and Scriptaculous, but none that directly address this question.
Thanks.
...
Hi guys,
I have a small problem with jquery $.ajax() function.
I have a form where every click on the radio button or selection from the dropdown menu creates a session variable with the selected value.
Now - I have one of the dropdown menus which have 4 options - the first one (with label None) has a value="" other have their ids.
...
I have the following code
$(function() {
$('#totalRecords').css('visibility', 'hidden');
alert("hi");
});
Problem is that it doesnt hide my drop down which is
<span id="lblCodes" class="pol" style="top:4;left:209;">Codes</span>
<span id="totalRecords" class="pol" style="top:4;left:350;visibility:visible;">
<select id...
I'm building a jQuery navigation and i cant seem to figure out how to make the navigation stay in the roll over state on the active page.
HTML...
<body>
<form id="form1" runat="server">
<div>
<div id="pageWrap">
<div id="pageBody">
<a class="hoverBtn" href="#"></a>
<a class="hoverBtn1" href="#"></a>
...
I do a bunch of $.post()'s in my script, within a $(document).ready(function(){
jQuery says:
If a request with jQuery.post() returns an error code, it will fail silently unless the script has also called the global .ajaxError() method.
I tried adding this as a first test
$(document).ajaxError(function(e, xhr, settings, exception...
I develop a simple overlay to preview image in full size.
I use "cache: false" to prevent caching.
The code is simple:
$.ajax({
url: urlFull,
cache: false,
success: function(html){
// display image
},
error: function(XMLHttpRequest, textStatus, errorThrown ) {
// display error
}
});
The problem is - Whe...
Hi,
I have a bog standard html page.
All I want to do is :
use JQuery on that page to send JSON requests to a WCF service
retrieve JSON back.
That's it.
I have the html page and JQuery written, no problem.
However, I can't find one tutorial that works. All the ones I've found have many conflicting parts to do with behaviors...