Scropion Posted April 18, 2009 Share Posted April 18, 2009 Okay I am trying to add this profile page that allows users to not load multiple pages. Like to see base stats and wall. But I can't figure out and someone has told me to ask people about onClick="togglePage("pagename")" Any help? Quote Link to comment https://forums.phpfreaks.com/topic/154696-onclick-help/ Share on other sites More sharing options...
.josh Posted April 19, 2009 Share Posted April 19, 2009 sorry, crystal ball still in the shop. You need to be way more specific, as well as provide relevant code. Quote Link to comment https://forums.phpfreaks.com/topic/154696-onclick-help/#findComment-813593 Share on other sites More sharing options...
Scropion Posted April 19, 2009 Author Share Posted April 19, 2009 Okay, it will be replacing a div. I am trying to figure out to add the page that you toggle and have the userid back like include/".pagename.".php?t_id=1 Quote Link to comment https://forums.phpfreaks.com/topic/154696-onclick-help/#findComment-813635 Share on other sites More sharing options...
.josh Posted April 19, 2009 Share Posted April 19, 2009 never ceases to amaze me all the people who post their problems but somehow assume that we know anything about their problem or situation. We aren't there sitting next to you. We have no idea how your system is setup. We have no idea what the context of what you're trying to do here is. You have to paint a picture of your situation. "add the page that you toggle" wtf does that mean? We know what a page in general is, but we don't know what your page is. We know what it means to toggle in general, but we have no idea what you are trying to toggle. Post your code. Tell us what it currently does. Tell us what you want it to do and where. draw a picture if you have to. we aren't psychic. All you are doing is saying the proverbial "I have this script and it doesn't work." Read what you post before you post it. Pretend you are someone on the other side of the world who has never been to your site, heard of your site, or heard of you. I know it's hard, but try. Read what you write and ask yourself, if I were on the other side of the world and have never seen my code/site before, would I know wtf this means? Quote Link to comment https://forums.phpfreaks.com/topic/154696-onclick-help/#findComment-813883 Share on other sites More sharing options...
RichardRotterdam Posted April 20, 2009 Share Posted April 20, 2009 add this profile page that allows users to not load multiple pages. onClick="togglePage("pagename")" Indeed a bit too vague. You will need to be more specific what you are trying to achieve. But I'll make a guess. Are you trying to load pagedata into a div without refreshing the page? That would sound like a typical case of Ajax Quote Link to comment https://forums.phpfreaks.com/topic/154696-onclick-help/#findComment-814298 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.