i have been really stuck on this. this is the code:
js:
var treeoptions={"data":{"type":"json","opts":{"url":"\/surveytags\/treejson"}}};
$('#treecontainer').tree(treeoptions);
$("#treecontainer").tree({
callback : {
ondblclk : function (node, tree) {
alert(node.id);
},
o...
I have a function that issues an AJAX call (via jQuery). In the complete section I have a function that says:
complete: function(XMLHttpRequest, textStatus)
{
if(textStatus == "success")
{
return(true);
}
else
{
return(false);
}
}
However, if I call this like so:
if(callajax())
{
// Do som...
I have a method which returns a persisted html template from a database.
The template is of the format:
<div id="item_collection">
<div id="item_x">
<p id="item_x_headline"><h2>Some Headline</h2></p>
<p id="item_x_excerpt>Some text here</p>
</div>
<div id="item_x+1">
<p id="item_x+1_headline"><h1>Some H...
Hi, I've been using XPath with Selenium quite happily and even using getEval with a but of Javascript, but a colleague said wouldn't it be great to be able to use JQuery selectors in Selenium.
I've googled it, but can't find any articles that seem to work for me. Could anyone provide a comprehensive guide on how to use JQuery syntax to ...
I have a Treeview (bog standard ASP.Net Treeview) that is bound to an Xml source which allows the user to navigate to various parts of our system. Nothing special....
However, I wanted to generate a breadcrumb for use in the main content area on the client side when the user clicks a node in the Treeview control. I know there are mech...
I have the following JQuery code:
$("#myDIV li:eq(0)").live('click',function(){ funcA(); });
$("#myDIV li:eq(1)").live('click',function(){ funcB(); });
$("#myDIV li:eq(2)").live('click',function(){ funcC(); });
$("#myDIV li:eq(3)").live('click',function(){ funcD(); });
And realized it's really inefficient.
So I tried the following, w...
I'm using ASP.NET, not the newest one with that clientIdMode stuff. So, the control ids are generated and funky.
There are lots of ways of passing ids around, but lately I've been assigning a 'fake' css class to the control I'm interested in. Then in a js file I use jQuery to find the control.
Is this bad practice? It seems a lot li...
Hi,
I have a number of elements that i want to loop through as groups. Consider this HTML:
<input class="matching match-1" />
<input class="matching match-1" />
<input class="matching match-2" />
<input class="matching match-2" />
<input class="matching match-2" />
<input class="matching match-3" />
<input class="matching match-3" />
/...
I am trying to reset a variable (that updates the src value for an image) when an area of an image map is clicked, so that the hover function calls a different image when the user hovers over another area in the image map.
I have a variable called "state" that I set right off the bat. This is the variable that I want to reset when an ar...
I have this code:
var originalBorder = container.css("border");
container.hover(function(event) {
event.stopPropagation();
$(this).css("border", "1px solid "+options.color);
},function(){
$(this).css("border", originalBorder);
});
Which I am using to add a border to the currently h...
I have an image, and I would like to make the image link to an embedded YouTube video, such that if the user clicks on the image, it starts playing in the place where the picture used to be.
<div id="myvideo">
<a href="http://www.youtube.com/watch?v=Msef24JErmU&playnext_from=TL&videos=dgzKE_Lyv7o">
<img src="starryeye...
helo frids I have a string..
someting like this
string Fname = name - shiva;
while assigning to the other string I need remove the - in between..
can anybody help me out
thanks
...
I'm using a bit of jQuery to expand/hide some divs. I need to add an event handler so that when a link is clicked, it opens a corrisponding div. Each toggled div will have a unique class assigned to it. I am looking for some advice about how to build the event handler.
The jQuery
$(document).ready(function(){
$(".toggle_container:not(...
Hi,
I've just been learning some jQUery to get a basic image gallery going on a website I'm creating for a hotel but it's currently not going to plan. I've got it so the arrows will cycle through images (no animation yet) but I decided that the arrows should fade in when the image is hovered over and fade out when not but this is messin...
Hi
I have an ASP.NET Page on which the user need to select the TimeSlot like 10:00 AM PST, 10:15 AM PST.... etc at a constant interval of 15 Min (Flexible).
Using the JQuery datepicker, we can only select the date.
I am wondering if there is any readily JQuery plugin available for Timeslots as well?
Appreciate your responses.
...
Hi
I am wondering if we can have block any specific dates from Jquery UI DatePicker?
For Example, if we want to block all dates till tomorrow, we specify as below.
$("#UsageDate").datepicker({ minDate: +1 });
Similarly, I want to block Weekends and few official days from my Holidays Schedule(For example, May 31, Nov 27th and Dec 25...
Hi. I'm using the Flowplayer Flash video player to play MP4 videos inside an AnythingSlider. I need to detect when the user has clicked the start button on the video so to stop the slideshow and allow the user to view the video. I've tried using this code just to get an alert box but it doesn't do anything (the code is at the end of the ...
I'm trying to figure out why this is a problem when using jQuery 1.4.2 and not 1.3.2.
This is my function:
function prepare_logo_upload() {
$("#logo-upload-form").ajaxForm({
//alert(responseText);
success: function(responseText) {
//alert(responseText); ...
Hi, I want to start a project for facebook and the application will be like real-time multiplayer chess game. The problem I'm having is I have no idea how to store the data when a player moves one piece and update the new position in player2 browser. I'm gonna use PHP, MySQL for server side and jQuery for Client Rendering. The simplest i...
why do programmers say that "live" is inefficient?
So what are the alternative
methods to replicating that function
that are more efficient?
How do we measure the impact of how much it slows things down?
...