jquery

Can a Client Link to My JavaScript, Hosted on a Different Domain?

Is it possible for me to supply a client with a snippet of HTML which contains a reference to a javascript file that I host? They want to paste this HTML into their CMS, so that when their page loads, it'll load our content. I was under the impression that there was cross domain security preventing this from being possible. What if, i...

jquery validation problems

to custom validate an input i wrote a script: function cardNumberCheck(value, element) { var res = false; $.get("/CaseHistories/ValidateCardNumber", { caseHistoryId: $('#CaseHistory_Id').val(), cardNumber: $('#CaseHistory_CardNumber').val() }, function(data) { res = data }); //alert(res) => works fine return t...

How to create imaged scrollbars

Hello, How to create imaged scrollbars, for example: http://www.openstudio.fr/jquery/index.htm Basically, I want to create my own image slider with JQuery but I don't want to show default scrollbars. Instead, I would like to have imaged scrollbars. How do they create custom scrollbars? ...

How do I get the real .height() of a overflow: hidden or overflow: scroll div?

Hi all I have a question regarding how to get a div height. I'm aware of .height() and innerHeight(), but none of them does the job for me in this case. The thing is that in this case I have a div that is overflown width a overflow: scroll and the div has a fixed height. If I use .height() or innerHeight(), both of them gives me the he...

jquery add and remove class problem

I'm trying to bind a function with a non-existent class. I will try to explain my js: function hidelink() { $('#user_form').hide(); $('.selected').text("New User").removeClass('selected').addClass('unselected'); return false; } function showlink() { $('#user_form').show(); $('.unselected').text(...

Trigger Div Click From Link

Hi all I have a site http://www.thebalancedbody.ca/ and there is a pop out contact form on the left (Contact) which has this id <div id="mycontactform">. There is also a link in the footer called CONTACT US <a href="#" title="CONTACT US">CONTACT US</a> and I need this link to trigger the pop out contact form as if the contact tab ...

What is the most efficient way to parse json in jquery?

I am using json data and iterating it through jquery and displaying my results... Using var jsonObj = JSON.parse(HfJsonValue); works in firefox but not in IE6.... HfjsonValue is a json string which is returned from my aspx code behind page... SO i dont use ajax... Any suggestion to get my json parsed better and cross browser one... ...

Uncheck all checkboxes in repeater except checkbox being checked

I know my question reads a bit like that 'how much wood can a woodchuck chuck' line, please excuse that... I have a repeater with checkboxes. There are numerous rows in this repeater - I never know how many - I want only one checkbox checked at any time. If the user changes the checked checkbox, any pre-existing checks are unchecked th...

Strings in array are no longer strings after jQuery.each()

I'm pretty confused with the behaviour of arrays of strings when I loop them through the jQuery.each() method. Apparently, the strings become jQuery objects inside the callback function. However, I cannot use the this.get() method to obtain the original string; doing so triggers a this.get is not a function error message. I suppose the r...

Will jQuery work in a javascript-disabled browser?

I really want to know: Will jQuery work in a javascript disabled browser? If so, why? ...

problems with chili source code highlighter (mysql)

I am using Chili source code highlighter it works fine with php source using php as the class. But when i change it to mysql it doesnt highlight any SQL code i also tried sql as the classname, i double checked the recipes' and there is a mysql recipes in there. ... What could i be doing wrong? <pre><code id="code" class="php"></co...

mootools slideshow not working with JQuery. Need help !

I am working on a site http://tapasya.co.in where i just impemented mootools slideshow. But I noticed that menubar that i was using stopped working, it was supposed to drop horizontaly but it is not being displayed now. I have used jquery for it. Please see the source of the web page. What can be the problem ? Mootools conflicting with j...

jQuery in sharepoint retruning Object Expected

When I add jquery to sharepoint 2007 (MOSS) and try and use it on a page no matter what I write on the client i get an "object expected" at the line/column where the "$" appears. I have used fiddler to check that the client is downloading the query JS (which it is) But its like its being ignore and therefor eth "$" is not understood. ...

Generate page numbers using javascript/jquery?

How to generate page numbers like the below using javascript/jquery? If the 5 th page is selected i have to show 3,4 and 6,7 and also 1,last page with prev,next... Any suggestion.... EDIT: How to work with json data that use these pagination div? (ie) My json data contains 50 records I want to 10 in page 1 and so on... How to paginate...

Weird disappearing dropdowns in Opera 10.51 using jQuery fadeIn and HoverIntent

Take a look at www.sensenich.com in Opera. I'm not sure if this is specific to my version but Opera seems to do a number on the dropdowns from the top navigation menu. For some reason the li in the ul .subhead become transparent. Also if you hover over .subhead it immediately disappears. This behavior only seems to exist in Opera, ot...

jQuery Toggle with Cookie

I have the following toggle system, but I want it to remember what was open/closed using the jQuery cookie plugin. So for example if I open a toggle and then navigate away from the page, when I come back it should be still open. By default all Toggles should be closed. This is code I have so far, but it's becoming rather confusing, some...

Ways to keep track of dynamically created DOM elements in ASP.NET

Assume you have a page in ASP.NET where it makes sense to use JavaScript/jQuery to modify the DOM with values that will eventually be read by the server on submit. For example, you have a form that allows end users to add/remove objects (like dependents on a health insurance form or assets on a loan application). What are some ways to ...

JQuery.AJAX - can my server return a blob of data?

For the dataType option to the JQuery.AJAX function, I don't see byte array or blob as one of the possibilities. How can I get it so my server can return a byte array as the result of an AJAX call? I could convert the blob to text, but I'm going for compactness. EDIT:The blob will not be shown to the user. My javascript will look at i...

finding visited links in a jetpack extension

Hi, Is there way in jetpack(mozilla's extension development framework) , to find the the visited links in a page? BTW: jquery's a:visited works in firebug , but not in jetpack. i'm guessing it's part of jetpack's security. ...

JQTouch Pressure Sensitivity

I noticed an interesting bug with the JQTouch platform and wanted to know if anyone else has run into it our has a workaround for it. If I have a link with an onclick event and lightly tap the link on the iPhone, the link works, but the click event is not fired. If I tap the same link harder, the event fires. Any thoughts on this? ...