My scenario is this:
When the page is loaded, a listbox with countries is loaded.
By selecting an item from a dropw down list, a country item in the listbox is selected using jQuery.
Now that a country is selected in the listbox, I call a function which retrieves cities and populate a city listbox.
The code looks something like this:
...
$.ajax($.extend(true, {...
Can anybody explain what this code is doing?
...
Hey all,
I've been developing jQuery plugins for quite some time now, and I like to think I know how to design one well by now. One issue keeps nagging me though, and that is how to deal with private functions in a powerful yet elegant manner.
My plugins generally look something like this:
(function($) {
$.fn.myplugin = function(.....
I am wondering how to build a load on demand tree view using ASP.Net MVC. I understand what is involved in creating a JQuery TreeView using lists, but the load on demand part is really confusing me. I don't need the full solution, but can somebody point me in the right direction on where I should start?
I have done these plenty of tim...
I have a table like this:
<table>
<tr>
<td>something</td>
</tr>
<tr>
<td>something else</td>
</tr>
</table>
now based on an id that is in the td i want to move the tr's around so that they are in the position held by the id. any ideas on how to do this?
...
There's a great tutorial on IBM's website which walked me through a simple search/results list using jQuery,PHP and Ajax.
I was able to make it work and it's really cool.
One problem. I want the results to be hyperlinks and I can't get any java script to run on the results.
Here is the script I have (includes what was in the tuto...
When developing an intranet application where the target browser is IE only (IE6 - horrible I know) is there any reason that we shouldn’t use the showModalDialog() feature of IE to display dialog windows?
My colleague prefers using showModalDialog() but I prefer using a jQuery plug-in such as FancyBox, FaceBox or ThickBox instead.
...
Is it possible to load multiple items at once through jquery using $.load? For exmaple I may have something like this:
<div id="test">
<div id="what">
</div>
<div id="when">
</div>
<div id="who">
</div>
</div>
Now say I wanted to load the div with the id of what and the id of when but not the who. is this possible?
...
Hiya,
I have the following markup
<div class="question">
<h2>Title 1</h2>
<div class="answer">content 1</div>
</div>
<div class="question">
<h2>Title 2</h2>
<div class="answer">content 2</div>
</div>
<div class="question">
<h2>Title 3</h2>
<div class="answer">content 3</div>
</div>
I want to toggle the class...
Hello,
I received help on the first part of my problem here whoever I forgot to mention my second issue. After a user selects a value from the autocomplete field I would like to populate the vaules ID into a hidden field so it can be passed to PHP and inserted into a database.
Here is a breakdown of what I am trying to accomplish:
Us...
Hi,
I have an iframe that holds a page. Now on that page, I have an image link that allows the user to detach the same screen from within the iframe and open into a new window using window.open(url,'newWin').
My questions is, as I am opening the same window that has the image link into a another screen using window.open(url,'newWin'), ...
I am in the process of stripping down some code I've written for a Time Frame selector function that filters search results based on a selected Time Frame (Last Month, Last Quarter & Last Year) by hiding all irrelevant results based on when they were created. The function is called by a GET variable submitted on form submit ?time_frame_q...
I have an Operation Contract that accepts a complex object and I'm calling the operation through jQuery. How do I pass in a complex type object like that using jQuery. Below is the operation signature:
public Resolution CreateNewResolution(Resolution NewResolution);
I need to pass in a Resolution object on the client, but I don't know...
<div class="top">
<div class="branch">
<div class="branch">
<div class="leaf">click</div>
</div>
</div>
</div>
When I click on the inner most <div class="leaf">,how to get all its way from top to itself:
top,branch,branch,leaf
EDIT to clarify
I want to have the path in an array:
arr[0]='top';
ar...
Very Brief Background:
I am using Jquery Autocomplete to lookup the the value of an item from a database. That value is then somehow given to a hidden field within the same form and then inserted to the database.
What complicates this slightly is that I am working through Jquery Ui Tabs, which I haven't had a lot of fun with in the pas...
In a script like this, would the load functions be called in asynchronously or one after another?
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("#TheLink").click(){
$("#PlaceToUpdate1").load("/Controller/Method/View1");
$("#PlaceToUpdat2"...
<div id="target">
<div id="test" att="test"></div>
</div>
$('target').haschild('#test') should be true
$('target').haschild('#test[att="test"]') should be true
$('target').haschild('#no') should be false
Only $('target') is available.
...
I'm building a very simplistic unordered list tree in XHTML with multiple levels deep. The way it works is that you click a parent node, and it uses the jQuery .load() API to make an AJAX call back to the server to see if this node has children. If it does, it inserts those nodes inside. When you click the parent link again, it does a .r...
Scroll plugin I am using keeps duplicating Previous and Next buttons. I dont understand why and I could not fix it. Any suggestions appreciated.
Codes
<style>
/* everything is constructed with a single background image */
/* root element for tabs */
#flowtabs {
/* dimensions */
width:760px;
height:31px !important;
mar...
i have a list of textboxes in a column of a html table. The table has an "Add" and "Remove" button next to it which (when clicked) will add new rows or delete existing rows.
I would like to have a dropdown select on my page that is essentially linked to this array of textboxes, listing out the values of the list of textboxes so:
if i ...