Jump to content

Javascript Question .... Help Kavali.....


Recommended Posts

Posted

 okka clarifiaction kavali with javascript

 

naa webpage medha okka test box enter chesi out of focus i mean onblur chesinappudu okka database nuchi okka column value display avuthundhi.. but when i am trying to look into the code its veryhard where these data come from ani..

 

onblur="javascript:if xyz(this))abcfunction(this);OffLight(this);isAlphaNumeric(this);" /> when i am trying to look into that function too much code vundhi around 8000 lines... so koncham ideas throws chesthey i will catch it and try to figure it out how the data coming ani

Posted

 okka clarifiaction kavali with javascript

 

naa webpage medha okka test box enter chesi out of focus i mean onblur chesinappudu okka database nuchi okka column value display avuthundhi.. but when i am trying to look into the code its veryhard where these data come from ani..

 

onblur="javascript:if xyz(this))abcfunction(this);OffLight(this);isAlphaNumeric(this);" /> when i am trying to look into that function too much code vundhi around 8000 lines... so koncham ideas throws chesthey i will catch it and try to figure it out how the data coming ani

abcfunction(this) eee function ekkadundo chudu

Posted

chusa andhulo document.getelementbyID("ID") lu vunnayi 

abcfunction(this) eee function ekkadundo chudu

 

Posted

 okka clarifiaction kavali with javascript

 

naa webpage medha okka test box enter chesi out of focus i mean onblur chesinappudu okka database nuchi okka column value display avuthundhi.. but when i am trying to look into the code its veryhard where these data come from ani..

 

onblur="javascript:if xyz(this))abcfunction(this);OffLight(this);isAlphaNumeric(this);" /> when i am trying to look into that function too much code vundhi around 8000 lines... so koncham ideas throws chesthey i will catch it and try to figure it out how the data coming ani

 

What ever it is, its impossible to write this functionality without making any call to the server. Most likely it will be a J2EE server or a .NET server.

After some validations in javascript, it has to make a call to the server:

1. Use ajax call, making use of ajax API that most of the browsers are providing now. Server will respond with simple text or XML

2. Use ajax frameworks like DWR, Dojo to ease the process of communication, server will respond with JSON or XML mostly.

3. Make a RESTful call to the server (but directly invoking a SOAP call is not yet possible from browser directly).

 

The browser will be in suspended mode awaiting response from the server. Once the response is received, the browser unblocks and  then either:

1. Use simple Javascript to parse and update DOM element (in this case your text box) using DHTML API like getelementById()

2. Use jQuery unobtrusive DOM access capability to update the item. (seriously a million ways of getting an element will be possible if you use jquery).

 

If you want any more clarity, can explain you in detail.

  • Upvote 1
Posted

aa database value will be in a variable kada...what u do is

 

neeku doubt unna chotalla alert petti choodu...null osthe you didn't hit that function yet ani..value unte u have missed that function ani..

Posted

 okka clarifiaction kavali with javascript

 

naa webpage medha okka test box enter chesi out of focus i mean onblur chesinappudu okka database nuchi okka column value display avuthundhi.. but when i am trying to look into the code its veryhard where these data come from ani..

 

onblur="javascript:if xyz(this))abcfunction(this);OffLight(this);isAlphaNumeric(this);" /> when i am trying to look into that function too much code vundhi around 8000 lines... so koncham ideas throws chesthey i will catch it and try to figure it out how the data coming ani

search for http call or .do or .ds or cs in that code ..u may find the link to call

Posted

ajax call or some post method and parameters untaayi chudu aa function loney ..neeku syntax thelisthey easy gaaney patteysthaavu.. 8000 lines only function code aithey that is very bad development..

Posted

ajax call or some post method and parameters untaayi chudu aa function loney ..neeku syntax thelisthey easy gaaney patteysthaavu.. 8000 lines only function code aithey that is very bad development..

 

No Alexander. Its now a days more OO-Javascript that is more in demand than the traditional server-side Design Patterns like MVC.

latest OO-Javascript paradigm provides MVC on client side instead of on the server side so that client maintains and manages all the state of the conversation instead of having server to hold all those session data for hours.

 

However this is very latest (started since some 5 years only) and they argue that there is no point in NOT utilizing the computing power of the user machines however advanced are the server nodes.

Posted

check if its old javascript they may be using xmlhttprequest(ajax object)......

 

aa code lo nee textbox value ekkada assign avuthunhdo search using ctrl+F(Do reverse engineering)...and i dont think 8000 lines motham okate function ani...

Posted

db nundi vachee column value constant? or dynamicall gaa vary avuthundhaa? if dynamical ga vary ithee, aa function lo dt.databind call vuntadhu search cheyyi

Posted

What ever it is, its impossible to write this functionality without making any call to the server. Most likely it will be a J2EE server or a .NET server.
After some validations in javascript, it has to make a call to the server:
1. Use ajax call, making use of ajax API that most of the browsers are providing now. Server will respond with simple text or XML
2. Use ajax frameworks like DWR, Dojo to ease the process of communication, server will respond with JSON or XML mostly.
3. Make a RESTful call to the server (but directly invoking a SOAP call is not yet possible from browser directly).

The browser will be in suspended mode awaiting response from the server. Once the response is received, the browser unblocks and then either:
1. Use simple Javascript to parse and update DOM element (in this case your text box) using DHTML API like getelementById()
2. Use jQuery unobtrusive DOM access capability to update the item. (seriously a million ways of getting an element will be possible if you use jquery).

If you want any more clarity, can explain you in detail.


Good post
×
×
  • Create New...