Advertisement

05.04.2008 at 07:38AM PDT, ID: 23374927
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

passing form variables from asp page to div using ajax

Tags: asp & ajax, ie6 + FF
im a rookie at this Ajax thing but i really like  to implement it to my asp page. I just want to pass the variable (or the information inserted by the user ) to a specify div in the page so i don't have to go to another page and have to refresh the page. I want this information to be display inside a specify div using the post method.  My friend gave me an example to accomplish this but he uses the get method and it doesn't seem to work for request.form in asp. Below I copy the script he gave me.

so in other words on my asp page i have a field name "test" then when i call the function through my form (javascript:dyajaxcall('step2.asp', '', 'dynamicWin')  My information i submitted inside the "test" field should appear inside the dynamicWin div in the Step 2.asp  which has the following code inside: <%=request.form("test")%> but it doesn't show up :(   I hope this is clear for someone to understand it. Im really not good with javascript and ajax ,so if you can tell me which line i need to erase and what do i need to write on this script in order for it to work i would really appreciated. Let me know if you need any additional information from me. I can give you my asp files as well but this website doesn't let me attach them, not even in a zip file.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
//this is my js code function:
function dyajaxcall(link, getstr, divvar){
 
   //link is the php script that you are calling example: ajaxscript.php
   //getstr is the string being passed by your ajax function
   //divvar is your variable being passed to your DOM object
 
        var xmlHttp = GetXmlHttpObject();
	 
	  	var url=link+getstr
	 
        if (!xmlHttp){
             alert ("Browser does not support HTTP Request")
             return
        }
        xmlHttp.onreadystatechange=function(){
        if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
			  document.getElementById(divvar).style.display = 'block';
			   document.getElementById(divvar).innerHTML=xmlHttp.responseText;
           }
        };
         xmlHttp.open("GET", url, true);
         xmlHttp.send(null);
    }
 
    function GetXmlHttpObject(){
       var objXMLHttp=null;
 
       if (window.XMLHttpRequest){
           objXMLHttp=new XMLHttpRequest();
       }else if (window.ActiveXObject){
          objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
       }
       return objXMLHttp;
    }
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: danaysi
Solution Provided By: rowejd
Participating Experts: 1
Solution Grade: B
Views: 64
Translate:
Loading Advertisement...
05.04.2008 at 06:13PM PDT, ID: 21497616

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628