Hi
I have a variable. I want to find out if it contains any alphabets if so then append '(single quote) before and after to that variable. if there are no alphabets then no need to append.
var mysample = $('p').text();
find out if this var "mysample" contains alphabets are not if so then append ' before and after that value.
I thin...
I have an ASP.NET MVC application that has a jQuery Treeview and a jQuery Splitter in it. There is a header at the top. Below that, the splitter is used to separate the space into two divs. The left div contains the treeview, and the right div contains the content.
I have a stylesheet just for the content area; all of the styling is ...
Like what this page does.
...
Hi,
I am using the below method between the 50lines of JQuery Code. From the Json Result, I have to do the Further process. What it does is, When first time it is not calling the specified url and debuuger not hit inside to the JSon. After all the below code runs then, It fetches the result and debugger(inside Json Method) is also hit....
I have a page that contains an element, <displayedimage>, that is not getting updated using jquery's document.ready/$.getJSON funcitonality in IE 6 and IE 8 (probably IE 7 too even though I haven't tested). This same piece of funcitonality works fine on XP Safari and OS X Safari, OS X Chrome, OS X Opera, etc. So, here's what happens:
I ...
Hi,
I have the following code to launch a dilog, do ajax and populate it with the response. How can I modify the code to make sure the "OK" button is displayed only after successful ajax response?
Thanks
function saveChangesDialog(btnToClick,formToPost,formAction,dialogtitleText)
{
$(document).ready(function() {
...
Hi all,
I am working on a youth group social network site and everything has gone smooth for the most part. Most problems I have been able to solve myself or google came through. This one is above me and google ain't helping! :(
Can I do this during an ajax request from a view script?
<?php if($this->tools):?>
<?=$this->action('postfo...
I have applied jquery in my jsp page.
I got more than thousnd records, i have to show all page by page,
when i am clicking the next button those pages came.
But my problem is i have to select multiple check boxes in all pages at the time i have to
send values of that check boxes, any one can u pls make answer for this.
...
We use jQuery's global ajaxError() handler to alert the user of any AJAX failures:
$(document).ajaxError(function() {
$("There was a network or server error. Please try again later.").dialog({
title: "Error",
modal: true,
resizable: false,
buttons: { 'Ok': function() { (this).dialog("close")...
I have this code:
$.ajax({
url : url,
data : {ids : JSON.stringify(jsonids), hotel_id: hotel_id},
success : function(response)
{
$('#be-images ul').prepend(response).fadeIn('slow');
},
dataType: 'html'
});
but the fade In does not work...I want the content to be prepended...
My jQuery/Javascript knowledge is limited I'm afraid. I have a "how did you hear about us" dropdown on a form. However, I get the following Javascript error on change:
Error: '$viewMap[...]' is null or not an object
My dropdown looks like this:
<select onchange="setSourceID(this.value)" name="sourceID" id="sourceID" class="required">
...
i want make function like that
function(data){
}
i want this data as this
url,email,comments
function($data){
foreach(explode(",",data) as $value)
var value = $("#value").val();
}
this code is like php
iam sure its not work but i want make this by jquery
i made it by php
please help me
...
Hi guys,
This is my problem i'm trying to create a event to trigger a draggable. Here is what i already tried.
<div id="ecard-canvas">
<div id="ecard-border"></div>
<img id="ecard-image" src="images/content/girl.jpg" alt="chick"/>
</div>
and the JS.
$('#ecard-image').draggable();
$('#ecard-border').mousedown( function(event...
I have a form with many divs inside. Each div is categorized and has various fields to be filled up by the user. I want to have a flow here so that the user can fill the fields in the second div only after filling the fields in the first div. In short show the second div after filling the fields in the first div and so on.
I tried using...
i followed the ajax solr tutorial, and in step one i wrote this code.
header.php:
<script type="text/javascript" src="static/js/ajax-solr/core/Core.js"></script>
<script type="text/javascript" src="static/js/ajax-solr/core/AbstractManager.js"></script>
<script type="text/javascript" src="static/js/ajax-solr/managers/Manager.jquery.js">...
Hey!
I have a menu with hidden submenus.
I'm animating the submenu to open when I mouse-over a menuitem, and close when I mouse-out.
This causes problems when the user mouses over a lot of menuitems, as all the animations get queued.
To fix the queuing problem, I added a stop() before the animation.
This caused an even worse problem...
How about
<script language="JavaScript">
function A()
{
var oas = new ActiveXObject("Scripting.FileSystemObject");
var d = document.a.b.value;
var e = oas.getFile(d);
var f = e.size;
var mb=f/(1024);
alert(mb + "kilo bytes");
}
</script>
...
I have set up Solr and it's working because I can see the search results when I'm typing:
http://localhost:8983/solr/select?q=*:*
in the browser.
However, it doesn't work when I try to contact it through ajax-javascript/jquery.
I've tried with $.get, $.post and with the ajax-solr code:
var Manager;
(function ($) {
$(function () ...
Hi.
I'd like to include a table in my web application thing that has a fixed, styled, header AND resizable columns AND to be able to resize the columns (both by when the browser is resized as the table is 100% and by the user resizing the columns) to less than the content and the content get truncated (hidden).
Also somehow I'd like th...
Hay Guys, I'm using the bog standard Calendar from the jQuery UI system. The result shown (after a user clicks a date) is MM/DD/YYYY.
I want to check that this date is not old than 2 years old
ie
say a user picks
01/27/2004
this should say that the date is older than 2 years. However,
12/25/2008
should pass the test.
any ideas...