JQuery :: How To Stop Resizing The Resizable()

Dec 31, 2010

I am using a resizable() event and I want to bound the max height and max width within another div element. Containment option does not work. So, I used the resize event. I am able to trap the condition where the resize goes beyond the container, but not able to stop the resize.

[Code]....

View 2 Replies


Similar Messages:

MVC :: Jquery Resizable Not Working On Ajaxically Loaded Content?

Nov 2, 2010

have following div on my page

[Code]....

i have following function to make it resizable

[Code]....

till here everything works fine and i have resize handle in bottom right corner of the div but on click of function the inner div is loaded again from the server

[Code]....

even though i m calling resizable function in ajax callback but it doesn't seem to work. i can't see resize handle in bottom right corner of ajaxically loaded div. the id is right everything is same. what might be the problem?

View 2 Replies

JQuery :: Resizing Image After Jcrop?

Sep 24, 2010

I'm using JCrop, by using Mikes great article at: http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET

There are two things I haven't been able to figure out how to do though:

(1) How do I check if the uploaded image is big enough? (i.e. how do I determine width of image is > 200px")

(2) How do I resize the cropped image to 200px in width.

View 6 Replies

Possible To Stop Event Using JQuery/javascript?

Sep 9, 2010

I have some code like below in an aspx page:

[code]....

I had thought that returning false would keep my asp.net OnClick even from firing, but it still does. I've confirmed that it is getting to the return false section of code using alerts. Is there anything I can do to stop it from firing using jQuery/javascript?

View 2 Replies

Stop Postback After Using JQuery Dialog?

Dec 6, 2010

I have a JQuery Dialog that is opened when a button is clicked. The first time around, it should do a postback, but when the dialog closes and I click the refresh button of the broswer, it sends the data again and duplicates the data I just entered. Should I add a return false somewhere so it doesn't postback when the dialog is closed. Here is the script:

[code]....

View 3 Replies

JQuery :: Stop Event Propagation?

Sep 27, 2010

I have two click handlers hooked on the click of an anchor. I want the first handler to be able to cancel the propagation of the event to the 2nd handler. Also, I want to be able to cancel the default click behavior of the anchor.

Problem is, StopPropagation is not found as a method on the "e" object passed to the event handler. Why is StopPropagation not found?

[Code]....

View 6 Replies

JQuery :: Unable To Stop Button's Code Behind?

Feb 21, 2011

Currently users select a record in a gridview and click on the delete button. Delete button passes certain variables to identify the record, makes a SQL connection and then deletes the record by executing a stored procedure. This is way the delete button's code behind works. Now we need a confirmation box if a certain flag is False. If the users select YES then they should be able to delete any way otherwise clicking on Cancel should stop the operation. I don't want to use the onClientClick event of the button like many examples on Web show, instead I am using the jQuery, that uses the button ID and pops up a confirmation dialog. The issue I am having is even if the Cancel button on the confirmation dialog is clicked it still goes on to run the code behind, executes the stored procedure and deletes the record. The browser being used is IE 7.0, how do I stop the button from running the code behind in the button_click event if they select cancel?

I have tried return false, e.preventDefault();event.propagation, event.returnValue = false etc but can't stop it. Here is the jQuery, that goes to the webservice when clicked and determines whether to display the confirmation or not when another stored procedure returns the record count of 0 or more. Like I said it works fine in getting the flag value from the SQL but does not stop at the client level and continues on to the code behind of btnDelete.

$(function() {
$("#btnDelete]").click(function(e) {
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebServices/myServices.asmx/ConfirmDelete",
data: "{}",
dataType: "json",
error: function(req, msg, err) { alert(req, msg, err); },
success: function(msg) {
if (msg.d == 0 && !confirm("Do you wish to delete this record?")) {
event.preventDefault();
return false;
event.returnValue = false;
}
}
});
});
});

View 7 Replies

JQuery UI Selectable Stop Event Doesn't Work In IE

Jun 22, 2010

I have a JQuery select component and a javascript function to handle the stop event:

[code]....

The script works fine in firefox and chrome but not in IE7/8. It is normally supposed to send a string to the openid_identifier textbox once the google or yahoo select box is clicked.

View 3 Replies

JavaScript - Jquery Dialog Stop Closing When Error Occurred

Oct 15, 2010

I am using the jQuery Dialog in ASP.NET. I have it working fine with the exception of when I click the OK button in the dialog and if an error occurred I want to show the error in the label. By the time the dialog closing event is fired it is too late. How do I still show the dialog if an error has occurred. I don't want to close the dialog when there is an error.

[code]....

View 1 Replies

Stop The Auto Suggest Feature From Dropping Down Suggestions While Using Jquery Autocomplete?

Jan 13, 2011

How do you stop the auto suggest feature from dropping down suggestions while using jquery autocomplete. The auto suggest is dropping down over the autocomplete selections. Its terribly annoying. I've tried z-index. Nothing seems to stop it.

View 1 Replies

JQuery :: Adding Play / Stop Button To A Simple Slide Show?

Sep 24, 2010

I got the following code with the help of raghav khunger and I wanna add a play and stop button on it to cycle the pictures orderly and stop them. how can I do that?

[Code]....

View 6 Replies

C# - Non Resizable Web Page Using .net ?

Jan 29, 2010

i want to create web page which can not be maximized or minimize how to create such,, and sometime we can see some advertising page which is fixed so i want to create like that,,

View 3 Replies

.net - Gridview With Resizable Columns

Mar 18, 2011

have a gridview and i wanted to allow the client to resize the width of the columns.on how i can accomplish

View 1 Replies

Web Forms :: How To Make Website Resizable

Jan 19, 2011

my question is how do you make all the elemnts within your page automaticly resize when switching from one view to the other :

lets say the home page orintation is centered but when the view switches from a 22 inch screen to a 14 inch screen every elemnt seem out of order .g

View 3 Replies

Resizable Gridview Columns Using Javascript?

Jan 22, 2010

I want to Resize Gridview columns using javascript. Below is an example.

View 4 Replies

Web Forms :: Resizable Textbox Within GridView?

Jun 1, 2012

This is working fine without gridview.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Automatic Resize TextBoxtitle>

[Code]....

But i want place this textbox in gridview.. but its getting problem..

View 1 Replies

Resizable Image Background To Be Fix Whatever Size Of The Browser?

Feb 24, 2011

I think this is a overused question, but I'm gonna ask this again. I have 800x600 Background Image. I want that background image to be fix whatever size of the browser how to do that ? Or if its a bad idea of having a fix background image, what is the best way to keep my website to contract. I mean not giving a user to think that I used so many panels, or divs or any containers if they scrolll up and down my web.

View 7 Replies

How To Create Non Resizable Custom Server Control

Mar 14, 2010

I am building a custom web panel control for specific purpose.I want the control be fixed with specific width and height so that not to be resized in design mode as well as from property window.How can I do this.

View 2 Replies

AJAX :: Resizable Control Extender / PnlResourceProjectMapps Is Taking Width As 300 And Not The 500?

May 17, 2010

I am using following code in aspx page for resizable control extender.

<ajaxToolkit:ResizableControlExtender
ID="RCE"
runat="server" [code]...

But when i run it, pnlResourceProjectMapps is taking width as 300 and not the 500. I have tried different ways to solve this but not succeded.

View 1 Replies

C# - Image Resizing On The Fly?

Jan 7, 2011

For simplicity lets say that I have a web page that needs to display thumbnails of images. The images locations are stored in a database(the images are stored on Amazon S3). Is it possible to have my web server scale down the large image before it is delivered to the client? This way I don't have to store thumbnails of every image and the client can download a smaller file.

View 2 Replies

Image Resizing From A Class?

Sep 9, 2014

I found some code that resizes an uploaded image ( stream ) to a pre-determined size. Using this code, it works perfectly..

Code:
' make sure we have a file .
If FileUpload3.HasFile Then
Dim name As String = FileUpload3.PostedFile.FileName
Dim Justname As String = Path.GetFileName(name)
Dim length As Integer = FileUpload3.PostedFile.ContentLength

[Code] ....

What I'd like to do is move this code into a Class so I can call it from other pages, so I created a class and added this code...

Code:
Imports Microsoft.VisualBasic
Imports System.IO
Imports System
Imports System.Xml
Imports System.Xml.Xsl

[Code] ....

As you can see, I'm trying to pass in a stream and defined width, and I want it to pass back the image ( if the size if greater than what I expected.

I'm trying to call the class like so.

Code:
' make sure we have a file and that we have an ID to set it to.
If FileUpload3.HasFile Then
Dim name As String = FileUpload3.PostedFile.FileName
Dim Justname As String = Path.GetFileName(name)
Dim length As Integer = FileUpload3.PostedFile.ContentLength

[Code] ....

Don't worry about the cc.imgStr this is just the path to my class which is defined futher up.

The Error I get is "Value of type system.io.stream, cannot be converted to ' 1 dimensional array of byte' "...

View 1 Replies

Resizing Images With .NET And Saving To Database?

Mar 18, 2010

I need to take an uploaded image, resize it, and save it to the database. Simple enough, except I don't have access to save any temp files to the server. I'm taking the image, resizing it as a Bitmap, and need to save it to a database field as the original image type (JPG for example). How can I get the FileBytes() like this, so I can save it to the database?Before I was using ImageUpload.FileBytes() but now that I'm resizing I'm dealing with Images and Bitmaps instead of FileUploads and can't seem find anything that will give me the bytes.

View 3 Replies

Container DIV Tag Is Not Resizing When The Contents Overflowing?

Feb 1, 2010

I have a DIV container tag and an image box inside it. i want to get the cssClass for resizing the container DIV when the image box size is overflowed.

<div style="height: 315px; width: 295px">
<asp:ImageMap ID="ImageMap1" runat="server" Height="266px" Width="282px">
</asp:ImageMap>
</div>

View 1 Replies

Resizing Image In Losing Quality?

Sep 28, 2010

I have a script which resizes images, I did not write this script, nor do I know any ASP.NET, but I have been assigned the task of fixing an issue with it!

The problem is, the resulting image from the resize appears to be of less quality than the upload, even if the file uploaded is already set to the correct size.

Uploaded image - [URL]
Resized image - [URL]

The script that is doing the resizing is as follows, how to correct the issue?

[Code]....

View 2 Replies

Image Editor To Allow Cropping And Resizing?

Feb 11, 2011

My requirement is when ever user upload an image and want to resize an image and then save that image into the database

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved