jquery

hide javascript/jquery scripts from html page ?

Hello guys, How do I hide my javascript/jquery scripts from html page (from view source on right click)? please give suggestion to achive this . Thanks. ...

can you return a string[] from ASMX to JQuery AJAX?

Here's my web method [WebMethod(EnableSession = true)] public string[] LoadArray() Here's my javascript $.ajax({ type: 'POST', url: '/services/Service.asmx/LoadArray', data: "{}", contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(arr) { for ...

JQuery: SlideToggle on links?

How do I perform a JQuery 'slidetoggle' effect using a hyperlink, instead of an input button, as the action item? At the JQuery refence page http://docs.jquery.com/Effects/slideToggle#speedcallback It only gives an example of using a form input button. I would like to have instead of a button, a hyperlink to be the toggle clickable a...

Assign an existing click event function to another click event using jquery

Ok so i have some html like this: <div id="navigation"> <ul> <li> <a>tab name</a> <span class="delete-tab">X</span> </li> <li> <a>tab name</a> <span class="delete-tab">X</span> </li> <li> <a>tab name</a> <span class="delete-tab">X</span> </li> <li class="selected"> <a>tab name</a> <span class="tab-del-btn">X</span> </li> </ul> </...

jQuery Animate GIF

I've got an animation that doesn't look so good in GIF format (transparency makes it look jagged). So I put three layers together with jQuery and I've got it looking pretty good... But, I now have another problem. I want to plot each of these animated images onto a map at different times. Plotting the points is easy. But plotting the po...

disable jquery datepicker

Hello friends!!! I have used jquery datepicker in my .aspx page. The control is working fine. What i need is to disable the control if the textbox on which it is linked is disabled. For ex. I am showing datepicker on textbox "txtDateOfAssignment". If the Enabled property of this textbox is false then datepicker should not be active on t...

I can't figure out the bug in this jQuery.

The page having problems is... http://schnell.dreamhosters.com/index.php?page=gallery# I use Firebug to debug my jQuery and other code tidbits and it's been proving very useful for Javascript/jQuery debugging. However, at the same time, it's been one of the most frustrating debugging experiences I've ever gone through. I'm not sure wh...

How do I implement observer pattern on PHP + Javascript/jQuery?

Just like in SO, where one is answering a question, if somebody has answered said question, a notification will appear (via AJAX?). My only way of somewhat replicating this is by including a timeout on my script that fetches if there is an update every n seconds. Is there a way to do this using observer pattern on PHP + Javascript (w/ jQ...

How to implement navigation bars like here?

It's in fact a picture. See #navMain in this page Best in jQuery. ...

How to use jQuery click event to change href value asyncronously, based on a JSON query

I'm using the bit.ly url shortening service to shorten certain url's being sent to a "share on twitter" function. I'd like to load the bit.ly url only when a user actually presses the share button (due to bit.ly's max 5 parallel reqs limitation). Bit.ly's REST API returns a JSON callback with the shortened url, which makes the whole scen...

Problem with asp.net webforms ajax & citrix

We have developed a webapplication that uses asp.net webforms with ajax extenders/controllers. Everything works fine when users use it internal on the internal company net, but when users acces the webbaplication from outside the company net via a citrix weblogin/proxy the application crashes and alot of errors occurs. Seems likes the...

How to get Twitter status with JQuery

I found about JQuery jsonp issues in jQuery ajax (jsonp) ignores a timeout and doesn’t fire the error event. I have tried to get my last twitter updates with: var jsonTwitterFeed = "http://twitter.com/statuses/user_timeline/softamo.json?count=3"; $.jsonp({ url: jsonTwitterFeed, data: {}, dataType: "jsonp", ...

What is the jQuery equivalent of Scriptaculous ?

Is it jQuery animate? ...

How can jQuery find the row number of a button clicked in a dynamically generated table?

I have a table that looks like this: <table> <thead> <!-- random table headings --> </thead> <tbody> <tr class="readonly"> <td><input type="text" readonly="readonly" name="bookings[start][]" class="date" value="start"/></td> <td><input type="text" readonly="readonly" name="bookings[end][]" class="date" ...

How to open editor in click.

I have page with 5 divs and i want to open editor on click of selected div . And div content will come into the editor what i will do for this. is there any j query for this. ...

Disable Jquery validation

I am using Jquery validation plugin for UI validation. I have a Jquery menu to select the type of transaction. On certain menu selection there should not be any validation happening. I am not sure if there is a way to tell Jquery validation to be disabled I am using a following ways for the validation 1) $.validator.addMethod() 2) $.va...

Are named functions underrated in JavaScript?

Taking the jQuery framework for example, if you run code like this: $(document).ready(function init() { foo.bar(); }); The stack trace you get in Firebug will look like this: init() anonymous() anonymous([function(), init(), function(), 4 more...], function(), Object name=args) anonymous() anonymous() As you can see, it's not very ...

jquery - Block specific links before a page fully loads and binds click events

I have a modal dialog plugin written in jquery, that binds to the click event of all of the <a> elements with a specific class. The modal dialog 'fetches' a page via AJAX, which is declared under the 'href' parameter of the <a> element. Everything works fine, but - when a user clicks the <a> link before the page was fully loaded and r...

how to retrieve an href value from the link that opened a dialogue box Jquery UI

Hello , I have just started learning Jquery and am new to writing javascript (I am too old to write noob it feels wrong). Scenario: I have a hyperlink that opens a dialogue box and sets a cookie. The dialogue box is asking something like "would you like to visit this page are you sure? " it has Yes/No buttons on it. If the user clicks...

How to check value of INPUT element on change?

I have an INPUT element of the TEXT type and I want to perform an action whenever the INPUT's value does not equal a default value. How do I do this? I've looking into jQuery's "change" event handler, but it only works for SELECT elements. Anyhow, here is what I want to do.. Example: <input type="text" name="test" value=\"Default..\" /...