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:
a href=where-to-go.phpimg src= alt=description //a
If you MUST use JavaScript, then you can use
I tried,You solved my problem tanx very much Rob
Hello Negin,
that is completely wrong. You're mixing up two things: PHP is a
server-side language, JavaScript is a client-side language.
onClickis client-side, so you can't say onClick=?php
something();? because onclick is performed *after* the PHP script
something();?is
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:
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] img src . 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
server
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] img src . 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
server
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
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
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.
Not
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
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
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
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
On Fri, May 20, 2011 at 2:46 PM, tedd tedd.sperl...@gmail.com 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.
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
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 AJAX
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
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
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?
20, 2011 3:46 PM
To: ad...@buskirkgraphics.com
Cc: Robert Cummings; Andre Polykanine; tedd; php-general@lists.php.net
Subject: Re: [PHP] img src . problem in onclick
i'm using http://localhost/
i don't have server like something.com
i wrote url:'loadsession.php'
instead of http
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) {
case 1:
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
why URL?
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
24 matches
Mail list logo