By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,133 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

How to keep window in place?

P: n/a
Hello,

My question is in the following web page:

www.pinyinology.com/sortable/table_test.html

Thanks.
Juli Zhang

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <11**********************@o13g2000cwo.googlegroups .com>, dungping5
@yahoo.com enlightened us with...
Hello,

My question is in the following web page:

www.pinyinology.com/sortable/table_test.html

Thanks.
Juli Zhang


"when clicking to sort the second table, the window moves up"

No, what it does is reload the page. Because that's what you've done. You're
passing a param to the page, which basically reloads it.

http://www.pinyinology.com/sortable/...sortByPinyinsh
^^^ that reloads page

Want it to not do that? Don't use param (URL) passing. Call the function in
the link onClick instead. Keep the param if you want to implement server-side
sorting for non-script browsers (return false prevents scripted browsers from
following the link and reloading the page).

<a href="?sortByIDp" onClick="sortByIDp(a, b);return false;">ID</a>
(note: change (a, b) as appropriate)

--
--
~kaeli~
Murphy's Law #2030: If at first you don't succeed, destroy
all evidence that you tried.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.