|
Amazing, not a single question. I reread it even to double check, and nothing. Caput. Finito. Zilch.
|
|
|
|
|
chin4186 wrote: really need helps from u all
With almost 6 million CodeProject members, when will you read all our replies?
Wouldn't it be more efficient to do a little Google search and visit and read say the first 10 links it comes up with?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
|
Get your tabula rasa ready:
<html>
<body>
<?= echo "<h1>I compile, therefore I am</h1>" ?>
</body>
</html>
Hope I didn't blow any circuits
|
|
|
|
|
Hi all,
How to call by reference in python?
example:
def A(a):
a = 1
b = 3
A(b)
print b
=> 3
Anyway has any suggestion? or does python support call by reference?
Thanks
|
|
|
|
|
The general Python community frowns on this approach. They practice a more functional-programming style that leaves parameters unscathed. No side effects to methods, MorrisLin. So, no one would recommend that style of programming, opting for the following in its stead.
"color: rgba(0, 0, 255, 1)">return 1
b = 3
b = ReturnOne()
^__b style="color:blue">print b
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks for your reply , Curtis.
|
|
|
|
|
|
Are you here only to advertise a site?
|
|
|
|
|
You have got a problem with that?
Aditya
|
|
|
|
|
|
Regarding the question that i had submitted, it was a serious problem that i was facing and could not find anything on internet!!
Ok, if you are admin of this website, delete me from your users list. i wont login here again.
Aditya
Aditya
|
|
|
|
|
hi....
is yahoo messenger is deeveloped with python......
??
|
|
|
|
|
Hi all
Using zend framework how to create multiple checkbox?
Can any one tell me
Thanks in advance,
rose
|
|
|
|
|
If you are just looking to create multiple checkboxes you can use the same command to make 1 check box over and over until you have the number of checkboxes you want:
$ispublic = new Zend_Form_Element_Checkbox('chkbox1');
$ispublic->setLabel('Check box label')
->setAttrib('id','chkbox1');
I have a feeling though, that you are looking to put radio buttons on your form. Here is an example of creating radio buttons:
$staffname = array('Jim', 'John');
$staff = new Zend_Form_Element_Radio('staff');
$staff->setRequired(true)
->setValue('R')
->setMultiOptions($staffname);
$form->addElement($staff);
More information can be found here: http://www.davidkelly.ie/blog/2008/06/18/zend_form-radio-buttons/[^]
Joe Ceresini
Network Engineer
jceresini@hostmysite.com
Hostmysite.com
|
|
|
|
|
Hi there,
i have been trying to rewrite URL but its not working anyway. I am very much fed up. I dont know the what the symbols are used for and related stuff. I am a newbie.
Please tell me how can i create a URL rewrite in htaccess that would do the following:
my actual functional page URL is
http://mydomain.com/default.php?page=some-page-name
but i want to hide it from users and just want them to see it as:
http://mydomain.com/pages/some-page-name.htm
I want to make sure the images,css and js path are not affected. Also tell me if the above URL visible to users is SEO friendly?
Thanks in advance for any help!
Cheers!
Aditya
|
|
|
|
|
|
Thanks mate. Now i have other question related to this.
Aditya
|
|
|
|
|
Hi All
I don't know how to pass parameter for checkbox onclick event using zend framework .
can any one help me.
Thanks
|
|
|
|
|
Hello everyone,
Im having a bit of trouble with Ajax & php that Im hoping someone can help me with. I've had a search about on this but have been unable to find anything out...
My problem is this: I have set up an Ajax function which is executed on the click of a button (in context this is a password reminder system when logging in to a CMS) which opens up a short php script containing a form held within a couple of divs. Everything works as it should; the the script is called, displayed and functions correctly. But for the life of me I cannot work out how to access variables that I set in the php script.
I want to be able to say (in my Ajax function):
"<i>if this php variable holds this value, then execute this part of the Ajax function</i>"
My Ajax code looks like this:
<pre>
//Submit the password reminder form
function checkRemForm(email, div)
{
//checkValidEmail(email, div);
createObject();
if (XMLHttpRequestObject)
{
var targetDiv = document.getElementById(div);
var url = "/cms/_sql/sendPassword.php?email=" +email;
XMLHttpRequestObject.open('GET', url, true);
XMLHttpRequestObject.onreadystatechange = function()
{
if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200)
{
var result = XMLHttpRequestObject.responseText;
targetDiv.innerHTML = result;
}
}
XMLHttpRequestObject.send(null);
}
}
</pre>
The php is currently just initialising a variable and looks like this:
<pre>
<?php
$email = $_GET['email'];
print $email;
//print "hi";
?>
</pre>
So the aim of this bit of code is to be able to access the value of $email in my Ajax function.
As you can imagine im just learning Ajax so I hope that i have understood how the two languages work together.
If anyone has any help or advise I would appreciate it massively.
Thanks
Bryant
|
|
|
|
|
|
Thank you, Im stuck until I can work this little problem out
|
|
|
|
|
A clear and concise response statement I didn't know that CP had implemented telepathy..
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
Does anyone have any answers on this? I'm running out of hair very rapidly
|
|
|
|
|
Although I am not sure that I can help you the way you put the question, I will try. I use a lot of Ajax and in my opinion i. you are close to the traditional way , ii . you could find other solutions. My comments :
a. Your example seems to be OK. Of course it returns whatever you havae passed as email. Pls confirm that is is so.
b. Do I understand that you want to pass THE NAME of a variable and receive a value OR IS IT you want the calling javascript to decide what to do and NOT the called PHP.
c. Before you clear this II would suggest :
Wht don't you store your values in the php script in arrays like this
$name= "Napoleon";
$myphone = "199199";
$myvalues[]=array("name" => $name , "phone" => $myphone );
$value_of_param= $_GET["req"]; // req is in place of your email variable
echo $myvalues[$value_of_param];
(I hope I have no typo errors)
|
|
|
|