jquery

How to get IP Address in a PageMethod?

Using jQuery, my client side is calling Vote from a page method. The signature of the webmethod is below. [WebMethod] public static string Vote(int selectedAnswer, int pollID, string userToken) { ... } My question is in Vote(), how do I reference Page.Request so I can get the user's IP Address? In a normal page load meth...

Jquery Animate Background Image Transition

I have a navigation bar that when hovering over an item, the background image is changed, that works fine. However, I would like this image to slide in from the top, and slide back up when you stop hovering. I've been trying to do this with JQuery, using css bacgroundImage and sliding or toggling, but none of that seems to work. How can...

jquery lightbox inline - without popup

i like jquery lightbox control looks nice and shows me a title one 1 of x images etc. I need exactly the same thing but without pop up. So whas is now visible after i click thumnail of image i want it to by visible as inline content somewhere on my page with first image loaded and then i could just use next prev. of course in this case, ...

How to use the lightbox plugin colorbox?

I want to show the contents of a hidden div in a light box when the page loads. How can I do this with color box? What I'm not understanding: Do I need to use their CSS files? Which ones, where is it? How do I make the lightbox come up when the page loads? I tried this but no luck: $(document).ready(function(){ $("#div_id_i_wa...

Skip clicked item in jQuery each loop

I'm trying to write a loop to iterate over each anchor in an unordered list and perform an action on an image inside the anchor. The markup looks like this: <ul> <li><a href="#"><img src="image.png" /></a></li> <li><a href="#"><img src="image.png" /></a></li> <li><a href="#"><img src="image.png" /></a></li> </ul> A click ...

jQuery draggable + sortable: strange mouse offset behaviour

I have draggable list of < li > elements which I'm able to drag into another empty < ul > element. If I drag the first < li > element of the draggable original < ul > everything works fine... Problem: ...but when I drag any other < li > element of that list the 'helper' moves away from the mouse pointer as soon as I cross the border of...

How to refresh asp.net charts in MVC using jQuery

I downloaded the code and am following the sample Guy from Queensland How can I refresh the chart when I click Refresh? The following code returns the PNG in binary. <input type="submit" value="Refresh" id="refreshIssueHistory" /> <div id="theImageIssueHistory"> <% Html.RenderPartial("~/Views/Issue/Charts/IssueHistoryImg.ascx"); %></d...

jQuery hover fade problems

Hi can someone please explain what I am doing incorrectly. I am trying to have an image (bub1) fade in when you mouseover a link (butt1) and fade back out when you mouse away. Thanks for any help. I updated this based on the help here and added my html... <a href="#" class="butt1"><img src="images/button-1.png" alt="" class="hom...

Stripes & jQuery - how do i sent over variable in an ajax request?

So I have a table in a jsp page with several rows and checkboxes for each row. I created a js function that creates an array of the value on the checkboxes. I want to send this array over in an ajax call so I toJson-ed it but I dont understand how actionbean variables get set with these parameters. Can anyone help? THANKS! ...

print a modal window not the rest of the page

i have seen some answers to this but i think i am actually having a css issue. here is a sample fragment of my html < id=container> children children if i pop open the modal there is a print button. when i click it i use jQuery to apply a .noprint to #container and .print to #modal. but the .print to modal is disregarded. no matter what...

Manipulating an element using jquery not working

I have a regular div, like so: <div id="registry_ViewPanel"> <div id="registry_Header">Register</div> <div id="registry_Content"> //Registry fields here </div> </div> with css: #registry_ViewPanel { width:400px; height:400px; border:1px solid; background-color:#fff; display:none; position:fi...

Sending the current date via ajax to my .net handler, how to pass a safe date?

Hi, I need to pass a date, that will be generated via javascript to a asp.net http handler that is services in ajax requests. On the .net side, I will take the date passed in a cast it to DateTime. The date has to have: yyyy, mm, dd, and minutes and seconds. How can I format a date in javascript to this format? Using jquery ...

How can I have 2 sliders for a form value in jquery?

I am sure this is possible but I have not been able to find an example or anything yet. I have a search form on my site where users can search for other users bas on there age range, for example there is 2 dropdown list with age numbers like 16-35. Is there a way to have a horizontal line and have numbers accross it and 2 objects I can...

How to rewrite this javascript that receives a request object as JQuery

Hi everyone, I want to learn how to do some AJAX (using comets) with JQuery, I have a Javascript version, am curious to see if anyone knows the JQuery equivalent. function go(){ var url = '<%= ApplicationPathUtils.getApplicationPath(pageContext) + "/Weather" %>'; var request = new XMLHttpRequest(); request.open("GET", u...

Jquery Multiple Notice Messages

I am trying to create a stackoverflow type notice message. I found most of the code I needed from other posts but was having problems closing messages if multiple notices were used. Ideally if the second box out of 3 was closed, then it would fade away and the 3rd box would take the second's place HTML <div class="message" style=...

can you format jquery tabs

can you have images as backgrounds or any other additional formatting for jquery tabs. every example that i have seen is only showing simple white tabs like this: http://yensdesign.com/tutorials/tabs/ i am trying to see if i can replace a current jpg image map (on this page http://www.salemgolfclub.org/) with jquery tabs: ...

Jquery: How do I trigger a modal window just from the existence of an element

I have a form that generates the following markup if there is one or more errors on submit: <ul class="memError"> <li>Error 1.</li> <li>Error 2.</li> </ul> I want to set this element as a modal window that appears after submit, to be closed with a click. I have jquery, but I can't find the right event to trigger the modal window. He...

Migrate jQuery to jQuery UI

Below is my full code for my site's drag and drop, that saves positions into mysql This is a couple years old though and I would like to update my jquery to a newer version. This code uses the older jquery version 1.0.2 and interface.js I believe to use drag and drop with jquery's newer versions requires the use of jquery UI plugin? C...

Detect key event (Enter) with JQuery in Javascript (on Linux platform)

Hi there, Update: =========================================== I finally figured out that "keypress" has a better compatibility than "keydown" or "keyup" on Linux platform. I just changed "keyup"/"keydown" to "keypress", so all went well. I don't know what the reason is but it is solution for me. Thanks all who had responsed my questi...

ASP.NET MVC/jQuery: Inplace Editing

Hello, I want to do inplace editing where I have regular text (coming from a Model) with an edit button next to it. When the edit button is clicked, I want a editable textbox to appear where the regular text was, and then commit a change via AJAX. I already solved how to commit, but I don't know how to place the editing control accurate...