jquery

How to get the onclick calling object?

Hi, i need to have a handler on the calling object of onclick event ie <a href="123.com" onclick="click123(event);">link</a> <script> function click123(event) { //i need <a> so i can manipulate it with Jquery } </script> I want to do this without the use of $().click or $().live of jquery but with the method described above. ...

How to send the Id of this anchor as a function parameter?

Edit: Sorry guys, I got the issue, Misspelled class name :( Hey, I got a quick question for your guys here. I have some anchor tags each of them points to a url of a certain user. The link id is the username. All the links share a css class (.userset). When a user clicks the link I need to issue an Ajax request -using jQuery.ajax metho...

sending asp.net forms data using $.post

I have an asp.net page Default1.aspx with 2 text fields and a button. I want to use $.post to pass data from Default1.aspx to Default2.aspx. My question is how can i do that and then read the values in Default2.aspx? Note ihave seen the serialize() method but cannot figure how to use it in asp.net context ...

codeigniter and jquery uploadify

hi to all I have using codeigniter and jquery uploadify for my image gallery. It works fine in my localhost. My problem is when I uploaded into the server. Any help would highly appreciated. Thanks in advance the error is: 'Data Loaded: <p>The path to the image is not correct.</p><p>Your server does not support the GD function requ...

jquery .each loop and replace to same location?

i got help (http://stackoverflow.com/questions/1553601/jquery-select-a-tag-with-selector-from-a-text-veriable) on looping the static var and replacing it value, but just one question is left from it, is how can i replace finded tags with newly changed tags in the text area Code: var length = 30; var end = '...'; var text = `some st...

Any benefits of using the $.post to submit asp.net forms data

Can you site Any benefits of using the jquery $.post to submit asp.net forms data? When and why should i do it. ...

Ajax call not working in IE7 and FF.

Dear All, I have one js file with a ajax call which is working fine in IE6, but not in IE7 or FF. Can somebody help? window.onload = function() { var xmlhttp; var url = "myurl"; if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest(); } else if (win...

Show popup on mouseover with link

I am showing the list of users with images as a grid in my asp.net mvc (C#) application. When i click on the user's image, i need to show a bubble popup (like, when we click on events cell in google calendar). The popup will contain some basic information of the user and an edit and delete option. How can i achieve it in asp.net MVC us...

Seek jQuery's version of a Fireworks 'Swap Image'

Moving into the jQuery Way from Fireworks and need to implement jQuery's version of what FW calls a 'Swap Image' behavior. I've also seen the term 'Disjointed Rollover' used. Instead of a simply changing the image source of the activated anchor this version will also swap the source of other 'slices' (images) not connected to the current...

parse json array wich contains sql array

Hello, I am still searching for an answer but I haven't come up with a solution yet My question: How can I parse the json array I send it like this $data= mysql_fetch_array($r); header('Content-type: application/json'); ?> { "check": "<?php echo $check?>", "productcode": "<?php echo $code?>", "values": [<?php ech...

How can I retrieve the attributes of images?

How to retrieve the Image height and width from the IMG tag using jQuery and use this value in div style. like <div class=top>&nbsp;</div> <img src="source.jpg" width="200" height="400" alt="" /> <div class="bottom">&nbsp</div> I want to use the height of the Image and and apply to the DIV. like 400px-20px. div width. THanks ...

jQuery selector question

Hi there! I'm in a bit of a dilemma. I need to select div tags based on whether their children have a certain class. This is a code example of the DOM structure: <div id="container"> <div id="one"> <p>This is item one</p> <p class="special">This is a description</p> </div> <div id="two"> <p>This...

Faux Timeout Triggers with JavaScript/jQuery & AJAX

Within jQuery.ajax we have the blessing of setting a timeout in milliseconds and an Error callback to process that timeout. However, the some people are simply on slow connection, with small amounts of patience. What I want to do is simply display a message stating "This is taking longer than usual". The Timeout arguement in jQuery w...

Change content in iframe with jquery

Hello. I was wondering if it is possible to have a site with an iframe and some jquery code that changes the iframe content every 30 second. The content is differen webpages. Something like this: <html> <head> <script type="text/javascript" src="jquery.js"></script> <script> $(document).ready(function(){ var ar...

Can I make the browser follow a link after a certain amount of time with jQuery?

I want make a hyperlink turn active and go to that page after a certain amount of time or on pageload. Is this possible with jQuery? ...

How to open a partial view by using jquery modal popup in asp.net MVC?

I have a partial view which I want to open by using JQuery Modal Popup. There is no problem while opening the view for a new record but I want to pass data to this partial view for edit. What is your best way to implement this? Thanks in advance. ...

Why can't I get this value from the next dropdown with jQuery?

Hi there, I am attempting to get the value of a dropdown menu. I have several on the page. The way it works is there is a radio button before each dropdown and ideally, on selecting the radio button, we simply get the current value displayed on the next select -> option. What I have so far is: html: <input type="radio" class="ticket...

jQuery kills Lightbox

I just moved my javascript over to jQuery for the simple AJAX functions. However I'm trying to use a lightbox plugin with jQuery since I want to keep the same functionality but don't want to include 10 different libraries. If i remove the jquery include and keep lightbox, it works great if i put it back it breaks, it just brings up the f...

Move Browser window down to the position of a div when it is loaded by ajax & Jquery

Hi gurus, I have a div into which I am loading data dynamically by ajax, jquery. like $('#wp').load('http://someurl.com/getit',p,function(str){} ); Now because I am having page full of data before that div I need to move the browser window down to that div's location after it is loaded with slow motion like the similar effects in stac...

Jquery-- Finding the ID of an element in a DIV

Im trying to get the ID of the <div> element here so that i can use it to animate the opacity of the when i hover over the div with class 'module'. i have set the opacity of all the <div> elements with class 'moduleInfo' to 0. So basically what im trying to do here is when i hover my mouse over the module with ID modulePic_1 i want the...