I want to find the order of the <li> the user has clicked. For eg.,
<ul>
<li id="li1">This is list one</li>
<li id="li2">This is list Two</li>
<li id="li3">This is list three</li>
</ul>
When the user clicks on the list item 2, then i had to retrieve the id of that item as li2. How to achieve this, plz help
...
Hello fellows, I am using VSS 2005 & webforms with AJAX Control Toolkit. I am using Update panels for saving different parts of my form. Problem being I update the user with the status setting either a label or literal value.
This value is visible on the form untill the page is refreshed. Is there any way to display a message and fade i...
Hello,
I'm a beginner with Jquery so those questions should be pretty easy to answer. I'd like to modify the map hilight script (http://plugins.jquery.com/project/maphilight) to add 2 features :
Question 1. I'd like to be able to highlight some areas by keeping the mouse button pressed instead of having to click and release the button....
I have been using jQuery for the past couple of years now, and I'm comfortable with it. In every MVC project that I start, the first thing I do is delete the MicrosoftAjax files from the solution. I'm wondering now if there's any value in them though? What can I do with them that I can't easily do with jQuery? Also, why do Microsoft incl...
I have a div in which id is generated with index like gal1,gal2,gal3,gal4....
var clickid="gal" + index;
$('WANT TO PLACE clickid HERE').click();
I want to place the clickid variable inside the jquery selector. How to achieve it. This questions looks silly, but im a beginner eager to learn
...
Hello.
I am using a JQuery plugin to render a calendar (http://arshaw.com/fullcalendar/). Problem is that the dates are one hour ahead. I have tried looking into the files to find out where this happens.
Can it be something with day light savings? I am pretty clueless. The dates from the database is correct, but once they are converte...
Hi there, I apologise in advance if my question seems a bit misleading, but I'm trying to wrap my head around this one.
I have a flash-based MP3 player (http://blog.lacymorrow.com/projects/xspf-jukebox) that exposes a Javascript API that is really handy for my situation. I am using jQuery and swfObject to embed the Flash player and tha...
I've seen solutions like
top.document.getElementById('iframe_a').src
But the problem is, that I don't know the Iframes ID. My Application is running as a Gmail-Gadget and therefore I don't know which ID Google will generate.
So how can I get the URL of my gadget?
Using JQuery will also be fine.
...
I'm pulling my hair out trying to get a jQuery script working that will pick up the selected value in a RadioButtonList. I've done the usual thing when I can't get a script to run - cut and paste somebody else's into a blank page, get it working and then copy into the required page.
I have tried three different scripts, however, that ta...
I need a function that would direct the user to the correct image within easyslider when an external thumbnail is clicked
for example
thumbnail 1 = slide 1
thumbnail 2 = slide 2
i click thumbnail 2 slide 2 shows, at the moment if i click thumbnail 2 only slide 1 shows then i have to scroll to slide 2. there must be a way that the link...
Hi all,
i'm trying to make a test with ajax response using an external array as a config file...
But it isn't working, i'm getting always a blank response...
Can anyone point me the reason?
Here is the link of jsBin test: http://jsbin.com/udanu/2/edit
...
I've scenario where I want to insert data into database without post back. there are around 12 to 13 fields which i need to insert. I'm passing DTO from the client side which is actually Json object. Now the problem which i'm facing is how to convert that Json object which i got in webservice to the "class" (in my case class name is User...
i have menu like this
<ul>
<li>
<a href="#">Home</a>
<ul class="sub">
<li>Text</li>
<li>Test</li>
</ul>
</li>
<li>
<a href="#">About</a>
<ul class="sub">
<li>Text</li>
<li>Test</li>
</ul>
</li>
<li>
<a href="#">Con...
Hi,
I have a problem with the split() function.
I get the error undefined but it dont know why :/
It is easier to explain with a working example: http://www.jsfiddle.net/V9Euk/415/
$(function start()
{
css('#div { font-color:#ff0000; border:1px solid #00ff00; }', '#div_2 { font-color:#ff0000; }', '#line2 { font-color:#00ffff; }');...
Hi,
I have this following code
$(function () {
$.post("fetch_data.php?url="+$('#url').val(), { }, function(response){
var arrValues = [ "path/to/img1", "path/to/img2", "path/to/img3", "path/to/img4" ]; //output from php
var img = new Image();
$.each(arrValues, function( intIndex, objValue ) {
img...
Hi,
I want to use the ajax functionality to download whereby the user will click the download link which will (using ajax and $_GET) access a PHP file which will process the sent $_GET variables and access the correct file for downloading.
I have a few PHP scripts to handle the processing of the $_GET variables which work on their own ...
Hi,
I am using following code snippet, but its not working :-(
//First four characters of input Text should be ALPHABATES (Letters)
if (($("#txtId").val()).length >= 4) {
var firstFourChars = $("#txtId").val().substring(0, 4);
var pattern = new RegExp('[^A-Z]');
if (firstFourChars.match(pattern))
...
Hello, I have following table structure. (Using jQuery)
<table>
<tr>
<td><a href="#"></td>
</tr>
</table>
when I click on <a> I want to add new <tr> next to <tr> of which <a> is clicked.
So the result will be
<table>
<tr>
<td><a href="#"></td>
</tr>
<tr>
<td><a href="#"></td>
</tr>...
here is my complete code when i mouse over on popupcontact div it show the divtoshow div over it and it has one link of name rahul when i mouse over the link it hide the div name divtoshow.
my div should hide when i mouseout not when i mouseover the link.
please help asap.
regards
rahul
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tra...
I apply this script to my blog http://snipurl.com/10ympt but apostrophes are converted to '.
How can I make the translation to ignore those characters? Help/Thanks!
<script type="text/javascript" src="/js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<scrip...