Welcome Guest, Not a member yet? Register   Sign In
Jquery, Javascript, and XML-Need Help!
#4

[eluser]Sean Gates[/eluser]
[quote author="zimco" date="1263239439"]However, i don't think curl will help me out in this situation as the XML file resides on my server. Also, i have already tried the simplexml_load_file($file)[/quote]

Yeah, this is where I was headed.

[quote author="zimco" date="1263239439"]... you can't pass variables from PHP to an external [removed] one is server side, one is client side. Javascript cannot interact with PHP before it's parsed by the server, blah blah blah.[/quote]

I guess I don't understand what you mean by this. You should be able to create a view that then creates a dynamic JS file for you. Then, through AJAX, you can just call this dynamic JS view anytime you need new variables, and PHP will be creating the JS the entire time.


Messages In This Thread
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-10-2010, 02:27 PM
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-10-2010, 10:09 PM
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-11-2010, 07:50 AM
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-11-2010, 08:43 AM
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-12-2010, 08:13 AM
Jquery, Javascript, and XML-Need Help! - by El Forum - 01-23-2010, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB