Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12254

Re: activating a JS script from PHP redirect

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From Fyndhorn Elder <bubble@caradhras.lan>
Newsgroups comp.lang.php
Subject Re: activating a JS script from PHP redirect
References <l8627s$701$1@dont-email.me>
Date Sun, 15 Dec 2013 17:49:33 +0000
Message-ID <m2ob4iuhqq.fsf@caradhras.lan> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin)
Cancel-Lock sha1:n4Cs+Gkav1KaN2a+MPu+43OxDDU=
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Lines 40
Organization SunSITE.dk - Supporting Open source
NNTP-Posting-Host 81.245.192.116
X-Trace news.sunsite.dk DXC=jkAWHDXm[NHk`8jVVeUFdJYSB=nbEKnkK^GFK;C8ON8EKPVSLA_UhIJ`On3[XHkGcHI4YL?4S]UQMf`\M1[bVeHN9c8>a\l6KQFSGI?^@?lEaE
X-Complaints-To staff@sunsite.dk
Xref csiph.com comp.lang.php:12254

Show key headers only | View raw


Scott Johnson <noonehome@chalupasworld.com> writes:

> OK I will try to make this make sense.
>
> I have an html page with JS that displays a DIV block after a link on
> that page is clicked.
>
> The JS is looking for

So you change things with 
<script>
function changeText(){
	document.getElementById('div id').innerHTML = 'foo;
}
</script>

>
> Attributes from an <anchor> link:
>
> rel='aaa'
> href='bbb'
> class='ccc'
>
> to open the DIV.
>
> Is there a way to call this html page from a different PHP page script
> that will cause the html to behave as if its anchor was clicked?
>

Yes, reload your page with a form action which is the same as your current php page,
then do isset on a $_POST["nameofvalue"] and contemplate.

FE

> Thanks
> Scotty

-- 
Time heals.
My blog : https://thediaryofelvishhealer.blogger.com

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

activating a JS script from PHP redirect Scott Johnson <noonehome@chalupasworld.com> - 2013-12-09 19:36 -0800
  Re: activating a JS script from PHP redirect Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-10 05:20 -0500
    Re: activating a JS script from PHP redirect Scott Johnson <noonehome@chalupasworld.com> - 2013-12-10 17:15 -0800
      Re: activating a JS script from PHP redirect Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-11 02:12 +0000
        Re: activating a JS script from PHP redirect Scott Johnson <noonehome@chalupasworld.com> - 2013-12-11 04:52 -0800
          Re: activating a JS script from PHP redirect Jerry Stuckle <jstucklex@attglobal.net> - 2013-12-11 13:35 -0500
            Re: activating a JS script from PHP redirect Scott Johnson <noonehome@chalupasworld.com> - 2013-12-11 15:50 -0800
  Re: activating a JS script from PHP redirect Fyndhorn Elder <bubble@caradhras.lan> - 2013-12-15 17:49 +0000

csiph-web