Ok...try this:
Take the <form> </form> tag out from around the select on dinner.cfm (or
whatever you're calling it).
I know that seems strange, but I've got the original "dinner" tutorial
running without it, and a new version
of the tutorial running. I had problems getting my new one to work
until I realized that I should remove
the <form> tag.
Try it and see if it works...
Rick
N K wrote:
> Response tab says the following.Pls take into consideration that its
> displaying the city and not the dish.
> {"MAIN_LOCATION":"George Town","DAY":3}
>
> It shows an error saying Invalid flag after regular expression in
> request_processor.cfm. The response tab has the following.
>
> <html>
>
> <head>
>
> <script language="JavaScript"
> src="http://www.365labs.net/cf_jquery/jquery.js" type="text/javascript"
>
>
>> </script>
>>
>
> <script type="text/javascript">
>
> $(document).ready(function(){
>
> $("#idm").change( function() {
>
> $('#contentdiv').html(' ');
>
> var formval = {idm:$(this).val()};
>
> $.ajax({
>
> type: "POST",
>
> url: "request_processor.cfm",
>
> dataType: "json",
>
> data: formval,
>
> success: function(response){
>
>
> $('#contentdiv').fadeIn(1000).append(10);
>
> }
>
> });
>
> });
>
> });
>
> </script>
>
> <style type="text/css">
>
> body {font-family: Arial, Helvetica, sans-serif;}
>
> #databox { border: 1px solid Gray;
>
> margin:30px auto 0px auto;
>
> padding: 10px;
>
> width: 300px;}
>
> #contentdiv { color:red; font-size: 30px; margin-top: 10px;}
>
> </style>
>
> </head>
>
> <body>
>
> <form>
>
>
>
> <div align="center" id="databox">
>
> <select id="idm">
>
> <option value="0" SELECTED>What's the Location?...</option>
>
> <option value="1">Monday</option>
>
> <option value="2">Tuesday</option>
>
> <option value="3">Wednesday</option>
>
> <option value="4">Thursday</option>
>
> <option value="5">Friday</option>
>
> <option value="6">Saturday</option>
>
> </select>
>
> <p id="contentdiv"></p>
>
> </div>
>
> </form>
>
> </body>
>
> </html>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>> What do you get in the "Post" and "Response" tab areas
>> in Firebug when you try to run the code?
>>
>> Look, especially, in the "Response" tab and see if you can
>> see anything. If you can, don't forget to scroll all the way to the
>> bottom of the "Response" tab area and see if there is any code
>> or anything in that field.
>>
>> I have an idea what may be happening, but I need to know what
>> is in the "Response" tab area when you run the code.
>>
>> Rick
>>
>>
>> N K wrote:
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316463
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4