Javascript - JQuery Alert When Bar Code Is Scanned

May 5, 2012

I want a web page that pops up a JavaScript alert when a bar code scan is done. I don't want to tie the event to any visible control such as a textbox so thus, I won't have focus on any control to capture the scan input. Can this be done with JQuery?

View 1 Replies


ADVERTISEMENT

Javascript Alert Msg In Code Behind Asp.net 3.5?

Sep 26, 2009

How to use Java script alert msg in code behind? This message will be display after save the data.Here is my code,enter code here

Protected Sub Add_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Add.Click
'add new class
Dim DbClassMst = New ClassMst()

[code]....

but is not working.

View 4 Replies

.net - Replace The Asp.net MsgBox With Javascript Alert?

Nov 15, 2009

Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView1.ItemCommand
'...vwmr for view more; atcr for add to cart
Dim var As String = e.CommandArgument.ToString

[code]....

i want to replace the asp.net MsgBox with javascript alert...how can i do that? the commented out lines are the once i have already tried out...the asp.net MsgBox does not work on client side after publishing the website.

View 6 Replies

Javascript - Response.Redirect AFTER Call To JS Alert Or Confirm?

Apr 13, 2011

I am working on a VB.NET web application. When someone successfully changes their password I want to show a popup message that lets them know it was changed successfully. After they click OK I want to redirect them to the main page. Code looks like this:

ClientScript.RegisterStartupScript(Me.GetType(), "confirmScript", "ConfirmNewUser();", True)
Response.Redirect("MainPage.aspx")

Why does the redirect happen and the alert popup never displays?

View 4 Replies

Delete A Gridview Row Using Javascript Or JQuery

Dec 26, 2011

How do I use this jQuery function to remove a row.

$(document).ready(function() {
$("tr").filter(function() {
return $('td', this).length && !$('table', this).length

[Code]....

Here I have another control delete button, in delete button I will get a id to delete, here I want to pass that id as a parameter to script function ,
and I want to search hidden field contains those value and delete that row.

Private Sub btnDelete_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnDelete.Click
'some operations
ScriptManager.RegisterStartupScript(Me, GetType(String), "Deletearow", "DeleteGrid_Row(" & Me.hfSelected_GvResultsRowTocID.Value & ");", True)
End Sub

View 2 Replies

Get Data Into JavaScript And Render With JQuery?

Dec 5, 2011

So here is the situation. I am originally a PHP developer, here are my steps to render data:

PHP gather data from DataBase
PHP write data to JavaScript
JavaScript render using JQuery to HTML
HTML display to user
User Postback to PHP
PHP write back to Database with new data

Now I am using VB.NET and I need to use their paradigm with controls and what not. However I would like to render using JQuery and JavaScript. How do I get data into JavaScript when loaded in VB and get it back once user post?

[Code]...

View 2 Replies

Javascript - Change Hue Or Color Of A PNG With ASP.Net/jQuery

Jun 2, 2012

I'm working on a web page that takes multiple PNG images and merges them into one image so the user can download the flat image. I would like to add a hue or color adjustment (like color balance in photoshop) so I can adjust the different PNG image layers without having to create a separate image for each hue. Right now I'm using ASP.net/VB.net and some jQuery and the System.Drawing.Image method to merge the images. I can't seem to find any information on doing this for the web without using silverlight or flash and I do not want to use either.

View 1 Replies

Jquery - Calling A Function From Javascript

May 25, 2009

I need to find a way to call a vb.net function in my aspx page from javascript. I have a Jquery function that makes the .drop class .droppable, and whenever I drop a .draggable onto a drop target, my Jquery code successfully fires a java alert statement. All in pure javascript. What I need to do is some heavy math!

[Code]...

View 2 Replies

Jquery :: Compare Dates Javascript?

Apr 26, 2011

I need to validate different date's with some javascript(jquery).I have a textbox with, the inputmask from jquery The mask that i use is "d/m/y".Now i have set up a CustomValidator function to validate the date.I need 2 functions. One to check if the given date is greater then 18 years ago. You must be older then 18 year.ne function to check if the date is not in the future. It can only in the past.

The function are like
function OlderThen18(source, args) {
}

[code].....

View 4 Replies

Use Javascript / Jquery In Windows Applications?

Dec 2, 2011

This might be a stupid question but is it possible to use javascript/jQuery in windows applications? Im making this application in vb.net, just for personal use and im just making it to practice and to learn more about vb.net programming. I know javascript is ment for web applications but maybe there are ways to use them in windows applications aswell.

[Code]...

View 4 Replies

Javascript - ASP.NET JQuery Filter Listbox From Textbox Value?

Feb 3, 2012

I have a text box and a list box, my ultimate aim is to use the text box to filter the list box. The below code works however the text box is case sensitive and I need the user to be able to input any case and it filters the list box accordingly, at moment.Example

"MY SITE" = Works
"my site" = Works
"My Site" = Does not work[code]........

View 1 Replies

Javascript - Pass JSON File From ASP.NET To JQuery?

Feb 27, 2012

my problem is that my company does not want to serve up the .json MIME type, so I have to use ASP.NET to fetch the JSON file from the file server. Currently I have jQuery that does a getJSON and traverses the JSON object to build certain elements of the page. Is there a way I can use ASP.NET (VB) to give the object to my jQuery script after I fetch it?

View 1 Replies

Javascript - Using Jquery To Pull From Ajax Response

Jun 15, 2012

[URL] Response when viewing URL: {"Status":"OK","Message":"0","Info":"(none)"} Using JQuery how do I pull from that? I get how you do POST and sending but little lost has to how to pull from that. Do I use GET? Am I doing something like $.get("URL HERE"...?

View 3 Replies

Jquery - Delay A ASP.NET AutoPostBack So JavaScript Fires First?

Mar 2, 2010

I've got an odd situation with a text box and an autocomplete setup on my page. I'm using a JQuery based autocomplete on a text box that has AutoPostBack="True". This works perfect if I use the keyboard to select an autocomplete item, which then fires Jquery to fill in the text box, and then when I tab out of the box the AutoPostBack fires. If, however, I click on an autocomplete item, my text box loses focus first and the AutoPostBack fires before the Jquery has a chance to change the text in my text box. Is there a way to delay either the PostBack or the Jquery so that they don't fight each other? I'm thinking it may have to be the PostBack that gets changed, since the JQuery would lose it's state on the PostBack.

View 1 Replies

Jquery - Show Thumbnail From A Folder Using Javascript In Asp.net

Sep 7, 2011

I have uploaded some images using uploadify and saving the original file in "uploads" folder and thumbnails in "uploads humbs" folder now what I need is I have a div element on the main.aspx page where I need to show thumbnail image.After clicking the thumbnail I need to give a lightbox effect to it.

1.I have done this way but this is showing me the original image instead of thumbnail.So how do I point to my thumbnail.

2.When Using Lightbox effect how do I manage my two Imagess with the below code.

This is my Handler code:

Public Class UploadVB : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

[Code].....

View 2 Replies

Barcode Scanner - .NET Event When Bar Code Scanned?

May 5, 2012

I have a USB bar code scanner that is acting as an HID keyboard emulation device. I want a web page that, for testing purposes, pops up a JavaScript alert when a scan is done. I don't want to tie the event to any visible control such as a textbox so thus, I won't have focus on any control to capture the scan input. Can this be done? I'm using VS 2010 with .NET 4.0 and VB.NET with a Symbol USB bar code scanner.

View 1 Replies

Javascript - Set JQuery Toggle To Be Open On ASP.Net Gridview Postback

May 12, 2011

I have a jQuery 'toggle' function on a table that I am using in conjunction with an asp.net gridview. I have pagination on my gridview and when I click on the next page, it posts back and therefore closes the Toggle/Table - I need a way of keeping it open. I have had a similar issue in the past with the Accordion function but resolved it via this method

<asp:HiddenField ID="hidAccordionIndex" runat="server" Value="0" />
<script language="javascript" type="text/javascript">
$(function () {

[Code].....

View 1 Replies

Javascript - Show Modal Dialog Implementation Using JQuery

Apr 22, 2011

I need to open a page as a Modal Dialog using Jquery .For Example: I have 2 pages say, Parent.aspx & Child.aspx, I need to open child.aspx in a modal dialog using JQuery when i click on a button/link in the parent.aspx. Also Postback can happen in the parent and child pages.

View 5 Replies

Jquery - Javascript Posting To .Net Page Multiple Times?

Apr 15, 2011

Upon a javascript button click, I'm using jquery to post to a url:

$(".optionClick").click(function () {
var caseOption = $(this).attr('title');
$.post("../tracking/RecordClick.aspx?page=gallery&item=" + caseOption);
});

On the page being called, I'm using the following vb.net code to retrieve the querystring variables and write them to a database:Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

[Code]...

Each of the javascript blocks above worked locally as intended but failed in the same manner with multiple DB writes and Firebug "Aborted" status.If I call the url+querystring directly via the browser, everything works as expected. (Edit) Also tried using the full path url in the code above - no improvement.

View 3 Replies

JQuery Error On JavaScript Document Null Or Undefined

Oct 10, 2011

I am recieving the following error when trying to execte the java script listed below in the page load event of an aspx web page.

Microsoft JScript runtime error: Unable to get value of the property 'document': object is null or undefined

Dim scriptString As String = ("<script>javascript: window.opener.document.forms(0).submit(); </script>")
If Not Page.ClientScript.IsClientScriptBlockRegistered(scriptString) Then
Page.ClientScript.RegisterClientScriptBlock(Me.[GetType](), "script", scriptString)
End If
I am trying to produce a postback.

View 1 Replies

Javascript - Creating A Web Server Control To Mimic Jquery Autocomplete API?

May 2, 2012

I am attempting to create a ASP .Net (VB.Net) custom control for an auto-complete drop down that uses jQuery auto-complete.The basic flow is the consumer of the control will set some properties (such as the data source) which will then be injected as javascript to initialize the autocomplete.There are a lot of pieces involved so i may have missed posting some of the code, please comment if you think something is missing and i will add it.the consumer's code behind (PreInit event):

myDropDown.DataCallback = "testFunc";

the DataCallback property in the control:

Public Property DataCallback As String

the options object creation and javascript injection in the control code behind (PreRender event):

Dim _serializer As New JavaScriptSerializer()
Dim optionsObject As New Dictionary(Of String, Object)
optionsObject.Add("source", DataCallback)

[code]....

when i debug into the initialize function, i see options has one property, source, with the string "testFunc" as it's value. what i need is for source's value to be testFunc (not as a string) so it can be executed as a callback in autocomplete instead of autocomplete thinking it is a URL.

View 1 Replies

Javascript - Jquery A Colorbox Popup Windows With Input Field?

Aug 11, 2011

the following sets my stage

vb.net
MasterPages
Usercontrol with defined events

This is what my usercontrol looks like:When the user clicks the 'Approve' button, an event is fired in the usercontrol that is then intercepted in the main page to do custom code (database update, mails etc...)

[Code]...

View 1 Replies

Jquery - Post Table Rows, Added Via Javascript To The Server In ASP.NET?

Oct 3, 2011

Access <asp:table> table rows added by javascript in asp.net webform . Apologies for the duplicate question but I'd really like an explanation why this is the case. It is probably due to my lack of understanding on how browsers process HTML tables on submission to the server.If I have a <HTML> table or an <asp:table> control on an aspx page and I add rows to it client-side using JQuery / Javascript, why can I not include these added rows in a post-back to the server?

I've been trying to get this to work and it looks like I can't do it based on the answer to the previous question. But can someone explain why this is the case? The table itself can be returned in the post-back but the only rows present are the rows that were part of the table when it was sent to the browser originally - it does not include the rows added by the browser.there was a way to include these new rows in the post-back, the same as any client-side user input?

View 4 Replies

JQuery Ajax With ASP.NET MVC Action: Passing Arguments From JavaScript In POST

Mar 4, 2011

I have an ASP.NET MVC controller action with the following VB.NET signature:

[Code]...

If I'm trying to send an Ajax POST in jQuery to the ClosestCities action, what should my request look like? When I use the following code to POST to this action, in the debugger window of VS, position.longitiude and position.latitude are equal to 0.0 (0D):

[Code]...

View 2 Replies

Trigger A Rebind Of Gridview From Javascript Or JQuery On Markup Page?

Sep 11, 2009

Is there a way to trigger a GridView rebind from an html markup page using jQuery or jscript?

I have an ActiveX download control which passes all events via jscript.

So, a have a download complete event on the markup page but not the code behind.

Here is the main aspx page:<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">

<script type="text/javascript" src="aurigmaiuembed.js"></script>
<script type="text/javascript">
function FileDownloader_DownloadStep(Step){
//The file list is going to be downloaded - "2 = About to Start"
if (Step == 2){

[Code]...

View 1 Replies

Javascript - How To Call The Jquery Function In .aspx Page To Usercontrols Controls In Asp.net

Jan 27, 2011

i have the following function in default.aspx i have webusercontrol which have 10 checkboxes and 1 button i want when i click on button1 of user control then it can access the function of default.aspx page ...if i dragged the usercontrol to default.aspx

[Code]...

View 3 Replies

Invalid Data Alert - Writing A Program That Has To Print An Alert Message In A Textbox?

Oct 3, 2010

I am writing a program that has to print an alert message in a textbox if the user inputs invalid data. Invalid data would be a negative number. The textbox is the same textbox as the result would be in provided they input valid data. Here is what I have but it will not print the alert.

[code]...

View 7 Replies

Play With List Of List Of String With Javascript Or Jquery Using Ajax?

Dec 5, 2011

We're working on a big ASP.NETVB.NET website project. I need to populate three dropdownlists. To last two are independent of the previous ones. The population data comes from an SQL Server. I'd have no problem doing this with code-behind with post back but we don't want any PostBacks so I started to develop this in AjaxjQuery.

[Code]...

View 1 Replies

Asp.net Mvc - Post Code Being Triggered On JQuery Load?

Jan 13, 2010

I have the following functions in my ProceduresControlller:

Function Add(ByVal bpid As Integer) As ActionResult
Return View(GetAvailableProcedures(bpid))
End Function[code].....

I'm loading the Add dialog via jQuery like so:

$("#dialog").load(
"/Procedures/Add",
{ bpid: 123 }[code]....

This is failing because it's calling the Post method (where "covered" can't be empty) instead of the Get. I tried decorating the Get with <AcceptVerbs(HttpVerbs.Get)>, but it doesn't change the outcome.how do I get it to use the Get? I realize I could change the names to not be ambiguous, but I want to know why it won't pick the Get if I'm only passing "bpid".

View 1 Replies

Asp.net - Write/code Javascript(mouseover Event) Using C# Methods/ C# Code?

Jan 24, 2011

i am asking that can i use c# language to implement "actions" fired on "click side events" such as mouse over the reason for this stupid question is that i remember some syntax of registering functions for particular events of formview, which are call when the event occurs (yes there ispostback involved" is something like the above possible for client side events using c# or even vb.net

protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "this is label three";

[code]....

View 3 Replies







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