15,910,877 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ravi1989h (Top 194 by date)
ravi1989h
13-Jul-13 13:24pm
View
i just check by using query that is there same entity present in column
ravi1989h
13-Jul-13 13:22pm
View
i try Unique But not working..
ravi1989h
13-Jul-13 13:22pm
View
ok i will explain my problem ..Actually i have one table "CaseTable" i need to check there is no duplicate item in my first column "CaseName".So i need to validate that thing
ravi1989h
13-Jul-13 11:51am
View
i have problem
ravi1989h
9-Jul-13 5:20am
View
There is problem in your solution 1) It is not scrolling when the word is below the page .Secondly it is not removing the previous search text.
ravi1989h
3-Jul-13 13:29pm
View
use this command LexSrvPC.exe /Demo:"LexSrvPC.raw"
ravi1989h
3-Jul-13 13:28pm
View
run .exc file D:\>cd casePad
D:\casePad>cd NewExcCasePad
D:\casePad\NewExcCasePad>LexSrvPC.exe /Demo:"LexSrvPC.raw"
D:\casePad\NewExcCasePad>
ravi1989h
3-Jul-13 13:28pm
View
ok please run it i need to parse that file.
ravi1989h
3-Jul-13 13:10pm
View
hi are you able to see my zib file.https://www.dropbox.com/sh/p8uidhkaqh3ydnn/TW8SmF-dv6
ravi1989h
3-Jul-13 12:40pm
View
first i have to sign up?then download exc ?then?
ravi1989h
3-Jul-13 11:43am
View
i need to parse data using socket programming.
ravi1989h
30-Jun-13 9:08am
View
solve that issue
ravi1989h
18-Jun-13 21:30pm
View
No starting time
ravi1989h
18-Jun-13 21:20pm
View
yes local data base
ravi1989h
18-Jun-13 21:20pm
View
http://jsfiddle.net/ravi1989/uQFAS/
you check and press + button fill data it show in listview. but first time there is no table it show undefined
ravi1989h
18-Jun-13 21:17pm
View
Actually my first issue is solve only second issue is that i am creating a table on button click along with add data on data base and display on data base .Problem is that whenever user come it will show all data which is in data base .But when user come first time there is no table so it give undefined
ravi1989h
18-Jun-13 21:14pm
View
here is my code.
ravi1989h
18-Jun-13 21:13pm
View
you check on this
http://jsfiddle.net/ravi1989/uQFAS/
ravi1989h
18-Jun-13 21:10pm
View
actually i am using jquery with phonegap .to store data .i need to check if table exit then it show data .if not do nothing
ravi1989h
18-Jun-13 21:09pm
View
But i am appending dynamically data .
ravi1989h
18-Jun-13 21:08pm
View
$('#mylist').empty(); work
ravi1989h
18-Jun-13 20:58pm
View
How to check table exist or not? actually starting there is no table in so i don't need to render it gives undefined error ?can you check this error
ravi1989h
14-Jun-13 6:34am
View
Here is my Whole code on fiddle..
http://fiddle.jshell.net/ravi1989/nLJR7/
ravi1989h
17-May-13 6:30am
View
how to make drop down using this var select = document.createElement("select"); and how to set this dropdown on this position .
ravi1989h
17-May-13 6:28am
View
thanks ..? But how to make dropdown below buttons ? ?
ravi1989h
16-May-13 7:55am
View
actually i have one header in which there are lot of images ,i scroll all the images horizontally using iscroll.js .But the problem is that i want to to show a dropdown or popup on clicking the image
ravi1989h
15-May-13 2:13am
View
I also find one solution from jquery mobile (Menu option ) but didn't find the code .
Here is it the link
http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/popup/index.html
click menu
ravi1989h
9-May-13 6:18am
View
Please help
ravi1989h
9-May-13 6:18am
View
Please help
ravi1989h
9-May-13 3:20am
View
I found some thing there is problem in css overflow: hidden; .if i remove this ot show menu option , But all the image are in same line .can you please help me
ravi1989h
9-May-13 1:42am
View
Problem is that on clicking image i want to show menu option .I am not able to show that ?
ravi1989h
9-May-13 1:40am
View
(function(a){a.tiny=a.tiny||{};a.tiny.carousel={options:{start:1,display:1,axis:"x",controls:true,pager:false,interval:false,intervaltime:3000,rewind:false,animation:true,duration:1000,callback:null}};a.fn.tinycarousel_start=function(){a(this).data("tcl").start()};a.fn.tinycarousel_stop=function(){a(this).data("tcl").stop()};a.fn.tinycarousel_move=function(c){a(this).data("tcl").move(c-1,true)};function b(q,e){var i=this,h=a(".viewport:first",q),g=a(".overview:first",q),k=g.children(),f=a(".next:first",q),d=a(".prev:first",q),l=a(".pager:first",q),w=0,u=0,p=0,j=undefined,o=false,n=true,s=e.axis==="x";function m(){if(e.controls){d.toggleClass("disable",p<=0);f.toggleClass("disable",!(p+1<u))}if(e.pager){var x="a(".pagenum",l);x.removeClass("active");a(x[p]).addClass("active")}}function" v(x){if(a(this).hasclass("pagenum")){i.move(parseint(this.rel,10),true)}return="" false}function="" t(){if(e.interval&&!o){cleartimeout(j);j="setTimeout(function(){p=p+1===u?-1:p;n=p+1===u?false:p===0?true:n;i.move(n?1:-1)},e.intervaltime)}}function" r(){if(e.controls&&d.length="">0&&f.length>0){d.click(function(){i.move(-1);return false});f.click(function(){i.move(1);return false})}if(e.interval){q.hover(i.stop,i.start)}if(e.pager&&l.length>0){a("a",l).click(v)}}this.stop=function(){clearTimeout(j);o=true};this.start=function(){o=false;t()};this.move=function(y,z){p=z?y:p+=y;if(p>-1&&p
ravi1989h
9-May-13 1:40am
View
/* Tiny Carousel */
#slider1 { height: 1%; overflow:hidden; padding: 0 0 10px; }
#slider1 .viewport { float: left; width: 600px; height: 125px; overflow: hidden; position: relative; }
#slider1 .buttons { background:url("../images/buttons.png") no-repeat scroll 0 0 transparent; display: block; margin: 30px 10px 0 0; background-position: 0 -38px; text-indent: -999em; float: left; width: 39px; height: 37px; overflow: hidden; position: relative; }
#slider1 .next { background-position: 0 0; margin: 30px 0 0 10px; }
#slider1 .disable { visibility: hidden; }
#slider1 .overview { list-style: none; position: absolute; padding: 0; margin: 0; width: 240px; left: 0 top: 0; }
#slider1 .overview li{ float: left; margin: 0 20px 0 0; padding: 1px; height: 121px; border: 1px solid #dcdcdc; width: 236px;}
ravi1989h
9-May-13 1:39am
View
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tiny Carousel: A lightweight jQuery plugin</title>
<link rel="stylesheet" href="css/website.css" type="text/css" media="screen"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.tinycarousel.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#slider1').tinycarousel();
});
function test()
{
alert("*****");
var mySelect = document.getElementById('mySelect'),
newOption = document.createElement('option');
newOption.value = 'bmw';
// Not all browsers support textContent (W3C-compliant)
// When available, textContent is faster (see http://stackoverflow.com/a/1359822/139010)
mySelect.appendChild(newOption);
}
</script>
</head>
<body>
<div id="slider1">
left
<div class="viewport">
<ul class="overview">
<li><img src="images/picture6.jpg" önclick="test()"/>
<select id="mySelect">
<!--option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option-->
</select>
</li>
<li><img src="images/picture5.jpg" /></li>
<li><img src="images/picture4.jpg" /></li>
<li><img src="images/picture3.jpg" /></li>
<li><img src="images/picture2.jpg" /></li>
<li><img src="images/picture1.jpg" /></li>
</ul>
</div>
right
</div>
</body>
</html>
ravi1989h
9-May-13 1:38am
View
Hi ..I am positing my code
ravi1989h
26-Apr-13 2:24am
View
Sir don't have any idea
ravi1989h
20-Apr-13 23:00pm
View
Sorry sir..!
can you please tell me how to zoom in zoom out whole window ?
ravi1989h
20-Apr-13 22:36pm
View
is it the way?
ravi1989h
20-Apr-13 22:35pm
View
updateVal : function() {
// Get slider value and set it in model using model's 'set' method.
console.log('SliderView.updateVal');
//var val = this.el.slider("option", "value");
//this.model.set({slidervalue : val});
$('#lblText').css("font-size", 50);
},
ravi1989h
20-Apr-13 22:35pm
View
Hello sir i done lot of things now
i just want to increase the font size while change slider value.
ravi1989h
19-Apr-13 8:05am
View
When i copy this code and make html . slider is not display..:(
ravi1989h
19-Apr-13 7:09am
View
yes i saw but need to zoom in or zoom out while increase the slide length and decrease the length
ravi1989h
19-Apr-13 6:43am
View
i don't have any idea? is it possible?
ravi1989h
14-Apr-13 12:20pm
View
http://tristan-interview.blogspot.in/2011/11/longest-palindrome-substring-manachers.html
please explain with example not able to understand
ravi1989h
14-Apr-13 12:13pm
View
check this
http://stackoverflow.com/questions/7043778/longest-palindrome-in-a-string-using-suffix-tree
ravi1989h
14-Apr-13 12:13pm
View
from here i found
http://stackoverflow.com/questions/7043778/longest-palindrome-in-a-string-using-suffix-tree
ravi1989h
14-Apr-13 9:01am
View
actually can please explain steps..they are using tree. first they reverse the string .then find prefix or sufix.that thing i am not able to understand please explain with example.
ravi1989h
7-Apr-13 0:13am
View
sorry ..there is is misprintring..
if make class a {
protected:
int i;
}
class b:public a{
projected:
int j;
}
main(){
b * obj=new b()
b.i ? // not display
}
why b->i is not display
ravi1989h
6-Apr-13 23:54pm
View
can i ask one question..
if make class a {
protected:
int i;
}
class b:public a{
projected:
int j;
}
main(){
a * obj=new a()
a.i ? // not display
}
ravi1989h
6-Apr-13 23:50pm
View
why?
ravi1989h
6-Apr-13 23:50pm
View
netbeam is a IDE..
ravi1989h
6-Apr-13 4:22am
View
I follow the steps but didn't solve the problem .
First i install the c++ plugin .
Then i download Cygwin. and set the path ,
but it is not seen in my IDE of netbeen when i go tool->option ->c++
ravi1989h
15-Mar-13 2:27am
View
Hello i want to print Name and value but not able to do that ..can you please help me parsing xml
ravi1989h
11-Jan-13 23:14pm
View
But i need to ask one question ..this autosuggest work with web service(from server).i need simple ..i have a array i want to do auto suggest ..is it possible to do that..
ravi1989h
11-Jan-13 23:11pm
View
hello sir thanks
but i found this is a best solution
https://github.com/martintajur/sencha-touch-2-autocomplete-textfield
ravi1989h
8-Jan-13 10:00am
View
i will explain my question elaborately , i have one jar file name(cordova).i want to insert bar code scanner plugin (mean some java file). i want to modified that cordova.jar file but i am not able to do that ..i read from this link but not succeed
https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&ved=0CCUQFjAB&url=https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/BarcodeScanner&ei=lizsUKq7D8GNrgfgwoHwAQ&usg=AFQjCNFLeQoe5UK0nlJ4lpkSffyg9yP65g&sig2=Fg3kemwtQPtNY2j-XCtwCw&bvm=bv.1357316858,d.bmk
ravi1989h
8-Jan-13 9:56am
View
sorry sir,..
ravi1989h
8-Jan-13 9:29am
View
actually i want to modified jar file (add plugin). can you please check this link.
https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/BarcodeScanner
ravi1989h
8-Jan-13 7:00am
View
thanks sir but i am beginner i am not able to under stand can you please elaborate .i have cordova.2.0.0.jar file .and having BarcodeScanner.java Encoder.java
ravi1989h
8-Jan-13 6:38am
View
jar file mean a library
ravi1989h
8-Jan-13 6:37am
View
Actually i have a jar file .i want to add some pluggin mean som e java file..how can it is possible..
ravi1989h
16-Nov-12 1:25am
View
is there any issue of active class..?
ravi1989h
16-Nov-12 1:24am
View
i am using phonegap with javascript and css
ravi1989h
27-Oct-12 0:51am
View
one question more.
what is the use of this name="append" in this line..
<div id="append" name="append">
ravi1989h
27-Oct-12 0:48am
View
can you please tell me what is the use of this line.
cb.value = "test"; ? what is this ? and what is use if this
In this case i understand this is the text of button
<input type="button" value="append".
ravi1989h
27-Oct-12 0:31am
View
Actually i just create a check-box (having some text)example :do you want ?. dynamically but i am getting error.
ravi1989h
23-Oct-12 9:51am
View
interned strings meaning..>?
ravi1989h
23-Oct-12 9:49am
View
// ... but these are because literals are interned by
// the compiler and thus refer to the same object
what is the meaning?
if this true what about this
"test" == "est" ==> false // why it is false
ravi1989h
23-Oct-12 9:46am
View
interning..? mean?
ravi1989h
23-Oct-12 9:45am
View
i understand equal method
ravi1989h
23-Oct-12 9:45am
View
can you please explain more about reference equality.?
ravi1989h
19-Oct-12 13:21pm
View
is this the way to call clearEvents method or override method
obj.autosuggest.prototype.clearEvents(){
alert(hi);
}
ravi1989h
19-Oct-12 13:18pm
View
How to call clearEvents ? you can make an object and call this method..i am using this autosuggest..
http://www.codeproject.com/Articles/20174/Auto-suggest-Control
i want to do something on when user type something in inputfield in between he enter click somewhere that time autosuggestion is close than i want to do something when i debug ..i see clearEvent fuction is call when autosuggest is close .so i want to override?
ravi1989h
19-Oct-12 13:04pm
View
i am using autosuggest text box ..so i make a obj of autosuggest
<script type="text/javascript"> var obj=new autosuggest("tb2", custom_array_2, null, function(index, control) {
//obj.autosuggest.prototype.clearEvents(){
//alert(hi);
//}
alert("Selected key: \"" + control.keywords[index] + "\" with value: \"" + control.values[index] + "\"");
});
</script>
i want to do something when i click any where in screen without selecting any item
ravi1989h
19-Oct-12 13:00pm
View
actually i need to call one method from my .js file i am not able to do that..that method name is clearEvents(). it is between autosuggest.prototype .
ravi1989h
18-Oct-12 3:35am
View
i am creating table at dynamically (web service response), in tavle i create column .in column i have if there is alert in something i want to show error image else correct image , i want to click only error image ,i am not able to do that?
var td4 = document.createElement('td');
var img = document.createElement('img');
img.setAttribute('width', '24');
img.setAttribute('height', '24');
td4.setAttribute('style','width:3%');
td4.setAttribute('align','center');
(function(id) {
img.onclick = function(e) {
e.preventDefault();
e.stopPropagation();
// now it will alert the id (what is the i of the for-loop):
********here i need some condition ********
alert(id);
};
}(i));
if(serviceAlertPresent[i].firstChild.nodeValue == 'false'||otherAlertPresent[i].firstChild.nodeValue == 'false')
{
img.src='images/correct-icon.png';
//td4.innerHTML = "<img src=\"images/correct-icon.png\" width=\"20\" height=\"20\" />";
td5.innerHTML="";
}
else
{
img.src='images/error-msg.png';
//td4.innerHTML = "<img src=\"images/error-msg.png\" width=\"20\" height=\"20\" />";
td5.innerHTML=expDepart[i].firstChild.nodeValue ;
}
ravi1989h
18-Oct-12 3:30am
View
actually my question is different
ravi1989h
18-Oct-12 3:30am
View
Hii don't need this solution...
ravi1989h
18-Oct-12 3:29am
View
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>First Group</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<link href="style/scrollbar.css" rel="stylesheet" type="text/css" />
<link href="style/autosuggest.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="script/jquery.min.js"></script>
<script type="text/javascript" src="script/iScroll.js"></script>
<script type="text/javascript" src="cordova-1.9.0.js"></script>
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript" src="script/soapclient.js"></script>
<script type="text/javascript" src="script/soapclientfilter.js"></script>
<script type="text/javascript" src="script/autosuggest.js"></script>
<script type="text/javascript">
var isfilterRequired=false;
var myTimedCall;
function lastStationData(){
var r = window.localStorage.getItem("lastDepartureStation")||[];
var params = getParams();
var parameter1 = unescape(params["menu"]);
if(parameter1=="false"){
if(r!=null){
var stationName = window.localStorage.getItem("lastDepartureStation");
document.getElementById("getStationDesc").value=stationName;
callWebservice(stationName.substring(0,3));
}
}else{
var stationName = window.localStorage.getItem("lastArrivalStation");
document.getElementById("getStationDesc").value=stationName;
window.localStorage.setItem("lastDepartureStation",stationName);
callWebservice(stationName.substring(0,3));
}
}
function stringTruncate(args){
console.log(args)
// var args = args || {},
var length = args.length || 5,
tail = "";
if(args.length >=4)
{
tail = args.tail || '...';
}
return args.substring(0,4) + tail;
}
function refeshdata(stationCode){
document.getElementById("getStationfilter").value="All"
console.log(" Web service .............");
console.log(stationCode);
var pl = new SOAPClientParameters();
var parameter1 = stationCode;
pl.add("crsCode", parameter1);
SOAPClientfilter.invoke(WSDLURL, "getDepartureStationDashboard", pl, true,departureStationDashboardResponse);
}
function callWebservice(stationCode){
document.getElementById("getStationfilter").value="All"
document.getElementById('loadingImg').style.visibility = "visible";
console.log(" Web service .............");
console.log(stationCode);
var pl = new SOAPClientParameters();
var parameter1 = stationCode;
pl.add("crsCode", parameter1);
SOAPClientfilter.invoke(WSDLURL, "getDepartureStationDashboard", pl, true,departureStationDashboardResponse);
}
function departureStationDashboardResponse(r,xmlResponse)
{
console.log(xmlResponse);
document.getElementById('loadingImg').style.visibility = "hidden";
var responseXML = xmlResponse.documentElement;
var getDepartureStationDashboardReturn = responseXML.getElementsByTagName("getDepartureStationDashboardReturn");
var RID = responseXML.getElementsByTagName("RID");
var platformNo = responseXML.getElementsByTagName("platformNo");
var stationName = responseXML.getElementsByTagName("stationName");
var toSchArrival = responseXML.getElementsByTagName("toSchArrival");
var toExpArrival = responseXML.getElementsByTagName("toExpArrival");
var toc = responseXML.getElementsByTagName("toc");
var schDepart = responseXML.getElementsByTagName("schDepart");
var expDepart = r
ravi1989h
17-Oct-12 12:51pm
View
Cannot read property '1' of undefined
error comming
ravi1989h
10-Oct-12 12:31pm
View
i am able to store and get value in local storage but i want to override some method where i want to set value in text field
ravi1989h
10-Oct-12 12:29pm
View
http://www.codeproject.com/Articles/20174/Auto-suggest-Control
i am using this auto suggest
ravi1989h
10-Oct-12 12:28pm
View
local storage mean save data
ravi1989h
10-Oct-12 12:27pm
View
local storage mean as save data in html
ravi1989h
10-Oct-12 0:08am
View
there is nothing i just implement autosuggestion text box from
http://www.codeproject.com/Articles/20174/Auto-suggest-Control
i want to override clear method in my js.
ravi1989h
7-Oct-12 10:10am
View
i got solution
ravi1989h
7-Oct-12 1:55am
View
;(function() {
fg.pages.departure = fg.PageController.extend({
regions : {
mainRegion : '.departure',
},
template : {
regionTemplate : 'departure/departure'
},
events : {
'click .back_h' : 'goBack',
'click .go_home_h' : 'goToDashBoard',
//'blur #getStationDesc' : 'test',
'click .cleardata_h': 'clearStationField',
'click .cleardataAll_h': 'clearFilterField',
'click .menuoption_h':'getMenuoptions',
},
scrollAreas : {
expertAnswerImg : {
id : "departure_scroll", // id of the scroller you want to have (temp)
element : ".departure", // element that needs to be wrapped in the iScroll
footer : true,
footer_element : ".generic_css_footer", // does footer need to be handled
scrollable : true,
adjust : -10 // does div needs to have iScroll (Default: true)
}
},
init : function() {
_.bindAll(this, "webservicesCall", "DepartureStationDashboard_callBack");
/*var LS_last_searched_station = window.localStorage.getItem('LS_last_searched_station');
if (LS_last_searched_station != null) {
this.webservicesCall(LS_last_searched_station);
}*/
this.webservicesCall("pdw");
},
DepartureStationDashboard_callBack : function(r) {
console.log(r);
App.collections.departure = new fg.collections.departure;
App.views.departure = new fg.views.departure;
this.region('mainRegion').show(App.views.departure);
if (r.length == 0) {
App.collections.departure.reset([{
empty_feed : true
}]);
} else {
App.collections.departure.reset(r);
}
},
goBack : function() {
history.back();
},
goToDashBoard : function() {
history.back();
},
linkElements : function() {
var stationList = new Array;
var r = JSON.parse(window.localStorage.getItem("stations")) || [];
for (var i = 0; i < r.length - 1; i++) {
stationList[i] = r[i].stationCode + " - " + r[i].stationName;
}
new autosuggest("getStationDesc", stationList, null, function(index, control) {
//alert("Selected key: \"" + control.keywords[index] + "\" with value: \"" +index+ "\"");
var stationCode = control.keywords[index].substring(0, 3);
console.log(stationCode);
this.webservicesCall(stationCode);
});
/*var obj = actb(document.getElementById('getStationDesc'), stationList);
var obj = actb(document.getElementById('getfilter'), stationList);
obj.actb_timeOut = -1;
obj.actb_lim = 10;
obj.actb_firstText = true;
obj.actb_mouse = true;
obj.actb_delimiter = new Array(' ', ',');
obj.actb_startcheck = 1;
obj.actb_bgColor = '#dbe3ec';
obj.actb_textColor = '#00256a';
obj.actb_hColor = '#dbe3ec';
obj.actb_fFamily = 'arial';
obj.actb_fSize = '16px';
obj.actb_hStyle = 'text-decoration:underline;font-weight="bold;";text-align="left"';*/
},
/*test : function(e) {
e.preventDefault();
console.log("oi");
if ($(e.target) == '') {
} else {
var stationCode = $(e.target).val().substring(0, 3);
window.localStorage.getItem('LS_last_searched_station', stationCode)
this.webservicesCall(stationCode)
}
},*/
webservicesCall : function(stationCode) {
var _this = this;
var pl = new SOAPClientParameters();
var parameter1 = stationCode;
pl.add("parameter1", parameter1);
SOAPClient.invoke(App.settings.server, "getDepartureStationDashboard", pl, true, _this.DepartureStationDashboard_callBack);
},
clearStationField :function(){
this.$el.find('.frm_txtfield_from_h').val('');
},
clearFilterField :function(){
this.$el.find('.frm_txtfield_all_h').val('');
},
getMenuoptions: function(){
$("#menu").slideToggle("slow");
},
});
})();
ravi1989h
7-Oct-12 1:54am
View
yes ..actually i am using backbone.so all function is in controller file.
ravi1989h
6-Oct-12 23:25pm
View
i got answer ,thanks for help
ravi1989h
6-Oct-12 23:24pm
View
got it sir thanks
ravi1989h
6-Oct-12 21:44pm
View
</div>
<div id='menu'>
<ul>
<li>Menu option 1</li>
<li>Menu option 2</li>
<li>Menu option 3</li>
</ul>
</div>
ravi1989h
6-Oct-12 18:34pm
View
can you please tell me how to add click event on this menu option..
ravi1989h
6-Oct-12 18:31pm
View
Thanks sir good solution......
ravi1989h
6-Oct-12 1:48am
View
i implement every thing only i am not able to make this menu option , please scroll whole page so that you understand my problem.
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/is-this-possible-to-make-this-type-of-menu-option-in-blackberry/m-p/1936959#M29856
ravi1989h
3-Oct-12 5:26am
View
actually i have list let say 100 item , it display 100 item(A to Z ) on clicking the text box, but i want to display only 10 item(A to something c ).But when user click "a" it show 10 element of "a"
ravi1989h
3-Oct-12 5:01am
View
sorry.....just wanted to know where i want to do change in jquery
ravi1989h
3-Oct-12 5:00am
View
/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.effects.core.js, jquery.effects.blind.js, jquery.effects.bounce.js, jquery.effects.clip.js, jquery.effects.drop.js, jquery.effects.explode.js, jquery.effects.fade.js, jquery.effects.fold.js, jquery.effects.highlight.js, jquery.effects.pulsate.js, jquery.effects.scale.js, jquery.effects.shake.js, jquery.effects.slide.js, jquery.effects.transfer.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.tabs.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.23",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a("
").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b
ravi1989h
3-Oct-12 4:57am
View
it is not possible
ravi1989h
3-Oct-12 4:32am
View
can you please tell me where i want to do change..
i think you are right
ravi1989h
29-Sep-12 10:07am
View
Error
Uncaught TypeError: Object [object Object] has no method 'autocomplete'
ravi1989h
29-Sep-12 9:51am
View
why this is not working..?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Ravi needs SOAP</title>
<link href="jquery-ui-1.8.24.custom.css" rel="stylesheet" type="text/css" />
<style type="text/css">
div.h { display: none; }
div.s { display: block; margin: 10px; }
</style>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
</head>
<body>
<div class="demo">
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
</div><!-- End demo -->
<div class="demo-description" style="display: none; ">
<p>The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.</p>
<p>The datasource is a simple JavaScript array, provided to the widget using the source-option.</p>
</div><!-- End demo-description -->
</body>
</html>
ravi1989h
29-Sep-12 9:35am
View
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
<div class="demo">
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
</div><!-- End demo -->
please run this program i am not able to run this demo
ravi1989h
29-Sep-12 9:33am
View
not getting any thing .......:( actually i needed for this for mobile technology(Phonegap)no use of asp.net code
ravi1989h
29-Sep-12 9:17am
View
Sir can you please write code so that i can understand..:(
ravi1989h
29-Sep-12 9:14am
View
$( "#tags" ).autocomplete({ //where is autocomplete? and availableTags
source: availableTags
});
ravi1989h
29-Sep-12 9:12am
View
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
<div class="demo">
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
</div><!-- End demo -->
<div class="demo-description" style="display: none; ">
<p>The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.</p>
<p>The datasource is a simple JavaScript array, provided to the widget using the source-option.</p>
</div><!-- End demo-description -->
ravi1989h
26-Sep-12 20:06pm
View
same i am also getting this , i want to remove this
ravi1989h
26-Sep-12 14:00pm
View
what response you are getting please paste..
ravi1989h
26-Sep-12 13:43pm
View
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="jquery.min.js" type="text/javascript"></script>
<title>Hello World</title>
<script>
function onError(request, data, status) {
alert(status+"Hii");
console.log(status);
}
function loadData() {
var soapMessage = '<soap-env:envelope xmlnsoap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://wsendpoints.bbrailapps.firstgroup.com" xmlns:intf="http://wsendpoints.bbrailapps.firstgroup.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap-env:body><intf:getversion xmlns:intf="http://wsendpoints.bbrailapps.firstgroup.com">';
$.ajax({
url: "http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl",
type: "POST",
dataType: "xml",
data: soapMessage,
processData: false,
contentType: "text/xml; charset=\"utf-8\"",
success: function(data){
alert('success!');
console.log(data);
},
error: onError
});
}
</script>
</head>
<body önload="loadData();"></body>
</html>
Getting same error
ravi1989h
26-Sep-12 13:28pm
View
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="jquery.min.js" type="text/javascript"></script>
<title>Hello World</title>
<script>
function loadData() {
var soapMessage = '<soap-env:envelope xmlnsoap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://wsendpoints.bbrailapps.firstgroup.com" xmlns:intf="http://wsendpoints.bbrailapps.firstgroup.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap-env:body><intf:getversion xmlns:intf="http://wsendpoints.bbrailapps.firstgroup.com">';
$.ajax({
url: "http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl",
type: "GET",
dataType: "xml",
data: soapMessage,
processData: false,
contentType: "text/xml; charset=\"utf-8\"",
success: function(data){
alert('success!');
console.log(data);
},
error: onError
});
}
</script>
</head>
<body önload="loadData();"></body>
</html>
NEW CODE
ravi1989h
26-Sep-12 13:27pm
View
yes
ravi1989h
26-Sep-12 13:24pm
View
as you give me code i run same code but Uncaught ReferenceError: onError is not defined
is coming
ravi1989h
26-Sep-12 13:10pm
View
Uncaught ReferenceError: onError is not defined
ERROR
ravi1989h
26-Sep-12 12:59pm
View
i don't understand ....:(
can you do some changes in my code..?
ravi1989h
26-Sep-12 4:34am
View
any update
ravi1989h
26-Sep-12 4:33am
View
any update..?
ravi1989h
26-Sep-12 3:21am
View
you can use this also
http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl
ravi1989h
26-Sep-12 3:21am
View
http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl
ravi1989h
26-Sep-12 3:16am
View
yes i am using first link , but not able to do that . can you please
help to make one Envelope.
http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS
see xml:http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl
call only one method : getversion
i can do rest of them
ravi1989h
26-Sep-12 3:01am
View
i just want to call same web service using jquery or ajax..:(
main problem is
var soapMessage =
06
'<soap:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> \
07
<soap:body> \
08
<saveproduct xmlns="http://sh.inobido.com/"> \
09
<productID>' + productID + '</productID> \
10
<productName>' + productName + '</productName> \
11
<manufacturedate>' + manufactureDate + ' \
12
\
13
\
14
';
to make this soap Envelope.
ravi1989h
26-Sep-12 2:56am
View
No authentication is required for web service..
ravi1989h
26-Sep-12 2:54am
View
http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
i use this and getting response..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Ravi needs SOAP</title>
<style type="text/css">
div.h { display: none; }
div.s { display: block; margin: 10px; }
</style>
<script type="text/javascript" src="soapclient.js"></script>
<script type="text/javascript">
function theStationDashBoard()
{
var pl = new SOAPClientParameters();
// This is a station code, use this to lookup info on stations or whatever it does really - you should know that
// the pl. is for adding parameters that get passed to the webservice
pl.add("crsCode", "AAP");
SOAPClient.invoke("http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS", "getDestinationStationDashboard", pl, true, Station_callBack);
}
function Station_callBack(r, xmlResponse)
{
var responseXML = xmlResponse.documentElement;
var stationName = responseXML.getElementsByTagName("stationName");
var expArrival = responseXML.getElementsByTagName("destExpArrival");
var trainID = responseXML.getElementsByTagName("trainID");
var strStationlist = '';
for (var i=0; i < stationName.length; i++)
{
strStationlist += "Train: " + trainID[i].firstChild.nodeValue + " for " + stationName[i].firstChild.nodeValue + " Expected to Arrive: " + expArrival[i].firstChild.nodeValue + "<br />";
}
document.getElementById("showOutput").innerHTML = strStationlist;
}
</script>
</head>
<body>
<form id="frmDemo" name="frmDemo" action="" method="post">
<div>
DEMO SOAP: "Hello Ravi!"
<p>The simplest example you can imagine (but maybe not the most fanciful...):</p>
<input type="button" value="Click to get Station info for AAP" önclick="theStationDashBoard();" />
<div id="showOutput"></div>
</div>
</form>
</body>
</html>
Here i am getting response of my web service. you also check that
ravi1989h
26-Sep-12 2:51am
View
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
here i tried ..
ravi1989h
25-Sep-12 18:48pm
View
i get success(true) but i am getting xml NULL can you please tell me where i am wrong.?
ravi1989h
25-Sep-12 18:45pm
View
var options = {
url: 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard',
method: "POST",
params: {
param1:"AAP",
},
callback: function(options, success, response){
if (success) {
alert("Hi");
console.log(response);
console.log(response.responseXML);
var store = new Ext.data.XmlStore({
storeId: 'getDestinationStationDashboardResponse',//what is storeID?
autoLoad: true,
autoDestroy: true,
data: response.responseXML,
//record: 'root',
//idPath: 'ID',//ID path
//fields: ...,
//sortInfo: {
// field: 'ID',
// direction: 'DESC'
//}
});
} else {
alert("Bye");
for (var prop in response) {
air.trace(prop + " = " + response[prop]);
}
}
}
};
Ext.Ajax.request( options );
i am using this code
ravi1989h
25-Sep-12 18:35pm
View
i called same my web service using this method http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
i want to call same wen service using ajax
ravi1989h
25-Sep-12 13:29pm
View
is this possible to call web sevice using ajax
ravi1989h
25-Sep-12 13:14pm
View
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
Here i called my web service different way and getting response, but i am not able to do that using ajax
ravi1989h
25-Sep-12 13:12pm
View
you are thinking right i want to call web service using ajax.. but not able to do that
ravi1989h
25-Sep-12 13:11pm
View
no..
ravi1989h
25-Sep-12 13:10pm
View
call you help me..?
ravi1989h
25-Sep-12 13:09pm
View
i tried this but not able to do that since morning
.......:(
ravi1989h
25-Sep-12 13:02pm
View
i want to call soap based web service in backbone..?
ravi1989h
25-Sep-12 12:33pm
View
sorry backbone
ravi1989h
24-Sep-12 6:49am
View
i need to call soap web service using jquery or ajax.
i called same web service here
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
But i want to call using jquery and ajax
ravi1989h
24-Sep-12 6:09am
View
so can you please tell me how to put it into phone..? example blackberry
ravi1989h
24-Sep-12 5:50am
View
i think we write code in sencha and make build using phonegap.. may be i am wrong
ravi1989h
24-Sep-12 5:50am
View
But how to make build in blackberry
ravi1989h
24-Sep-12 5:44am
View
That way i am asking some example, is there any difference in coding
ravi1989h
24-Sep-12 5:43am
View
Actually i make simple program say "Hello world", it is running in brower and android , iphone but when but i put build this in blackberry using phonegap white screen display..
ravi1989h
24-Sep-12 2:01am
View
You also see this post i am getting response here .
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1910367#M29139
I want to call same web service using jquery or ajax
ravi1989h
24-Sep-12 1:56am
View
Use this URL :http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl
Instend of : http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS
ravi1989h
24-Sep-12 1:54am
View
this is my url ......
ravi1989h
24-Sep-12 1:53am
View
http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl
ravi1989h
23-Sep-12 4:01am
View
Sir please let me know if you get any solution..
thanks
ravi1989h
23-Sep-12 3:50am
View
Sir any update...?
ravi1989h
23-Sep-12 2:13am
View
thanks sir
ravi1989h
23-Sep-12 2:08am
View
is this possible to call this using ajax or jquery..?
ravi1989h
23-Sep-12 1:44am
View
sir you can use is url :http://railapps.firstgroup.com/FirstGroupRailApps/services/RailAppsCAWS?wsdl
intend of http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS
ravi1989h
23-Sep-12 1:36am
View
I thought you have problem in calling from Mozilla ? Is it ? Answer is NO
r you just want the code how to call in jQuery or ajax ? Answer is Yes
sir Last time please check this
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
i called web service and getting response in chrome i want to call same web service using ajax or jquery
ravi1989h
23-Sep-12 1:30am
View
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911089#M29175
i called my web service i got response in chrome ..but i want to call same web service using ajax or jquery (this is my question), i think you disn't understand my question
ravi1989h
23-Sep-12 1:28am
View
Sir this i done that
ravi1989h
23-Sep-12 1:20am
View
can you please help for calling this web service using ajax.?
ravi1989h
23-Sep-12 0:58am
View
yes disable web web security..Sir please scroll full page of this url..
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
i called web service here. i want to call same web service using ajax or jquery
ravi1989h
23-Sep-12 0:49am
View
sir can you please help me to call this web service using any method other than JavaScript SOAP Client[^] this.
ravi1989h
23-Sep-12 0:40am
View
i just wanted to call same web service using jquery or ajax , actuallu i am beginner to able to make soap message..:(
ravi1989h
23-Sep-12 0:38am
View
yes
i just want tell you how i call web service using JavaScript SOAP Client[^].
in this url
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
please check
ravi1989h
23-Sep-12 0:29am
View
yes first one is good answer .. But i need to call web service using second(ajax or jquery ) can you please help me .
i used your first option here..
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
ravi1989h
23-Sep-12 0:19am
View
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
here i am using first example
i am not able to use second onle
ravi1989h
23-Sep-12 0:15am
View
http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
Here i am getting response
why i am not getting respone from ajax.. Call SOAP-XML Web Services With jQuery Ajax[^].
ravi1989h
22-Sep-12 22:49pm
View
http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl
ravi1989h
22-Sep-12 22:49pm
View
soap based web service,,
ravi1989h
22-Sep-12 21:07pm
View
can you please tell me how to call soap based web service using ajax
ravi1989h
22-Sep-12 5:59am
View
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
Here i am calling same web service in different way but i am getting response.
ravi1989h
22-Sep-12 5:47am
View
java..
ravi1989h
21-Sep-12 19:51pm
View
yes you are right...but using your solution i am not getting response .
can you please check this url
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
i am calling same web service different way so i am not able to call...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello World</title>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="sencha-touch-all.js" type="text/javascript"></script>
<link href="sencha-touch.css" rel="stylesheet" type="text/css" />
<script>
console.log('Hi');
Ext.application({
launch: function () {
console.log("Hi");
//var type = "test&data";
var divToBeWorkedOn = '#AjaxPlaceHolder';
var webMethod = 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl/getDestinationStationDashboard'
var parameters = '" + AAP + "';
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/XML; charset=utf-8",
dataType: "XML",
success: function(msg,xml) {
alert("Hi")
var responseXML = xml.documentElement;
alert(responseXML);
alert(msg.stationName);
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
alert("p")
alert(e);
console.log(e);
$(divToBeWorkedOn).html("Unavailable");
}
});
}
});
</script>
</head>
<body></body>
</html>
ravi1989h
21-Sep-12 19:48pm
View
there is no authentication required you check this link i am getting response here.
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
i am calling same web service different way so i am not able to call...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello World</title>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="sencha-touch-all.js" type="text/javascript"></script>
<link href="sencha-touch.css" rel="stylesheet" type="text/css" />
<script>
console.log('Hi');
Ext.application({
launch: function () {
console.log("Hi");
//var type = "test&data";
var divToBeWorkedOn = '#AjaxPlaceHolder';
var webMethod = 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl/getDestinationStationDashboard'
var parameters = '" + AAP + "';
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/XML; charset=utf-8",
dataType: "XML",
success: function(msg,xml) {
alert("Hi")
var responseXML = xml.documentElement;
alert(responseXML);
alert(msg.stationName);
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
alert("p")
alert(e);
console.log(e);
$(divToBeWorkedOn).html("Unavailable");
}
});
}
});
</script>
</head>
<body></body>
</html>
ravi1989h
21-Sep-12 12:18pm
View
yes....method name :getDestinationStationDashboard
parameter :crsCode:AAP
URL: http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard?wsdl
ravi1989h
21-Sep-12 12:10pm
View
Actually AAP hardcoded value of parameter..
ravi1989h
21-Sep-12 12:08pm
View
HERE i am calling same web service but in differnt way
ravi1989h
21-Sep-12 12:07pm
View
sir can you please check..this i am getting response
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196
ravi1989h
21-Sep-12 8:14am
View
i want to call this web service http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS?wsdl
check this link in which getDestinationStationDashboard is method having one parameter 'HNH', 'AAP' example but not getting response.....:(
ravi1989h
21-Sep-12 8:08am
View
var divToBeWorkedOn = '#AjaxPlaceHolder';
var webMethod = 'http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS/getDestinationStationDashboard'
var parameters = "{'crsCode':'AAP'}";
$.ajax({
type: "GET",
url: webMethod,
data: parameters,
contentType: "application/xml; charset=utf-8",
dataType: "xml",
success: function(msg,xml) {
alert("Hi")
var responseXML = xml.documentElement;
alert(responseXML);
alert(msg.stationName);
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
alert("p")
alert(e);
$(divToBeWorkedOn).html("Unavailable");
}
});
}
Alert p is display : mean error is coming..how to remove this error
ravi1989h
21-Sep-12 7:53am
View
i am calling this getDestinationStationDashboard method in which (station name or crscode )crsCode as parameter . i insert station mane or crscode hardcode.
ravi1989h
21-Sep-12 7:51am
View
actually AAP is the parameter
ravi1989h
21-Sep-12 7:50am
View
var parameters = "{'crsCode':'" + AAP + "'}"
ravi1989h
21-Sep-12 7:28am
View
Not able to do that.. can you please call one method (as a example)
http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/why-it-goes-to-if-condiation/m-p/1911581#M29196[^]
ravi1989h
21-Sep-12 0:41am
View
sencha touch ...
ravi1989h
18-Sep-12 0:06am
View
are you talking about this .js ??
can you please help me ..can you please call one method as i said SOAPClient.invoke("http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS", "getDestinationStationDashboard", pl, true, HelloWorld_callBack);
(function () {
// Save reference to earlier defined object implementation (if any)
var oXMLHttpRequest = window.XMLHttpRequest;
// Define on browser type
var bGecko = !!window.controllers;
var bIE = window.document.all && !window.opera;
var bIE7 = bIE && window.navigator.userAgent.match(/MSIE 7.0/);
// Enables "XMLHttpRequest()" call next to "new XMLHttpRequest()"
function fXMLHttpRequest() {
this._object = oXMLHttpRequest && !bIE7 ? new oXMLHttpRequest : new window.ActiveXObject("Microsoft.XMLHTTP");
this._listeners = [];
}
// Constructor
function cXMLHttpRequest() {
return new fXMLHttpRequest;
}
ravi1989h
17-Sep-12 23:58pm
View
http://rickluna.com/wp/2012/06/test-cross-domain-ajax-in-chrome/
i also change this setting ...
ravi1989h
17-Sep-12 23:53pm
View
From demo of this url :
http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
change this function ...every thing is fine in IE .but in chrome, firefox error is display .Response is display in IE
function HelloWorld()
{
var pl = new SOAPClientParameters();
pl.add("crsCode", "AAP");
//SOAPClient.invoke(url, "HelloWorld", pl, true, HelloWorld_callBack);
SOAPClient.invoke("http://184.106.159.143:8080/FirstGroupRailApps/services/RailAppsCAWS", "getDestinationStationDashboard", pl, true, HelloWorld_callBack);
}
function HelloWorld_callBack(r)
{
alert(r);
}
ravi1989h
17-Sep-12 7:12am
View
please help me...
ravi1989h
17-Sep-12 6:53am
View
sir can you please help me in this matter i want to call soap base web service having methods.
ravi1989h
17-Sep-12 6:52am
View
ok
ravi1989h
17-Sep-12 6:48am
View
http://www.codeproject.com/Articles/12816/JavaScript-SOAP-Client
ravi1989h
17-Sep-12 3:28am
View
when i run in firefox it say wsdl is undefined..!!!
ravi1989h
17-Sep-12 2:58am
View
ok..
ravi1989h
17-Sep-12 2:56am
View
actually when i write only this then also code run without no error getting expected result...what is doing this code , can you please explain..
if (!Array.prototype.filter)
{
Array.prototype.filter = function(fun /*, thisp*/)
{
}
}
ravi1989h
17-Sep-12 2:54am
View
It good example thanks....can you explain what is use of this function
if (!Array.prototype.filter)
{
Array.prototype.filter = function(fun /*, thisp*/)
{
var len = this.length;
if (typeof fun != "function")
throw new TypeError();
var res = new Array();
var thisp = arguments[1];
for (var i = 0; i < len; i++)
{
if (i in this)
{
var val = this[i]; // in case fun mutates this
if (fun.call(thisp, val, i, this))
res.push(val);
}
}
return res;
};
}
ravi1989h
17-Sep-12 2:27am
View
No..simple html + java script problem ..But i am using this in phonegap
ravi1989h
17-Sep-12 2:25am
View
Actually Here i add all element name[i] array ;which are display in table .
on button click i want to display how much name are present var result = name.Where(s=> name == "dfdd"); example.
ravi1989h
17-Sep-12 2:17am
View
yes
ravi1989h
17-Sep-12 2:13am
View
can you please help
ravi1989h
17-Sep-12 2:13am
View
Hi i show some demo but not able to do that ..onload i call one function insert data in table , i store the name in name array.on click i want to all name which have same name ..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Departure dashboard</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<link href="style/scrollbar.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript" src="script/soapclient.js"></script>
<script type="text/javascript" src="script/jquery.min.js"></script>
<script type="text/javascript" src="script/iScroll.js"></script>
<!--script type="text/javascript" src="cordova-1.9.0.js"></script-->
<script type="text/javascript">
var stationCode;
var stationName;
var myTimedCall;
var myScroll;
var name=new Array();
function GetDepartureStationDashboard_callBack()
{
var tbl = document.getElementById('mainBodyDivContent');
for (var i = 0; i <20; i++) {
var tr = document.createElement('tr');
tr.setAttribute('id', i);
(function(id) {
tr. önclick = function() {
if(myScroll.isScrolling) {return;}
};
}(i));
var td1 = document.createElement('td');
td1.setAttribute('style','width:1%');
td1.setAttribute('align','left');
td1.innerHTML = i;
var td2 = document.createElement('td');
td2.setAttribute('style','width:47%; text-align;left;');
td2.innerHTML = "jh" + "-" + "gjhg";
var td3 = document.createElement('td');
td3.setAttribute('style','width:35%; text-align;left;');
if(i<5){
td3.innerHTML = "dfdd";
name[i]="dfdd";
}
else{
td3.innerHTML = "dsfdfsdf";
name[i]="dsfdfsdf";
}
var td4 = document.createElement('td');
td4.setAttribute('style','width:3%');
td4.setAttribute('align','center');
tr.appendChild(td1);
tr.appendChild(td2);
tr.appendChild(td3);
tr.appendChild(td4);
tbl.appendChild(tr);
}
myScroll = new iScroll('mainBodyDiv', {
snap: 'tr',
scrollbarClass: 'myScrollbar',
"onScrollMove": function(e) {
myScroll.isScrolling = true;
},
"onScrollEnd": function(e) {
window.setTimeout(function() {myScroll.isScrolling = false;}, 120);
}
});
}
function FillValues(){
// var result = name.Where(s=> name == "dfdd");
//alert(result[0]);
}
</script>
</head>
<body önload="GetDepartureStationDashboard_callBack()">
<div class="scroll-pane" id="mainBodyDiv">
<div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="mainBodyDivContent">
</table>
</div>
</div>
<button type="submit" id="submitBtn3" class="btn" önclick="FillValues();" >All today</button>
</body>
</html>
Show More