Go Back   Free website templates > Web Template Help > JavaScript
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to share free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2009, 08:52 AM
Junior Member
 
Join Date: Jan 2009
Posts: 1
rmmuthaiya is on a distinguished road
Post Div position

I have a div in my aspx page.Inside the div user will able to add some rows.While user add some rows it will get saved in sql.after added in database, the page will get freshly loaded from the server.when page is loading i need the div position at where the user added the row.
Reply With Quote
  #2 (permalink)  
Old 01-13-2009, 01:02 AM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,772
ishkey will become famous soon enough
Default

why would you need a div position when your page is still there?
use in your code the Response.Write command to ouput to the screen the responce back from the server.
__________________

Consultant - Programmer - WebMaster
cleandeck - lawn mower undercoating
wilmargraphite - graphite lubricants
Reply With Quote
  #3 (permalink)  
Old 04-15-2009, 10:19 PM
Member
 
Join Date: Apr 2009
Location: London, UK
Posts: 54
Osman is on a distinguished road
Default

can't you update the items necessary on the page without reloading the entire page?

or if the positioning is so important, give the div an ID and save the position of the div in your database too, then next time you can read the position from the database.

for example

<div id="usersRows"> .... </div>

when the user Saves the information, do something like this:
var divPosX = document.getElementById('usersRows').style.PosX;
var divPosY = document.getElementById('usersRows').style.PosY;
(i can't remember exactly how its done, but its possible)
__________________
Free Logo's Guarantee:
Not satisfied with your logo?
Claim 100% of your money back!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:02 AM.



mouseover mouseover mouseover