|
Hi all,
Can any one tell me how can i use asp.net (c#) webservice in PHP ?
Its Urgent..
Thanks in advance.......
|
|
|
|
|
You are going to need to provide more information. Like is it a SOAP or RESTfull service.
In the case it's a SOAP service you will need to look into http://php.net/manual/en/soapclient.soapclient.php[^], which won't be easy to implement but it will work.
If it is RESTfull it's similar to any other web call with querystring and Url building the request. And then it depends on what type of data you are getting from the RESTfull service, is it XML / html / plain text.
|
|
|
|
|
sarang_k wrote: Its Urgent..
Really, is it? Gosh!
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Okay, well, I'm trying to code something to help out another website, and I can't seem to figure it out... I am printing out a list with PHP and MySQL, and I want it to print part of the list in colors... this is what I am using...
------------------------------------------------
<pre><script type="text/javascript>
$("body:contains('Fire Squad')").replaceWith(("<b>Fire</b>")
</script></pre>
------------------------------------------------
and this...
------------------------------------------------
<pre><table><tr><td><b><i>Name</b></i></td><td><b><i>Squad</b></i></td><td><b><i>Friend Code</b></i></td ></tr>
<?
$list_members = mysql_query("SELECT * FROM `brawl` ORDER BY squad");
$list = mysql_fetch_array( $list_members );
while($list = mysql_fetch_array( $list_members ))
{
Print '<tr><td>';
Print "".$list['username']."</td><td>".$list['squad']."</td><td>".$list['FC']."</td></tr>";
}
?>
</div>
</table> </pre>
------------------------------------------------
EDIT: I tried something else, and now it just prints out a blank line where the squad should be....
------------------------------------------------
<pre><select id="squads" name="squads">
<option id="air">Air Squad</option>
<option id="earth">Earth Squad</option>
<option id="fire">Fire Squad</option>
<option id="water">Water Squad</option>
<option id="neutral" selected="selected">Neutral</option>
<option id="admin">Admin</option>
</select>
<script type="text/javascript">
if document.getElementById("fire").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:red'><b>Fire Squad</b></span>"/>");
}
else if document.getElementById("air").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:goldenrod'><b>Air Squad</b></span>"/>");
}
else if document.getElementById("earth").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:#090'><b>Earth Squad</b></span>"/>");
}
else if document.getElementById("water").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:blue'><b>Water Squad</b></span>"/>");
}
else if document.getElementById("neutral").selected=true
{
document.write("<input type="hidden" id="squad" value="<span style='color:black'><b>Neutral</b></span>"/>");
}
else
{
document.write("<input type="hidden" id="squad" value="<span style='color:black'><b>Admin</b></span>"/>");
}
</script></pre>
-----------------------------------------------
Please help, I'd like to have this part done by tomorrow night.... Thanks!
-- Modified Saturday, August 21, 2010 11:19 PM
|
|
|
|
|
if I understand you correctly, you are trying to highlight certain cells in a column of table data.
If this is right then I would structure your table output as...
<tr>
<td id='1' class='squad_fire'>Squad Info</td>
</tr>
<tr>
<td id='2' class='squad_air'>Squad Info</td>
</tr>
Then you can access the values either by the cell ID or by the className property using a select tag with the option values set to the squad names (squad_fire, squad_air).
You will need to keep track of the last selected list item in a javascript variable (remember to check for undefined on the first one selected) and you will need a function to return an array of objects base on the array returned from getElementsByTagName('td') and check for the classname value to match the one selected. If it does then use the dom addclass to add a class called, hightlight. If it does not match then make sure that the hightlight is not there. repeat this in a loop and you should have what you need.
|
|
|
|
|
Hey, iam querying data from a webserver, now it is .htaccess protected though.
I have the username and password ofcourse but how would I login to it?
|
|
|
|
|
You haven't said how you're querying the data so I'll assume you're using LWP:
my $rq = HTTP::Request->new(GET => $url);
$rq->authorization_basic($username, $password);
my $ua = LWP::UserAgent->new;
my $response = $ua->request($rq);
|
|
|
|
|
I want to display my password in form of * rather then character
i made a program in c using vi editor for login.
i want that when user enter the password it must shown in form of * as in case of our emai id etc.
|
|
|
|
|
As you read each character of the password display an asterisk on the output device.
It's time for a new signature.
|
|
|
|
|
Ok
But getch is not working in unix
will you help me by providing simple demo code
|
|
|
|
|
Use the man pages for more information; you can take your pick from one of these[^].
It's time for a new signature.
|
|
|
|
|
Refer to this[^] post. It seems that it contains a solution for your problem using termios.h functionality.
|
|
|
|
|
1. Did you see point 2 in the Forum Guidelines above?
2. Have you tried a users forum for vBulletin, whatever that is?
3. Have you tried Google?
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
From the Forum Guidelines PLEASE READ at the top of this forum:
2. Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
In other words, we are here to answer specific questions, such as "why does [ten lines of code] cause [this error message]". We are not in the business of providing packages, although if we know of one, we'll point you to it.
There is a reason the next question down (a) got downvoted [not by me] and (b) isn't going to get answered.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Noman, not wishing to be rude, but in a thread below and in a thread in the Collaboration Forum, you have been told that this project of yours will not be resolved by free-of-charge activities here by CP members. And you have been pointed towards internet resources as well as external sites such as RentaCoder.
Kindly STOP asking the same question time and time again. The answers you have been given will not change and you will get annoyed and frustrated, and perhaps eventually ignored.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Thanks, Richard. I was not aware of earlier threads when I first answered this morning, or my response might have been a little more pointed. Still can't see how I was ever rude, though. Maybe I should have looked at OP's profile and taken heed of -140 debator and -34 enquirer points. [Run a mile.]
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
kindly i would like to give me code tic tac toe by written php,javascript and html
thank you
|
|
|
|
|
I want to check about duplication of records.
For example; if I want to put data of product name 'A' in database.
I found that this product is exist.
so I have 2 choices; update or cancel.
<?php
if(it_is_Existed)
{
echo $answer = "<script>confirm('do you want to change?')</script>";
if($answer)
{
update data;
}
}?>
I found that $answer 's value is not true or false;
but it is pop-up of confirm();
So, Whatever I choose yes or no, it is meaningless.
the data will update anyway.
can somebody help?
|
|
|
|
|
Try...
<form action='' method='post'>
<input type='text' value='' name='fav_movie'>
<input type='submit' name='vote' value='Add to Poll' onclick='return confirm("Are you sure?");'>
.. this should not submit if the user selects cancel on the popup and it will submit if they select ok. Your PHP should then check the posted values see isset() in php functions and processes from there
|
|
|
|
|
Experts,
I use to have a .html file which worked fine I then decided to add some php code which then meant i had to change the extension of the file. Now i have some flash videos which use to automatically play but now they don't... I am using dreamweaver and even tried using insert, media, flash video and still no luck
I kinda need these videos to play and the reason for the flash is all part of the security of the website
If any body can help that would be great
Dan
(I didn't really know which section to put this in so sorry if i did put it in the wrong section)
|
|
|
|
|
Hi,
How to solve no module named _tkinter problem
while running python program.
|
|
|
|
|
Lots of results for this error message on Google.
Look at this page under the section titled "Checking your Tkinter support". That might help.
http://wiki.python.org/moin/TkInter[^]
|
|
|
|
|
Hi,
accroding to that link document
"simply rerunning "make" should build the _tkinter extension."
Where to find the "make" i found in the python26 directory but,
i didn't found that "make" file from that directory.
|
|
|
|
|
Try renaming it to Tkinter, might work
|
|
|
|
|
I try to create contact form with captcha as security.
I found problem that when I submit form and I set that if it has any error go back to the input page
to correct.
When it goes back, the form is blank.
I want the form still remain what is in the textboxes or not reset data.
how can I do that?
I searched on Internet, it kinds of session_start() is problem
but when I deleted it, captcha is not work....
also, I try on delete captcha and test but still got the same result.
history.back(); then the previous page data is disappear.
|
|
|
|