jquery

jQuery Penetration Tests

I'm a little worried about posting information via jQuery. In particular when, in WebForms, I do a call to a WebMethod within my form I can obviously intercept the call and data. Is there any way to secure this communication or is it a case of write your services in such a manner that they can't be used against you? If it's the latter...

JQuery getJson callback not parsing json

I used to be pretty comfortable with using jquery for json, but I'm having an odd issue tonight that I just can't wrap my head around. JQuery sends the request, the server fills it properly, but then there's no way to pull the data out of the json response. The server's ASP.MVC and serializing using the JsonResult/Json(). I'm complete...

Jquery Tabs - Flash of Unstyled Contnet (FOUC)

I am getting the Flash of Unstyled Content as this loads and can't get any of the solutions to work: <html> <head> <title>demo</title> <link type="text/css" href="css/cupertino/ui.all.css" rel="stylesheet" /> <script type='text/javascript' src='js/jquery.js'></script> <script type='text/javascript' src='js/ui.core.js'></scri...

MVC jQuery submit form (without page refresh) from JavaScript function

I'm pretty new to all this. I'm using ASP.NET MVC C# LINQ to SQL. I have an edit page that loads Authors and all their Books. The Books are loaded via an Ajax call. <script type="text/javascript"> $(document).ready(function() { LoadBooks(); }); function LoadBooks() { $(".Books").hide()...

how to make a "Tr" visiable and invisable based on radio buttonlist click

hi. i have an 2 "tr" under tr one have an file upload control tr two have an textbox control. so i have an radio button list woth three values 1:image 2:video 3:Audio by default i need to show file upload control visiable that is the 1"tr". but once user clicks on video/audio option in radio button list then i...

Tips on rendering html on client

What are the points to bear while designing and coding a web application where the approach is to render components on the client using jQuery/ScriptServices (as data source), similar to an igoogle page? ...

how to change the inline style of the page using jquery

I have an inline styles in my page as : <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>:: Inline Style Page ::</title> <style type="text/css"> <!-- body { background: #fff; font: normal 12px Tahoma, Verdana, Arial; color: #636363; } #header { he...

How to move Autocomplete list with Cursor moving during typing in textarea ?

Hello , i'm use jquery autoCompelte plugin. and i want to move the list while typing in type text area after the line ...

Find specific text in a DIV according to offset in pixels

I want to insert an image tag into a block of text so that the image is, say, 100 pixels down in the DIV. <div> A lot of text in a text block and a <img tag> somewhere that is floated left or right and positioned inside the text block </div> So, the tag above is put in the text block to be floated so that it is positioned...

IE - why it doesn't get changed?

Hi all, I've a got a: it works in FF but not in IE problem with my jQuery code, here the little snippet of code jQuery(this).click(function() { jQuery.post(href + '&rnd=' + Math.random(), function(data,status) { jQuery('.progress').show(); if(status == 'success') { var d = jQuery('<div id="insertDiv" />')....

Add a unique ID to form input for total

Hi, The problem I'm having is i'm working on an invoicing system. Which uses this, $(document).ready(function() { $('#add').click(function() { JQuery('#lineItems').append('<input type="text" name="description[]" class="ui-corner-all text invDesc" /> <input type="text" name="qty[]" class="ui-corner-all ...

Jquery validation: submit the form with javascript with no validation

Hi, i'm just using the JQuery validation plugin. i have the following spec: 'if the form isn't used in 10 seconds, give the user a warning, if he doesn't do anything, submit it anyway' besides the timer etc. i have this code to submit the form: timeoutId = setTimeout(function() { $("#session_expired").val("true"); $("form:first").val...

jTemplates: html in variables

I'd like to include some html in a jTemplate variable - e.g. <td class="numeric">{$T.total_price}</td> Where total_price is: "$12<span>.00</span>" Is there any way I can get the span to show up as html? ...

Custom checkboxes

Hey there, I've coded a little simple script that allows me to use custom checkboxes. It works fine on FF, Opera and webkit based browsers but, as usual, IE is giving me headhaches. The behaviour on IE is really strange, it seems like it's checking and unchecking random boxes on each click. Well, maybe it's not but I really don't see a...

Checkboxs: ticking me off!

Hi, this is a small, but very annoying, glitch in my form. I have a checkbox, that if clicked displays others checkboxes and input fields for the user to add more information. If this trigger checkbox is unclicked, the extra options dissapear. However (the plot thickens), if another checkbox is checked in the form, the trigger checkbox...

loading jQuery in webbrowser control from the filesystem

Here's my scenario: I'm using the WebBrowser control in a WinForms app to display data. The HTML is served via the DocumentText property and I want to use jQuery to interact with the contents. Loading jQuery from the web (Google APIs) works: actual html inside DocumentText, head block: <script type="text/javascript" src="http://ajax.g...

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $('#btn').click(function() { $('.movingPart').animate({ "margin-top":'0px' }); }); }); it works perfectly in chrome, but doesn't move a little in firefox, why??? t...

Update the view state for dynamically created controls using javascript

Hi, I have a gridview control on the page. when the page is loaded for the first time i am binding the data to the grid. But on the client side user can copy a row and add below in the grid. So iam doing it using jquery $(CpRow).clone(true).insertAfter(CpRow). But when the page is postback the clientside added row is lost due to viewsta...

Jquery - validation - Rules

Hello! I use JQ - validation plugin to validate my form. But i dont know what kind of validation rules in jquery! Could you suggest me a page where i can read about rules? I have two field, NAME and AGE, and i want it to validate for REQUIRED, MAXLENGTH, NUMBER /CHAR, MIN, MAX rules: { new_name: { required: true, maxlengt...

Use Jquery to alter an item in a selectlist?

Before: <select id="NumberId" name="NumberId"> <option value="">ZERO</option> <option value="4">FOUR</option> <option value="5">FIVE</option> </select> Using JQuery, modify the value of the option with an empty value to 0 (zero). After: <select id="NumberId" name="NumberId"> <option value="0">ZERO</option> <option value=...