jquery

Dynamically set iframe scrollable

Hi, I have to make an iframe element from java script so it isn't scrollable anymore(the javascript function is called from a iframe inside the one that I have to change).Now it works but only on Firefox and Chrome and I must do it on IE also. I have no alternative than to change the scroll bars to the parent iframe and to understand wh...

How to make json array parsing work on the server side.

Hello, I have an action on my server side: public void Action(Container container) { } where container is: public class Container { public string[] Arr; } From the client side, I'm invoking this action in the way below: $.post("Controller/Action", { Arr: "abc" }, null, "json"); After this, the Arr in container contains one e...

JQuery: Click anywhere on body to close modal dialog for this code

The same question is asked here. but it doesn't state the source, and the solution given is not directly applicable in my case afaik. I might get modded down for this, but I am asking anyway. My Entire Code: <html><head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/scri...

Make Uploadify work in a jquery accordion header when wmode=transparent

Hi, I have a jquery accordion, and I want to insert uploadify inside the accordion header. Putting it there worked fine, but when I set the uploadify swf wmode to transparent, it does not work well: -in Chrome clicking the upload swf does nothing -in Firefox it does open the upload window, but also closes/opens the accordion -in Interne...

How do you completely unload a swf (sounds and all) using javascript?

So, I have web page that uses javascript to let a user select different audio files to listen to (using this player: http://www.macloo.com/examples/audio_player/) which works great in every browser except for any version of IE. After the audio starts playing I can't figure out a programmatic way to make the audio stop playing after the u...

jquery colorbox problem

hi friends i have i am showing some data via ajax on my page when ajax complete and i click on view info the colorbox is not working but i show the data without ajax and i click on the colorbox link its working and opening why javascript is not working when data comes via ajax thanks $.ajax({ url: "remote.php?act=ShowContacts&id="+i...

Manipulating elements after ajax load()

I am trying to manipulate some elements after I load them using .load(). I have everything loading correctly, but I can't seem to target any elements within any of the loaded elements. This seems like something that would be easy, but I just can put my finger on it. I am using a callback after the elements load, but the DOM seems to no...

how do I? simple scramble/encrypt string in server (ASP.NET) and unscramble/decrypt in javascript

Platform: Server - ASP.NET 3.5 / C#; client side - javascript/jQuery This is what I want to do Scramble a string in ASP.NET WebMethod (called through a jQuery Ajax call) before sending to the client Unscramble it in javascript and display I'm not looking at any sort of heavy duty encryption AES SHA whatever. I'm only interested in s...

jQuery adding to css element

I have the id of my element. I need to add a given value (determined by a variable in the javascript) to one of the element's css attributes. I.e. given an element id=my_id how do I add x to that element's margin-top attribute? ...

"if" statement in javascript & displaying result in label

Hi guys, I have a registration form where a customer selects their desired package via a dropdownlist. They then select whether they wish to avail of a multiyear discount by choosing Yes or No radio buttons. If the yes radio button is selected, a dropdownlist is shown (using javascript) with a selection of years 1-3. I'm not familar a...

How to disable tabs in JqGrid at runtime?

Two Default Grids Defenition: initialise(){ $("#ExpenseTable").jqGrid({ datatype : "local", mtype : 'GET', colModel : [ {name:'expnsId',label:'ID', width:150 }, {name:'userName',label:'NAME', width:150 }, {name:'catName',label:'CATEGORY', width:150 }, {name:'date',label:'DA...

[jQuery] Mouse position relative to div

Hello, I am using jquery ui for drag and drop. I am trying to get mouse position relative to div, here is my code: $( "#db_tables " ).droppable({ activeClass: "ui-state-default", hoverClass: "ui-state-hover", drop: function( event, ui ) { var x = ui.position.left - ui.offset.left; // tired event.pageX - this.offsetLeft; v...

Jquery Menu and iFrame shimmer

Hi, We have a JQuery menu which does not hide all HTML elements when displayed on top of those elements. We have seen other menu libraries providing support to use iFrame shimmer. Did not come across any such in JQuery. Anyone knows how to apply iFrame shimmer for JQuery Menu please? Thanks ...

jQuery custom validation method issue

I have a select list that's default value (for Please Select) is 0. this is due to the payment processing system and beyond my control. I have an add.Method that states if the select's value is "0" return false, otherwise return true. It works ok, except that when you change the select's value to something else after submitting and getti...

prevent event reinitalization in jquery tab plugin (ajax mode)

hi there, I hope you can help me with a problem; first, please don't worry about my language skills, I come from germany and I don't speak english every day, unfortunately :-( I'm using jquery tabs in ajax mode and have some problems concerning click events. An example: I initalizate in my first and second tab such a click function on...

Need help with jQuery validation for a select list

Possible Duplicate: jQuery custom validation method issue I have a select list #technology. It's default value is "0" due to back end payment processor. I need a validation rule (using jquery.validate.js) that makes it return false if it's value is "0" but return true for any other value. What I am trying isn't working. <scri...

Chrome problems

Hello, I have a few annoying problems. The thing is, that when I am looking with Firefox every thing work perfect, after I try it with Chrome, sometimes happens that the code appears one web page (it is not all the time). So, it appears in input text it display " />" or some piece of code of java script, which is written inside input t...

jQuery/ajax form - send to php problem

I have a nice looking slideup/slidedown jquery form on my website. It sends the data to the same file to send the email. This works fine: $(document).ready(function(){ $('div.contact a.submit').click(function() { var name = $('div.contact input.name').val(); var email = $('div.contact input.email').val(); var...

jquery multiple callbacks to keep animation order

Its only my 2nd day using this so im sorry if theres an obvious error here. Im trying to have 3 functions execute one after the other on load event, but the 3rd callback function cancels out the 2nd. Are you allowed 3? If no whats the way around it. $j(window).ready(function() { $j("#content").animate({ marginLeft: pars...

Jquery post, response in new window

Hi Guys, I have a script that on.DocumentReady posts data to another page. That page responds with some HTML encapsulated in one div tag. My goal is to have this post response/data open in a new window. Any hints or clues? Here is the snippet I created from Dr. Mille's advice. <script type="text/javascript" src="http://ajax.google...