473,385 Members | 2,005 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,385 software developers and data experts.

How do reload the page using jQuery?

26
Hello All,

1. First i select the class name in combo box -> using jQuery reload the page.
2. after reload the page, Student name was display in random. so i add two radio button.
1. Ascending order
2. Descending order

if i click the Ascending order radio button, the page will reload and display the student name in ascending order and combo box display the previous selected class name. how?

pls give some idea.
<!-- radio button jQuery -->
Expand|Select|Wrap|Line Numbers
  1. $('#list').click(function(){
  2. val=$'#list click').text();
  3. ----
  4. ---- give come idea.
  5. });
  6.  
<!-- combo box jquery (working well) -->
Expand|Select|Wrap|Line Numbers
  1.       $('#classList').change(function(){
  2.  
  3.     val=$('#classList option:selected').text();
  4.  
  5.         if(val != "-Select Class-"){
  6.  
  7.             htm = '<input type="hidden" name ="rmksSelectedClass"  value="'+val+'">';
  8.  
  9.             $('#frmRemarks').append(htm);
  10.  
  11.             $('#frmRemarks').submit();
  12.  
  13.         }
  14.  
  15.     });
  16.  
  17.  
Apr 20 '11 #1
1 3439
acoder
16,027 Expert Mod 8TB
2 quick points:

1. Why reload the page when you could use Ajax to easily display the student names?
2. Why not have it ordered in the first query with the current selected radio button setting?

The probable reason for your problem is that you're adding hidden fields with the same name, so it's going to look at the first one. If you were going to go down this route, you should be setting the hidden field, not appending it to the form.
May 12 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Glenn | last post by:
Is there any way to partially refresh a web page on each request? I have a search page that needs to refresh the number of results with each change in the form elements. Since there are so many...
1
by: Eric Caron | last post by:
Hi, In a typical "show-list-click-one-and-edit" scenario, I use a DataGrid on the "list" page using the pager option. Say I'm on page 2, click edit on an item and click Cancel on the edit page...
3
by: ABC | last post by:
How to create a web page class for inhert web page using ASP.NET 1.1 and 2.0?
8
by: Ed Jay | last post by:
I want to use history.go() to navigate between my previously loaded pages. I'm looking for a way to trigger a function call when a page is accessed using history.go(). Is there an event generated?...
2
by: darrel | last post by:
I'm still struggling to find a javascript/ajax library that I want to stick with for a while. JQuery is looking great these days...refined, LOTS of plug-ins, and an active community. Is...
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
10
rizwan6feb
by: rizwan6feb | last post by:
Hi I have created a tabbed interface using jQuery using the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
4
by: pavanip | last post by:
Hi, I want to popup aspx page using jquery. I have written the following code <a href="Contactus.aspx?TB_iframe=true&height=250&width=200" class="thickbox" >AboutUs</a> I have called...
25
pradeepjain
by: pradeepjain | last post by:
<html> <head> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.rating.js" type="text/javascript" language="javascript"></script> <link...
0
by: rhtdmrai | last post by:
I want to apply autocomplete in gridview (in asp.net3.5 with C#) using jquery and this gridview is within the ajax update panel <asp:UpdatePanel ID="UpdatePanel1" runat="server"> ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.