Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. asp.net with jquery

asp.net with jquery

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-netalgorithms
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    highjo
    wrote on last edited by
    #1

    Hi! guys i'm using jquery to do some interesting interaction in a sms sending web application.from a textbox where the user should write the phone number(numbers are comma separated) after writing a comma the application extract that number and send it through jquery ajax function for number validity.so far everything is cool even though i know that my function extracting is not perfect(coz it becomes buggy when the first comma is pressed and then the number is edited if somebody fell to give better algorithm i would be pleased).the problem arises when collecting the response from the webform.the response which a boolean is actually sent with this Response.write(response).when i display it from an alert function is dispay something like

    true //if it's correct or false if not and something like this

    Untitled Page
    

    how do i extract actually the value true or false. my code is not seeing the true but always execute the statment in case it's false even though i have it true and displayed as described in my checkout alert function here are my codes. this is the one using the jquery ]]> ]]> Untitled Page #vall { color: #0000FF; width:30px;float:left;margin-left: 10px} #err { color: #FF0000; width:30px;float:left;margin-left: 10px} $().ready(function(){ var i = -1; $('#txtNumbers').keyup(function(e){ var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; if(key== 188) { var y = $(this).val(); if(y.length!= 0 ) { var n = y.substring(i+1,y.lastIndexOf(',')); i = y.las</x-turndown>

    H 1 Reply Last reply
    0
    • H highjo

      Hi! guys i'm using jquery to do some interesting interaction in a sms sending web application.from a textbox where the user should write the phone number(numbers are comma separated) after writing a comma the application extract that number and send it through jquery ajax function for number validity.so far everything is cool even though i know that my function extracting is not perfect(coz it becomes buggy when the first comma is pressed and then the number is edited if somebody fell to give better algorithm i would be pleased).the problem arises when collecting the response from the webform.the response which a boolean is actually sent with this Response.write(response).when i display it from an alert function is dispay something like

      true //if it's correct or false if not and something like this

      Untitled Page
      

      how do i extract actually the value true or false. my code is not seeing the true but always execute the statment in case it's false even though i have it true and displayed as described in my checkout alert function here are my codes. this is the one using the jquery ]]> ]]> Untitled Page #vall { color: #0000FF; width:30px;float:left;margin-left: 10px} #err { color: #FF0000; width:30px;float:left;margin-left: 10px} $().ready(function(){ var i = -1; $('#txtNumbers').keyup(function(e){ var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; if(key== 188) { var y = $(this).val(); if(y.length!= 0 ) { var n = y.substring(i+1,y.lastIndexOf(',')); i = y.las</x-turndown>

      H Offline
      H Offline
      highjo
      wrote on last edited by
      #2

      hello there! noone has something to share with me? a little help? need this help to move forward.thanks for replying.if a part is not clear just tell me and i'll be glad to explain.thanks :(

      eager to learn

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups