Monday 15 July 2013

jquery - change value of a php variable on ajax content load -


I thought it would be really simple, but definitely after a few days testing and success have not been found so that people To help me out, look at all sides.

Fine basically creating a php template has a responsive framework without much guidance on the foundation 4 framework. Now this framework is basic and therefore Ive had to use Jacob to add page transcription, which I believe is a AJAX call to take "content" from another page and display it on template.html index.html < / P>

for which I am currently using the following

  & lt; Script & gt; $ (Document) .ready (function () {$ ('nav.top-bar & gt; section.top-bar-section & gt; ul.right & gt; li & gt; a') Click (function ) {Var toLoad $ (This) .attr ('href') + '#content'; $ ('# content') Hiding (1000, load communication); $ ('# load'). Remove (); $ ( '# Main_wrapper') .append ('& lt; span id = "load" & gt; LOADING ... & lt; / span & gt;'); $ ('# load'). FadeIn ('sharp') Substr (0, $ (this) .attr ('href') length -0); function loads dialog () {$ ('# content' Load (toload, showNewContent) (), (), (), (), (), (), (), (),;}); & lt; / script & gt;   

Now I have changed to use AJAX and jquery before I activate the menu " "In the first line with a simple variable set on each page on the square and page name, $ page = '' and then the page name

Now that the content loads with AJAX Is happening, even if I include this variable in the contents of the new page which will either not update it or the menu title

im very sorry I have not written the right things in this forum New to Talk

Thank you for helping in advance :) I Instead of just copying and pasting the code as a learner im instead of any other what to do and how to do it :)

You probably want to load the page and get the result to the new page & lt; Title & gt; To get the tag and set the Request page & lt; Title & gt; Tags

There is only one thing I ask: Why are you doing this? Do you want AJAX page navigation on your website instead of traditional promotional navigation?

No comments:

Post a Comment