473,320 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to keep window in place?

Hello,

My question is in the following web page:

www.pinyinology.com/sortable/table_test.html

Thanks.
Juli Zhang

Jul 23 '05 #1
1 1203
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Noozer | last post by:
When using the WebBrowser control, is it possible to cause popup windows to appear within the WebBrowser control itself instead of a new window? This is what I've written in the NewWindow2 event,...
1
by: Thomas Nücker | last post by:
Hi! I am creating a dialog-box within my application, using tkinter. The problem is the following: After the dialogbox is started, the main application window comes again to top and the...
3
by: Fred Atkinson | last post by:
I've installed the following Javascript on my Web page and it is working fine. It brings up a little pop up message (not an ad). <script language="JavaScript"><!--...
2
by: abs | last post by:
How to detect that user started to scroll the page ? Separately vertical and horizontal scroll. Is it possible ? Regards, ABS
2
by: John Dalberg | last post by:
I have a closed box system which opens an html page. The page closes by the system. I have access to the html page. I added code to open a child window from this page. However when the parent...
2
by: tripyre | last post by:
I recently resolved an issue I had with passing a variable to a call shell command, but now I need it to pause or leave the window open so I can manually close it. Below is my code, and I am not...
4
by: mg | last post by:
I have a main window with a image button that launches a popup window. I want the popup window to always stay on TOP so users can keep clicking it (it has buttons that send it back to the server...
1
by: cnsabar | last post by:
Hi I am having a problem in closing a menu window using TK module dynamically. I use the following program. use Tk; $mw = MainWindow->new; $mw->geometry("1024x768");
0
by: stefburn | last post by:
Hello Folks, Okay so I'm running a server window to debug some issues. I can keep the server window open by going to the path and opening a command prompt at the path of the <server.exe> file...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.