jquery

How do I set a jquery tooltip from a database on server side?

I have a label on my asp.net page, it looks like this: more info When I hover over it, I'd like one of those jquery tooltips to display. The data will come from a database from my code behind. I've look at qtip, jquery tools, and the telerik tooltip. I'm just not sure how to set the content of the tooltip from server side. ...

jquery.cookie plugin, gettign an error saying jquery is not defined?

I included the jquery.cookie.js in my application and I am getting a firefox error saying jquery is not defined? I have jquery in the project FOR SURE, removing the jquery.cookie.js script gets rid of the error. What could be the reason for this? ...

jquery right way to bulk ajax requests

i have list of rows that user select and i want to delete them, one by one and show the result in the end. obviously if i just do simple loop and call each time ajax function, but how can i loop and check which one successed and which one failed and when they are all done? how would you do it? what is proper way of doing the bulk editi...

jquery slideup doesn't seem to be sliding smoothly

When I call slideup or slidedown on my div, it seems to be sliding very very fast. Do I need to slideup all the inner elements also? my DOM: <div id="outer"> <div id="inner"> <div id="inside">hi</div> </div> </div> ...

jquery find immediate parent of current element.

how can i get immediate parent of a given element ? $(e.target).parent() ? ...

JQuery addClass issue and sifr3 multiple fonts in a single line

Hi, I am having too issues with my site. The column page links are supposed to be highlighted via JQuery when their clicked on to add a CSS class with a white background. Currently it only works on the News section, but nowhere else. I have sifr3 installed and I know it can allow for multiple fonts to be used on one line. No matter wha...

jquery: how to select all other elements ?

say i have an e.target how can i select all other similar e.target elements ? for instance, e.target would be a link inside a div. how can i automatically select all links inside this div ? is there a function that does this ? ...

jquery: strange behavior with contextmenu

$("b").bind("contextmenu",function(e){ thiselementselected = e.target $("#add").bind("click",function(e){ thiselementselected.css("font-color", "red"); return false }); $("#remove").bind("click",function(e){ thiselementselected.css("font-color", ""); return false }); return false }); when i click on a b> element and click 'add', it ...

Parsing json in jquery

I have a php file somejson.php that echos a json encoded array {"jsonone":"first json","jsontwo":"second json"} I'm trying to access the response with jquery ajax to use this data outside the score of the ajax call. It keeps giving me all kinds of object(Object) or undefined errors. I'm guessing it's something as easy as wrong synta...

How to prevent multiple html selection box displayed on screen?

Hi All: I have been working on the last bit of my php + ajax based datagrid project.Everything works as I designed except one thing : I cannot stop user opening multiple selection boxes... Go my research page and use username "ChenxiMao" and password "accedo" to login(without double quotes). Note that perhaps the images used in th...

Last Five Pages Visited Cookie with php+jquery

how to show Last Five Pages Visited Cookie with php jquery. ...

jquery: how to ignore immediate children() and go deeper until match specified element ?

$(this).parent().parent() .children(this.attr("tagName").toLowerCase()) .css("background-color", "yellow"); xpath: /html/body/div/table/tr/td/b/a $(this).tagName is Anchor <a> the problem with this is that children() looks at the immediate children of $(this).parent().parent(). Hence it will highlight <b> instead of <a> i need a ...

javascript error for the textbox

hi, <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick ="toggletr();" /> <script type ="text/javascript" > function toggletr() { debugger; var Inputs =$get("TextBox1"); } </script> i trying this i am getting error: Microsoft JScript runtime error: Object expected but in textbox it contains v...

Inline jquery script to a separate js file with asp.net master pages

Hai guys, How to include inline jquery scripts used in an aspx to a separate js file with asp.net master pages ...

jquery: how to traverse upwards incrementally (adding parent()) via function ?

this code below selects all the given children from the parent. $(this).parent().find(this.attr("tagName").toLowerCase()) however, i dont know how to traverse upwards with the parent(). i would require a function that would automatically keep adding .parent() each time the function is called. For example, i call function once and it ...

calling server side method in JQuery in asp.net

hi, in my application i have an form where user enter their username first . now i should check whether that username is avilable or not i have wtitten an method "username" which does this whuch return true or false as a return type. here i am doing using jQuery with ajax to achive this concept. once the u...

Change image x and y co-ordinate on mouse hover

I have one image what I want to is: change its x & y position on mouse move. for example: <div class="mover" id="1"> <IMG SRC="images/buttons1.png" WIDTH=129 HEIGHT=30 ALT="" border="0"> </div> <div class="mover" id="2"> <IMG SRC="images/buttons2.png" WIDTH=129 HEIGHT=30 ALT="" border="0"> </div> What I want to do is like no...

How to expose IFrame's DOM using jQuery?

Hey.. I have a prototype representing a particual IFrame. That prototype have a function called GoToUrl(...) that opens the given url within the IFrame. My question is: How do I create an "InternalDOM" property and make this property refer to the "window" object (the root DOM object) of the IFrame inside? In such way that: If my IFrame ...

jQuery How to control, does an element exist in document?

I want to control does an element exist in document with its ID, when page is loading. I tried code which is below, but i failed. if($(':not(#<%=TextBox1.ClientID %>)')){ alert("Object is null")else{alert("Object is exist")}} Thansk for your helps already now. ...

How to hide a value in a textbox?

I am showing the value in the textbox.The value comes from the databse first I store it in the variable.I have three radio buttons and when the user click third radio button the textbox going to be disabled.At the time I want to hide the textbox value displayed within the textbox.But not to set NULL.How can I do Using Jquery? ...