|
Is their any block like funcnality. I have some sort of php linkes so i made them a block and use that block at multiple places in the page. I did not want include or make it as function or calss, other that these is need.
|
|
|
|
|
You're going to have to define what you mean by block. The first thing that come to mind is this:
<?php
?>
Which is a block of PHP but doesn't seem to match your question.
If you want ways to create reusable code, why don't you want includes or functions and classes? At the very least you'll need functions, otherwise how do you plan for your code to be used?
Edit : Fixed my stupidity with angle brackets!
|
|
|
|
|
Hi all!
I have problem : Myform submit have a value hidden . Usser can save as code and view this value . Now , i want hide this value . Plase help me. And a problem . When user save as code html on his PC . He can open this file and still submit to my serrver. Plase help me how to disables this work
Thank
Hello
|
|
|
|
|
I think the only way around this is to use a session value and place the variables you need in a database table that is referenced by the session id.
|
|
|
|
|
Hello,
I want to implement two types of user log in feature into the joomla. one for student log in and other for staff login.
After logged in student can see their course information and download tutorial from the site.
After logged Staff can see his pages.
I want to put Two links on the home page Staff login and student login. After logged in both will see their related pages in joomla.
thank you
|
|
|
|
|
And what do you want, us to build it for you?
Try Google and you will get dozens of hits with information on this.
|
|
|
|
|
I just want to know how I can implemented this in joomla. As I am new to joomla I just want to know is this possible with any joomla plugin or I have to Create separate module for this.
Thank you
|
|
|
|
|
|
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
|
|
|
|