I will show the problem with a example.
There is some text in the textbox such here:
Hi! this is a example [lnk]text[/lnk]
When i push the submit button and publish this text, the word in the [lnk] and [/lnk] tags must be a link like this www.mysite.com?link=text.
How do I make it easily with javascript or jquery?
Note: I'm not so ...
I'm using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in $(document).ready . For example:
$(function() {
$('div._Foo').bind("mouseover", function(e) {
// Do something exciting
});
});
Of course, this works fine the first time the page is loaded, but when t...
I'm trying to set up a loop where an animation runs a certain number of times, and a function is run before each iteration of the animation. The timing ends up being off, though -- it runs the callback n times, then runs the animation n times. For example:
for (var i=0;i<3;i++) {
console.log(i);
$('#blerg').animate({top:'+=50px'},7...
Hi there,
I have a problem.
I am coding using VS2008.
I am calling webservices from my Javascript Page.
An example
Services.ChangeDropDownLists.GetNowPlayingMoviesByLocationSVC(
blah,
OnSuccessMoviesByRegion,
OnError,
OnTimeOut
);
after execution it goes to the function OnSucc...
function AddTheatres()
{
Services.AdminWebServices.AddTheatresSVC(oTheatres,OnSuccessTheatres,OnError,OnTimeOut);
}
function OnSuccessTheatres(result1)
{
Services.AdminWebServices.AddTicketPricesSVC(oTicketPrices,OnSuccessTicketPrices,OnError,OnTimeOut); //working
}
function OnSuccessTicketPrices(result2)
{
alert(result2); //...
I have extensively used Prototype before and it helped us add considerable interactivity to our web applications. However we are looking at making the move to use jQuery in order to standardize on something better supported in Visual Studio.
I understand that we can use the jQuery.noConflict to run it alongside Prototype, but we would l...
I'm looking for a free (GPL or BSD-type license) outliner library that works in a browser.
It doesn't have to be too complicated, just allow keyboard control of collapsing and expanding items, and changing their order.
Anyone know a good library for this? Do any of the big UI component libraries have an outliner? If not, how would I g...
I'm relatively new to jQuery, but so far what I've seen I like. What I want is for a div (or any element) to be across the top of the page as if "position: fixed" worked in every browser.
I do not want something complicated. I do not want giant CSS hacks. I would prefer if just using jQuery (version 1.2.6) is good enough, but if I need ...
Here's the scenario:
I have a textbox and a button on a web page. When the button is clicked, I want a popup window to open (using Thickbox) that will show all items that match the value entered in the textbox. I am currently using the IFrame implementation of Thickbox. The problem is that the URL to show is hardcoded into the "alt' ...
I have the following snippet in one of my html pages :
<div class="inputboximage">
<div class="value2">
<input name='address1' value='Somewhere' type="text" size="26" maxlength="40" />
<br />
</div>
</div>
My problem is that I need the inputboximage background to change when I click in the address1 text field and to r...
I'm trying to create a jqgrid, but the table is empty. The table renders, but the data doesn't show.
The data I'm getting back from the php call is:
{
"page":"1",
"total":1,
"records":"10",
"rows":[
{"id":"2:1","cell":["1","image","Chief Scout","Highest Award test","0"]},
{"id":"2:2","cell":["2","image","Link Badge","When you are inve...
I am using JQuery to post with AJAX to another ASP page. Do I need this ASP page to return a full html page. Or can I just have it send back a value ( I just need a status ) . Here is my function.
$.ajax({
url: "X.asp",
cache: false,
type: "POST",
data: queryString,
success: function(html){
$('#x_'+Num).append(htm...
I'm trying to learn jQuery, to make up for my anemic javascript skills.
As a test project, I have a page full of links, and I want to have a button on the page open all the links in new tabs. The links all have target="_blank" attributes.
I'm using this
$('button').click(function() {
$('a').click();
);}
I've tested the sele...
I'm using jQuery and wanting to target the nth <li> in a list after clicking the nth link.
<ul id="targetedArea">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<div id="clickedItems">
<a></a>
<a></a>
<a></a>
<a></a>
</div>
I can target them individually, but I know there must be a faster way by passing which <a> elemen...
Hey guys!
Sorry, if this is a noobish question, but I'm just getting started with Rails and jQuery. I have the following scenario:
I have 3 classes: contacts, companies and contact_company_joins (ccj).
For all three classes I created models, controller and views. Obviously, contacts and
companies are connected via the join-table ccj (...
I have a menu with an animation going on, but I want to disable the click while the animation is happening.
<div></div>
<div></div>
<div></div>
$("div").click(function() {
$(this).animate({height: "200px"}, 2000);
return false;
});
However, I want to disable all the buttons while the event is happening, AND disable the div that...
I am building a FAQ module for my site and I want to be able to control single elements on the page even though they all have the same class. I believe this comes under siblings which I am not yet familiar with.
Basically I want the user to be able to click the question div and then when they click it the answer div within the same div ...
Hey there,
is it somehow possible to call a rails function or to access a rails object from within jQuery?
I'd like to do something like:
jQuery(document).ready(function($) {
$('#mydiv').html("<%= @object.name %>");
});
OR
jQuery(document).ready(function($) {
$('#mydiv').html("<%= render :partial => "contacts" %>");
});
At the mom...
Hi,
I want to use jQuery with asp.net webfoms. Do I need to get a special toolkit so the .net controls spit out friendly Control ID's?
Reason being, I don't want to write javascript referencing my html ID's like control_123_asdfcontrol_234.
Has this been addressed in version 3.5? (I remember reading you have to get some special dll ...
Would you please help me in making a rollover effect using jquery, what i want to do is when someone hover over any of the menu items the text slide down and disappear and a picture slides from the top down to the center (e.g. you could see this effect here panda as you can see the picture slide down from the top but the text does not sl...