I have some hierarchical data stored as an multiple XML files on the server according to a vendor's schema. In my ASP.NET MVC (2!) application, I'd like the user to choose one of these hierarchies (i.e. file -- I provide a list in my controller's Index action). When the user selects one to "edit" my edit action should return a page tha...
Is there any open source tag editor for jQuery that works like the tag editor in stack overflow?
Thank you.
...
Hello,
I trying to make my first AJAX with JSON call using jQuery and CodeIgniter.
But for some weird reason it's not working.
The jQuery code:
var item = "COOL!";
$.post("http://192.168.8.138/index.php/main/test", { "item" : item },
function(data){
alert(data.result);
}, "json");
The CodeIgniter code:
...
I'm new to javascript/jquery and I've done some poking around the web, but I can't figure out why the following is invalid:
var toggleSection = function(sectionName) {
// Do some Jquery work to toggle stuff based on sectionName string
// (concatenate sectionName with other text to form selectors)
};
$('#togglecont1').click(toggleSection...
i need to trim a string to its first 100 characters using jquery/javascript.
also is it possible to scan a string and look for a particular combination of keywords such as #key?
thanks a lot for the help.
...
I am using the following code to make an unordered list into a carousel with jcarousel lite and jquery:
<?php echo $this->Html->script(array('jquery-1.4.2.min','jquery.easing.1.1','jcarousellite_1.0.1.pack','jquery.mousewheel.min'), array('inline' => false)); ?>
<?php echo $this->Html->scriptStart(array('inline' => false)); ?>
...
I've created a wrapper function for jQuery's $.ajax() method so I can pass different dataTypes and post variables - like so:
function doPost(dType, postData, uri){
$.ajax({
url: SITE_URL + uri,
dataType: dType,
data: postData,
success: function(data){
return data;
});
}
The proble...
Hi,
I've found this code in the internet:
$.tablesorter.addWidget({
id: "memorizeSortOrder",
format: function(table) {
if (!table.config.widgetMemorizeSortOrder.isBinded) { // only bind if not already binded
table.config.widgetMemorizeSortOrder.isBinded = true;
$("thead th:visible",table).click(function() {
var ...
I need to change the font color of a div with the id name "nav" to white.
I did:
$("#nav").css("color","white");
This works for all the text that isn't wrapped in < a > tags but I need those changed too.
I tried adding:
$("a").css("color","white");
But that doesn't work. I also tried:
var changeAColor = document.getElementsByTag...
Heres the markup:
<div id='0203' class='threadWrapper'>
<div class='littleme'>
I am trying to send the id of a parent div as a parameter in jquery.get function:
$('.littleme').click(function**()**{
var id = $(this).closest("div").attr("id");
$.get("PHP/viewedThread.php", {viewedURLID: id});
});
and am getting rather lost I'm afraid...
Built a theme in HTML/CSS and customized a the cycle plugin to be a gallery with pagination. Worked perfect, now turning the theme into wordpress, and the pager is adding extra numbers, like blank slide between each image. Anyone seen this before?
...
I have a page that loads and after it loads, it pulls in a list of LIs to populate a news feed.
<li><a href="/url/" class="quickview">quick view</a></li>
<li><a href="/url/" class="quickview">quick view</a></li>
<li><a href="/url/" class="quickview">quick view</a></li>
I'm trying to get fancy box to trigger when a user clicks on quick...
Hello,
I was expecting the below scenario common, but couldn't find much help online. I have a form loaded through Ajax (say, create entity form). It is loaded through a button click (load) event
$("#bt-create").click(function(){
$ ('#pid').load('/controller/vehicleModel/create3');
return fal...
This is probably a very basic question, but I seem to have issues plugging in jquery plug-ins.
The issue seems to be around the location of the script, css and images and ensuring the css has the correct url to the images.
The standard plug-in has the following folder structure (eg : JPicker)
js
css
images
My project is asp.net mv...
I had multiple div with class name blueflip i want to toggle this class's div content when the div link_button is clicked.
My Code :
$(document).ready(function(){
$('.blueflip').hide();
$('.link_button').click(function() {
$('.blueflip').toggle(400);
return false;
});
});
It works fine. But my problem is, my pa...
On a page I include some css eg:
<style type='test/css'>
.myBox{
color:#000000;
border:#FFFFFF;
padding:4px;
}
.myBox2{
color:#000000;
border:#FFFFFF;
padding:4px;
}
</style>
I want to then change the "color" property set within both myBox and myBox2 in jquery, without knowing the actual name (myBox, myBox2) of the css style. In other...
I'm using jQuery to modify the style of some pages in a large set of existing Web pages. This works, but the problem I have is that, for longer pages, the page is briefly visible with the wrong styles before the javascript kicks in and transforms the page.
I'm using this kind of thing (the alerts are just to emphasize the problem):
$(d...
I have a menu with seven items. If you click the first item, div one shows. If you click any other item (2 through 7) div two shows. That's what I'm looking to do.
I'm new at all this but am pretty sure it's an if/else function, such that if I click on <a id="1">, show the first div, else show the second div. I suppose I can do a hide/s...
How can I find all elements on a page which have a color of "blue"?
alert($("* [color=blue]").attr("id"));
The above example does not work. Please recognize that color is a CSS attribute. I'm certain it is possible I just cannot figure out the correct method to do so.
...
Hi,
I know how to move up and down an element in jQuery.
$("#div").animate({"left": "+=100"}, 1000); //move 100px to the right
But I have no idea to move in diagonal movement. I'm doing chess board and I don't know how to move Bishop with effect. Please have a look at following URL http://chess.diem-project.org/
I did like this... bu...