| | |
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?
| Thread Tools | Search this Thread |
ajax ajaxexample ajaxjspservlets api array browser bug captcha captchaformproblem cart checkbox child class close codes cookies createrange() cursor date debugger dependent developer disablefirebug dom dropdown editor element embed engine events explorer ext file firefox form forms getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media object onerror onmouseoutdivproblem onreadystatechange parent paypal pdf php position post programming progressbar prototype rated redirect runtime safari scale scriptlets scroll search security session shopping size software star stars synchronous toggle tweet unicode variables web webservice wysiwyg \n





