Re: [PHP] problem in onclick

2011-05-20 Thread Ashley Sheridan
On Sat, 2011-05-21 at 00:42 +0430, Negin Nickparsa wrote: > why URL? I've read over this thread and the other one you created earlier. I really think you would do better if you took an hour or so to read over how the typical client/server web model works, as this is leading to a lot of confusion

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
why URL?

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 03:27 PM, Negin Nickparsa wrote: i want to click on the image then it stores the session so i can have many different tables in another one unique page suppose that i have A in my column when i click on image then it showed me the table of A in another page but if i click on the image

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
it is the result!!! Now = getdate(time()+TIMESEED*60); else $this->Now = getdate(($mode? $dd:strtotime($dd))); $this->Now["fyday"] = ($this->Now["yday"]+287)%365; if($this->Now["fyday"]==0) $this->Now["fyday"] = 365; } function getFarsiDate($mode, $fa=true, $echo=true) { $varStr = ""; switch($mode)

RE: [PHP] problem in onclick

2011-05-20 Thread admin
20, 2011 3:46 PM To: ad...@buskirkgraphics.com Cc: Robert Cummings; Andre Polykanine; tedd; php-general@lists.php.net Subject: Re: [PHP] problem in onclick i'm using http://localhost/ i don't have server like something.com i wrote url:'loadsession.php' instead of http:

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i'm using http://localhost/ i don't have server like something.com i wrote url:'loadsession.php' instead of http://www.yourserver.com/loadsession.php', and i deleted src="http://www.yourserver.com/js/jquery.js"; but it doesn't work what i must write in there?

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i want to click on the image then it stores the session so i can have many different tables in another one unique page suppose that i have A in my column when i click on image then it showed me the table of A in another page but if i click on the image of B then in the next page it will show me th

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 03:06 PM, Negin Nickparsa wrote: Robert could u plz exactly tell me how i can work with GET and write my SESSION i tried your code abt session but i didn't get it right but for another ones i tried and it was right Hi Negin, What part are you having a problem with? The first part o

RE: [PHP] problem in onclick

2011-05-20 Thread tedd
At 2:57 PM -0400 5/20/11, HallMarc Websites wrote: > At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: >Hi Richard, Tedd, > >Hey guys, you did understand what I meant. I meant you >can't just go and write a session variable by onclicking it in >JavaScript. You need

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
Robert could u plz exactly tell me how i can work with GET and write my SESSION i tried your code abt session but i didn't get it right but for another ones i tried and it was right

Re: [PHP] problem in onclick

2011-05-20 Thread Adam Richardson
On Fri, May 20, 2011 at 2:46 PM, tedd wrote: > At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: > >> Hi Richard, Tedd, >> >> Hey guys, you did understand what I meant. I meant you >> can't just go and write a session variable by onclicking it in >> JavaScript. You need AJA

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
> And there are some hosting companies that offer servers that run JavaScript > server side like Jaxer That is not an endorsement of any kind. I have yet to > sign up for an account. I do know that the idea of running JavaScript server > side has been kicked around since I think 1996. I just took

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 02:51 PM, HallMarc Websites wrote: And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been kicked

RE: [PHP] problem in onclick

2011-05-20 Thread tedd
At 2:51 PM -0400 5/20/11, HallMarc Websites wrote: And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been ki

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
On 11-05-20 02:30 PM, Andre Polykanine wrote: Hi Richard, Tedd, Hey guys, you did understand what I meant. I meant you can't just go and write a session variable by onclicking it in JavaScript. You need AJAX for that, don't you? You need a trip to the server whether it

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
> At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: > >Hi Richard, Tedd, > > > >Hey guys, you did understand what I meant. I meant you > >can't just go and write a session variable by onclicking it in > >JavaScript. You need AJAX for that, don't you? > > AJAX = JavaScript.

RE: [PHP] problem in onclick

2011-05-20 Thread HallMarc Websites
And there are some hosting companies that offer servers that run JavaScript server side like Jaxer That is not an endorsement of any kind. I have yet to sign up for an account. I do know that the idea of running JavaScript server side has been kicked around since I think 1996. -- PHP General Ma

Re: [PHP] problem in onclick

2011-05-20 Thread tedd
At 9:30 PM +0300 5/20/11, Andre Polykanine wrote: Hi Richard, Tedd, Hey guys, you did understand what I meant. I meant you can't just go and write a session variable by onclicking it in JavaScript. You need AJAX for that, don't you? AJAX = JavaScript. AJAX is simply Ja

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
//oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: ad...@buskirkgraphics.com To: 'tedd' Date created: , 9:19:15 PM Subject: [PHP] problem in onclick I use Jquery eve

RE: [PHP] problem in onclick

2011-05-20 Thread admin
ginal Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Friday, May 20, 2011 2:10 PM To: php-general@lists.php.net Subject: Re: [PHP] problem in onclick At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: >that is completely wrong. You're mixing up two things: PHP is a

Re: [PHP] problem in onclick

2011-05-20 Thread tedd
At 6:41 PM +0300 5/20/11, Andre Polykanine wrote: that is completely wrong. You're mixing up two things: PHP is a server-side language, JavaScript is a client-side language. While that is true, it doesn't mean that the two languages can't communicate. Here's an example: http://webbyted

Re: [PHP] problem in onclick

2011-05-20 Thread Andre Polykanine
(mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Negin Nickparsa To: php-general@lists.php.net Date created: , 4:05:34 PM Subject: [PHP] problem in onclick i want to when clicking on the imag

Re: [PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
I tried,You solved my problem tanx very much Rob

Re: [PHP] problem in onclick

2011-05-20 Thread Robert Cummings
It is completely wrong... JavaScript is client side technology (your browser), PHP is server side technology (your web server). To do what you want, you SHOULD just wrap the image in a link: If you MUST use JavaScript, then you can use onclick() to redirect: onclick="document.location( 'wher

[PHP] problem in onclick

2011-05-20 Thread Negin Nickparsa
i want to when clicking on the image then go to other page or set my $_SESSION i have this in php code: echo""; how can i correct this or if it is completely wrong how 2 solve it? i tried to set header in onclick too but i think it can't do because header is function of php and i echoed the html t