Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-14-2012, 07:41 PM   PM User | #1
iamanewibe
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
iamanewibe is an unknown quantity at this point
im a missing something AJAX HELP

ok im using a kind of new CMS system called business catalyst which allows you to do alot of cool things without the use of php... any way im trying to ajax these values to the sever and the problem that i am having is that the ajax is not being called.
///////////here is the jquery code
Code:
$('#submit').click(function() {
	subs=$('#submit');
	seltask=$('select#CAT_Custom_330690:selected').val();
	selskills=$('select#CAT_Custom_330692:selected').val();
	seldesign=$('select#CAT_Custom_330694:selected').val();
	sellevelpay=$('select#CAT_Custom_332428:selected').val();
	sellevel=$('select#CAT_Custom_330690:selected').val();
	
	data= 'CAT_Custom_330690' + sel + 'CAT_Custom_330692' + selskills + 'CAT_Custom_330694' + seldesign + 'CAT_Custom_332428' + sellevelpay + 'CAT_Custom_332429' + sellevel; 
	
	
subs.ajax({
  type:"POST",
  data:data,
  url:"/Default.aspx?CCID=21007&FID=111728&ExcludeBoolFalse=True&PageID=facts-and-answers" ,
  cache: false,
  success: function(html){
    $("#results").append(html);
  }
});
return false;
});
});
and here is the form ...
Code:
 <form name="catcustomcontentform66766" id="searchn" method="post" onsubmit="return checkWholeForm66766(this)" action="/Default.aspx?CCID=21007&amp;FID=111728&amp;ExcludeBoolFalse=True&amp;PageID=facts-and-answers">
            <table class="webform" cellspacing="0" cellpadding="2" border="0">
                <tbody>
                    <tr>
                        <td><label for="CAT_Custom_330690">Tasks</label><br />
                        <select name="CAT_Custom_330690" id="CAT_Custom_330690" class="cat_dropdown">
                        <option value="*">-- All --</option>
                          <option value="2">something</option>
                    
                        </select></td>
                    </tr>
                    <tr>
                        <td><label for="CAT_Custom_330692">Skills</label><br />
                        <select name="CAT_Custom_330692" id="CAT_Custom_330692" class="cat_dropdown">
                        <option value="*">-- All --</option>
                         <option value="1">option</option>
                        </select></td>
                    </tr>
                    <tr>
                        <td><label for="CAT_Custom_330694">Design Price</label><br />
                        <select name="CAT_Custom_330694" id="CAT_Custom_330694" class="cat_dropdown">
                        <option value="*">-- All --</option>
                        <option value="*">-- All --</option>

                        </select></td>
                    </tr>
                    <tr>
                        <td><label for="CAT_Custom_332428">what level pay</label><br />
                        <select name="CAT_Custom_332428" id="CAT_Custom_332428" class="cat_dropdown">
                        <option value="*">-- All --</option>
                         <option value="*">-- All --</option>

                        </select></td>

                    </tr>
                    <tr>
                        <td><label for="CAT_Custom_332429">Levels</label><br />
                        <select name="CAT_Custom_332429" id="CAT_Custom_332429" class="cat_dropdown">
                        <option value="*">-- All --</option>
                        <option value="Level One">Level One</option>
                        <option value="Level Two">Level Two</option>
                        <option value="Level Three">Level Three</option>
                        </select></td>
                    </tr>
                    <tr>
                        <td><input class="cat_button" id="submit" type="submit" value="Search" /></td>
                    </tr>
                </tbody>
            </table>
        </form>

Last edited by iamanewibe; 01-14-2012 at 07:45 PM.. Reason: i made a mistake sorry
iamanewibe is offline   Reply With Quote
Old 01-15-2012, 08:20 AM   PM User | #2
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 530 Times in 524 Posts
devnull69 will become famous soon enough
First of all, there is a parentheses mismatch. The final "});" is too much. But maybe this is a copy/paste issue.

Second: There is no such thing as "element.ajax" in jQuery. It's always just $.ajax
devnull69 is offline   Reply With Quote
Reply

Bookmarks

Tags
ajax, jquery

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 03:36 PM.


Advertisement
Log in to turn off these ads.