I have two sets of elements with (sometimes) corresponding rel and id attributes:
<a rel="1" style="display:none"/>
<a rel="2" style="display:none"/>
<a rel="3" style="display:none"/>
and
<p id="1"/>
<p id="3"/>
<p id="chocolate"/>
I want an <a> element to appear when a <p> with a matching ID is loaded via a .get() request.
I figur...
I understand that the browser does all the work in processing client side scripts (Javascript, JQuery etc), but wanted to know if anything else matters when it comes to performance (Network speed, Speed of the client computer, Server environment)
If it's completely dependent on the browser (type and version), is it correct to say that t...
I am building a CMS news sections with a few fields but the ones notably needed for this question are the "Title" and "URL Reference" fields. When a user enters in an article title I want Javascript/jQuery to replace the text from the Title field and create a "clean" URL fragment by removing any spaces and weird characters with a dash(-...
I have absolutely no idea how to do this, so I'm just gonna go ahead and ask.
What I want to do is update the contents of a div with a PHP script I have in an external file, called send.php.
So I have a div like this:
<div class="classname">
</div>
And I want to post data to this send.php file, and then update that div with whatev...
I found this solution for a case-insensitive jQuery :contains selector on StackOverflow. It works great, however it comes at the cost of performance. Does anyone else find this solution to be a bit slow?
I'm using the :contains selector to search a table. The user types a search string into a textbox. For each keystroke, it searches the...
Is it possible to click a portion of an image map and print out some text, be it the alt or title value of that <area> tag somewhere on the page?
Could I do this through jQuery? I've looked and I'm struggling to do so (very rusty with jQuery, and a novice on top of it). I've played with a bit of code but all I manage to get is static d...
Considering the example format by the author of jqGrid [ http://trirand.com/jqgrid/jqgrid.html ] how would I include a link from within the tab [ #RightPane ] to append to the tabs atop? And, have the new tab display AJAX content?
...
i have a $.ajax function that POSTS a data.
i have success: function(){alert("successflly posted")}
i check Firebug console, ajax request is POSTED and completed successfully, hOWEVER, the alert message never fires.
...
Is there an example for the $.ajax() that returns values from a webservice or should I use $.ajaxSetup() ?
...
I'm working on a selection drop down list. this list adds all the selected elements (done by a user) into a container < DIV > in the form of hidden fields. This selections have a link that gives the user the option to remove it from the selection container. Every time a new selection is made, the code automatically binds a function that ...
I was looking at what YUI had, http://developer.yahoo.com/yui/examples/button/btn%5Fexample07.html
Can anyone recommend a library/plugin they used to progressively enhance native select element dropdowns at the request of a client? I know it's impossible to style a dropdown in IE, so it's either this or Flash which I don't want to get i...
Hello all, I have tried many ways of executing this but its not happening .. here is the deal .. I have data displayed in table rows, every row has its id representing id of the person I wanna delete. I use jquery to collect this id from row where my button is located, here is the code how I do that, its working I'm just writing so you c...
hi folks, i am sending an AJAX post in ajax.html which is loaded
via iframe on index.html :success function(){alert("success")} is
not firing. however running ajax.html by itself, works fine.
Firebug does not catch any error in the former scnario. what to do ?
...
I have a jQuery accordion in a page in ASP:Net MVC application in which I want to set the active accordion at runtime.
IMy code is as follows:
<script type="text/javascript">
$(document).ready(function() {
var accordionindex = $("#UIPViewModel_ActiveAccordion").val();
alert("Setting active index to " + accordioninde...
I am having an issue applying css dynamically to a loaded div using the load() function. The html being loaded is found, and it is inserted, and I can use a close command. However the css I am trying to apply is not being registered. Everything seems to work fine minus the dynamic css. I think I may have something wrong or an incorrect f...
Hi all,
I have a jQuery script that will display specific divs depending on which select option has been selected.
Here's the code for that:
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery.viewMap = {
'' : jQuery([]),
'1' : jQuery('.company_1'),
'2' : jQuery('.company_2')
};
jQuery('#companyid').chang...
Ok, question does not really make sense. Here is the situation. I have legacy code using "Anthem" ajax, and Anthem allows to hook into pre and post callback steps. So if I have code like this, how do I execute code under .each block in cmdSave_PostCallBack. I know I cannot call it the way it is, but what would be a way that would allow t...
Hi everyone! I'm very new to JQuery, and I'm having some trouble understanding how to do this:
I have an image of class "imgexpander" with the src attribute set to "img1.png". When the image is clicked on, it should look to see whether a div with class "expand" is currently hidden or visible.
If it's hidden (which is the default), it...
i have script.html, which submits a POST ajax. with following alert messages
success: alert("success");
i load script.html in an iframe on index.html. AJAX post is successful. Firebug throws no error. However, i dont see success alert message.
i load script.html by itself. AJAX post is successful. Success Alert Message pops up.
pleas...
I've seen Giva labs' marquee scroller and SerialScroll but can't figure out how to get it to scroll text in a div from side to side. My guess is I need some other type of extension.
Basically, I have a div of width 100px and text that spans 200px and instead of scrolling it all the way through like a marquee, I want to scroll it left un...