Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript PHP Ajax
I have an ajax function which calls the page news.php. In this page I have a javascript but how can I call it? Because I want to make a slideshow with pictures which gets her values from a database. For get the values out of the database I need php but for the slideshow I need Javascript.
So how can I call the functin slideshow ()?
 
The only solution I got by google is:
echo "<script type=\"text/javascript\" language="\""Javascript\">slideshow ();</script>";
but it don´t works
 
Is there any solution without something like jQuery?
Posted 12-Sep-12 3:31am
Edited 16-Sep-12 5:06am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Chi Ller at 12-Sep-12 13:09pm
   
yeah sure google is my friend but I am German so I am serching for German results and there are no working results
Joan Murt at 12-Sep-12 15:09pm
   
Well... I'm catalan and I've found several things related to your question... Has any of the proposed links helped you? do you need further help?
Chi Ller at 13-Sep-12 11:48am
   
sorry I can´t look at them before Saturday
Mohibur Rashid at 13-Sep-12 0:56am
   
You didnt show how you handle onreadystatechange. if you use proper jquery ajax function then function that is being called on success.
Joan Murt at 13-Sep-12 2:36am
   
?
Mohibur Rashid at 13-Sep-12 2:42am
   
this is not for you joan. this is for chi ller. because if op dont parse the script part and execute then linking wont work.
Joan Murt at 13-Sep-12 3:06am
   
OK, I was not understanding that... even your post seems to go to Chi Ller in the thread view, I've received a notification from that post in my e-mail... :confused:
Nothing to see here then... :)
Chi Ller at 16-Sep-12 9:58am
   
Ok I read every post but there are just the same not working solutions I founded before and I don´t want to use something like jQuery
Mohibur Rashid at 16-Sep-12 10:10am
   
not using jquery wont solve your executing problem
Chi Ller at 16-Sep-12 11:49am
   
means jQuery or I can´t do this?
Joan Murt at 17-Sep-12 15:03pm
   
No idea, I would try to find it out using google from now, so I won't be helpful...
Good luck with that.
Probably somebody else will give you a good answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150302.1 | Last Updated 16 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100