| | |
Without refreshing page how we can do in ajax????
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
Hi all,
Actually i want to two link in my page using ajax. Let me explain the problem:
Like my site have three page in which about me, contact me and personal info are three page . All these three page are connected with database and fetching some information from database.
But when i click any of these links page is going to refresh.
But i want page should not refresh. I think using ajax i can do this. But correct way i do not know. So please help me to solve this problem. My means when i will click on contact me or about me page then page should not be refreshing. Directly it should be connected with database.
I know for this i will have to use onclick event . But onclick event what type of ajax function i should use that i don't know.
Please help me . I will be thankful of that person who will help me .
thanks,
gagan
Actually i want to two link in my page using ajax. Let me explain the problem:
Like my site have three page in which about me, contact me and personal info are three page . All these three page are connected with database and fetching some information from database.
But when i click any of these links page is going to refresh.
But i want page should not refresh. I think using ajax i can do this. But correct way i do not know. So please help me to solve this problem. My means when i will click on contact me or about me page then page should not be refreshing. Directly it should be connected with database.
I know for this i will have to use onclick event . But onclick event what type of ajax function i should use that i don't know.
Please help me . I will be thankful of that person who will help me .
thanks,
gagan
•
•
Join Date: Feb 2009
Posts: 130
Reputation:
Solved Threads: 0
HI all,
I am working on one application using ajax.When i m clicking on a link . I want that page should not be refresh . How i can do this in ajax. I know onclick event i will have to use for this. But how in correct way i should use this. I do not know . So please help me to solve this problem.
Like i have two pages contact page and index page. when i am in index page when i click on contact page ,then page will not be refresh and when i will be in contact page and when i will click on index page link then again page will not be refresh . Both of page will fetch some data from database.
Please help me to do this work. I am doing such type of work first time. Please help me to provide ajax code for this. If it is not possible then please suggest me.
Thanks,
gagan
I am working on one application using ajax.When i m clicking on a link . I want that page should not be refresh . How i can do this in ajax. I know onclick event i will have to use for this. But how in correct way i should use this. I do not know . So please help me to solve this problem.
Like i have two pages contact page and index page. when i am in index page when i click on contact page ,then page will not be refresh and when i will be in contact page and when i will click on index page link then again page will not be refresh . Both of page will fetch some data from database.
Please help me to do this work. I am doing such type of work first time. Please help me to provide ajax code for this. If it is not possible then please suggest me.
Thanks,
gagan
You already wrote the answer on the title. You can use ajax. I suggest you to go to an ajax tutorial page and learn how it works. Because what you want to do will be an example on that page. Anyway let me explain what you will do. when your links clicked instead of linking your page you will call a javascript function. function will goto server and bring content of the page in string format. and you will put your content in your page like following
if it seems comlicated. make 3 ajax example. read this again. you will understand everything perfectly.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
document.getElementById('mainDivElement').innerHTML = responseText;
if it seems comlicated. make 3 ajax example. read this again. you will understand everything perfectly.
![]() |
Similar Threads
- Want to recieve output from my database without refreshing the page (PHP)
- Refreshing a Page with PHP through Ajax (JavaScript / DHTML / AJAX)
- Maintain Div Postion on Refresh (JavaScript / DHTML / AJAX)
- refresh the part of page usin ajax (JavaScript / DHTML / AJAX)
- Refreshing a JSP page only once (JSP)
- How to retain the disable state of the button after page refreshing (JavaScript / DHTML / AJAX)
- Question - ASP + Ajax (ASP)
- AJAX techniques... (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: what is wrong with this?
- Next Thread: Dynamically change a property in JS?
Views: 1035 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captcha captchaformproblem cart child class close codes date debugger dependent developer disablefirebug dom editor element embed engine enter events explorer ext file firefox flash focus form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe java javascript javascripthelp2020 jquery jsf jsp jump libcurl maps margin marquee masterpage math media menu object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming prototype rated redirect safari scale scriptlets scroll search security size software solutions sources star stars stretch synchronous toggle tweet unicode variables web webkit webservice window \n





