FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » activating a JS script from PHP redirect
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: activating a JS script from PHP redirect [message #184214 is a reply to message #184165] Sun, 15 December 2013 17:49 Go to previous message
Fyndhorn Elder is currently offline  Fyndhorn Elder
Messages: 3
Registered: December 2013
Karma:
Junior Member
Scott Johnson <noonehome(at)chalupasworld(dot)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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: recognize country
Next Topic: Open Portal - web portal software
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:58:07 GMT 2024

Total time taken to generate the page: 0.04602 seconds