jquery

How can I prevent Facebook Connect isUserConnected function from running twice in jQuery?

I've got a bit of a problem with a Facebook integration. When my users click a link, a function checks if a user is logged into Facebook. If they are not logged in, I set a piece of data, and then run the Facebook login stuff. When Facebook returns that they login, I go check the piece of data that was stored and run the original funct...

Is it possible to load multiple different version of jQuery on the same page?

I'm making a bookmarklet which will load jQuery if the object is not found. The loading will check on the version of jQuery. The code is like: (function(){ var myBkl = { loadScript: function(src) { if(window.jQuery && window.jQuery.fn.jquery == '1.3.2'){ return; } var s = document.createElement('script'); s.setAttri...

Gmail like alert box (for infomation or error display) throught jQuery in ASP.NET

I am looking for some sample code/control which gives me the feel of gmail like message box through jQuery in ASP.NET. ...

Retaining of page using pagination in jQuery after performing few actions on the page

Hi, I am using JQuery for pagination. I have a button in that page, when clicked information is stored in back end and the page gets refreshed. But after refreshing i am able to see the first page of pagination and not the page in which I ckicked. ...

Phototagging like in Facebook and Orkut album photos?

Is there a jQuery library or any leads on implementing that photo tagging like in Facebook and Orkut Photo albums? Thanks ...

Build a website in jQuery alone ?

Hi, I am new to jQuery. Is it possible to create a website, such as an online quiz, with jQuery and HTML alone? ...

Overlay Text On ImageButton

Does anyone know of an easy way to display text over top of an image? One solution I've found is to just do the following: <img id='img1' src='myimage.jpg'> <div style='position:relative; top:-30px'> MY TEXT TO DISPLAY ON IMAGE</div> This will cause the Div and all of its contents to move up 30 pixels. The problem is that I do not kno...

ASP (not .NET): sending null as parameter to stored procedure in query string?

I have the following code on an ASP page: <% QueryToJSON(conn, "execute WebGetEmployeesPlanned'" +Request.QueryString("customercode")+"', '"+Request.QueryString("lang")+"', '"+Request.QueryString("date")+"'").flush %> There is no other code on this page except some includes, as I call this page with ajax from another...

Disable image from caching?

** edit it seems that when the javascript changes the image that the reflection gets an undefined src. Any thoughts on that ** I've got this problem where I'm using jquery to reflect an image. I've got this news title list and it's automatically jumping through titles. Each time it changes the image and the reflection. This works pref...

Dynamically changing height of div element based on content

I'm working on a Facebook-like toolbar for my website. There's a part of the toolbar where a user can click to see which favorite members of theirs are online. I'm trying to figure out how to get the div element that pops up to grow based on the content that the AJAX call puts in there. For example, when the user clicks "Favorites Onl...

How to insert an element in DIV at position X Y

Hi! I am trying to create a webpage where users can insert a pin (like google map) in between the text using context menu. My problem is that i do not know how to insert the pin at the exact position. Using the DOM I can arrive only to the nearest DIV (by using this) but a DIV contains a lot of text and the PIN has to be positioned nex...

jquery heirarchical menu design

edit: ok, the line: $( <?php echo("'#".$_GET['item']."'") ?> ).parent().show(); Is obviously and attempt to keep the menu open at the right place. I don't think this ever worked (got I hate working on other ppls code). Then my current problem is how to access the <ul class="myul"> directly above the <li id="001" > using that item ...

WYMeditor won't reflect contents into textarea value

I started deploying WYMeditor across all the content types on a site, and its looking good. Now I got to see how it works saving and viewing, but its not submitting anything and I have no idea why. I've looked at this from several angles. I would even take a monkeypatch at this point, if I can learn how to grab the data myself I can sti...

jQuery - Find the next element which has a specific child

Lets say I have something like this: <tr> <td><input type="text" /></td> <td>Somevalue</td> <td><intput type="text /></td> </tr> I am in the event handler for a keypress in the first text box. I want to find the next td which has a text box in it if it exists using jQuery. ...

jQuery width() returns 0

I'm writing a jQuery plugin that handles a bunch of image animations with a simple call to the plugin function (something like $("#image1").anims() where #image1 is an image), however as part of the plugin's functionality I use $(this).width() to get the width of the image right at the start of the function call. But, since the plugin ...

Using JQuery in asp.net Masterpage

JQuery is not being able to identify tags when I use in the Master Page. The following code: <script type="text/javascript"> $("body").append('<div id="test"><p>Hello</p></div>'); </script> Works fine in normal pages, but when the body is in the master page and I put this same code in the Master page - nothing happens! How can I...

JQuery ajaxStart event not being captured in ASP.net AJAX

I have an asp.net page with a save button within an updatepanel and contenttemplate. The save works nicely, but I am trying to add a "wait" gif while the save is happening using JQuery, but the ajaxStart event is not firing. I put a simple catch shown below: $(document).ajaxStart(function(){ alert('starting'); ...

Append to json

Hey everyone, I have a json object that hold alerts and information about them: var alerts = { 1:{app:'helloworld','message'},2:{app:'helloagain',message:'another message'} } along with a variable that says how many alerts there are, alertNo. My question is, when I go to add a new alert, is there a way to append the alert onto the al...

JS/jQuery: How can I select the first LI item of an UL navigation when hovering over another (lower) LI element?

Hello again. I am trying to make a navigation that uses simple unordered lists to list all the links. Basic stuff. However the first LI element has a class name of "section-title". following this 'section-title' are the links to the other pages. Now i would like to change the background color of the li.section-title to black while hove...

Swapping rows in JQuery

If I have a table as shown below, and have a up and down arrow that moves rows up and down, how would I go about swapping rows in JQuery? <tr id="Row1"> <td>Some label</td> <td>Some complex control</td> </tr> <tr id="Row2"> <td>Some label</td> <td>Some complex control</td> </tr> <tr id="Row3"> <td>Some label</td> <td>Some co...