![]() |
plz plz help.....
i have created a page n am loading two pages on a div container with a button click using javascript. that i did, but my problem is when i click a button, i want the page to get loaded as well as to go to a specific position in that page. i have given [code] <a name>[code] to the ordered list n calling the link via a href. but javascript is calling first so the page gets loading n after that i have to click the link again for the page to show thwe correct location. both [code]<a name> [code]and javascript to load function is working but its not working simultaneously.
my code: Code:
<div class=part></div> [code] this div . i wanted to load poage 1 n pag3e 2 in this div as well as when i click on corrosion prevention it has to load that page in the div as well as go to that position of that page. am loading the page using javascript. Code:
javascript: |
please reformat your code
- The closing tag for [ code ] is [ /code ]. This can also fix your indentation issues ... - The inline code tag is [ icode ] - The English language sometimes makes use of uppercase characters ... which sometimes make a big difference (for example if you want to help your Uncle Jack off a horse) |
try load.("page1.htm") you need to include the full file name.
|
I have given correct url for page1, Here i just written page 1 instead of the full url, actually my code n url is working fine but its not taking me to the correct position at the time of loading the page, i.e javascript is working first n then <a name> tag. i want both to work simultaneosly. so that i dont have to double click the link. just click on the link so it 'll load the page in the div container as well as take me to the correct position of the heading in the page. can anyone plz help...
|
| All times are GMT +1. The time now is 10:15 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.