On Thu, Sep 4, 2008 at 7:40 PM, <[EMAIL PROTECTED]> wrote: > > Dear Folk, > I've developed a website with ajax capabilities and bookmarkable > supports history, > I would like to give a specefic Meta tag to each page ... > what is the solution ? there is two thing in my mind > 1- upgrade the meta tag with jQuery when each pages loads ... > for example > $("meta[name=keywords]").attr("content","a,b,c,d"); > but as you all know when the page loads meta tag is something else > after that with ajax will be upgrade so I think this may cause some > problem in search engins ....
exactly, searchengines wont see it. > > 2- load another meta tag in the page .... nope. the same goes for the <title> tag, also important in search engine optimization; you need to call a getPageInfo() function in your php with the same parameters as you call your content generation with. It depends on how you seperate your functions to generate different pages. In my CMS, i have a central function that directs traffic based on GET parameters to different php files containing what's needed to output that particular (type of) page. So i use the same parameters in getPageInfo(), but instead of calling the php file to generate content, i call a php file with a similar name (something__pageInfo.php") that contains only the getPageInfo($same, $parameters) function. At the central point where i generate my <head>, i call getPageInfo ($same, $parameters) and insert the right tags for that page. > > and this might cause two meta tag in a single page ... > > consider there is shopping cart in the web and when each of the > Products nloads the title of the page changes and their own meta tag > came in so does anyone have any idea on this matter > > at the end I aim is for me to make my page reachable in search engines > as google and Yahoo > > Kind Regards Pedram >